diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-11 02:38:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-11 02:38:04 +0200 |
| commit | ec06633e19025565ad7cb1e62247beb6d2c19409 (patch) | |
| tree | 45f84e5f3a51a8b812b560308950149599a05805 /src | |
| parent | e757d33e73cd707ecf95a6cd27e3f75b4f8b702f (diff) | |
| parent | 7fdcbce499990498bca38ebce6b215206dcbb591 (diff) | |
| download | rust-ec06633e19025565ad7cb1e62247beb6d2c19409.tar.gz rust-ec06633e19025565ad7cb1e62247beb6d2c19409.zip | |
Rollup merge of #64072 - limira:patch-1, r=ollie27
Replace file_stem by file_name in rustdoc markdown Before this PR, a file name like `some.file.md` will be output to a file named `some.html` with is not correct because the expected output file must be `some.file.html`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/markdown.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index b06b368469f..8431271e62d 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(); |
