From 7fdcbce499990498bca38ebce6b215206dcbb591 Mon Sep 17 00:00:00 2001 From: limira <20672976+limira@users.noreply.github.com> Date: Mon, 2 Sep 2019 00:14:58 +0700 Subject: [PATCH] Replace file_stem by file_name in rustdoc markdown --- src/librustdoc/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index a30fc05f36a..401bd5f6e66 100644 --- a/src/librustdoc/markdown.rs +++ b/src/librustdoc/markdown.rs @@ -43,7 +43,7 @@ pub fn render( edition: Edition ) -> i32 { let mut output = options.output; - output.push(input.file_stem().unwrap()); + output.push(input.file_name().unwrap()); output.set_extension("html"); let mut css = String::new();