diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-23 06:18:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 06:18:07 +0100 |
| commit | 2011ced333fb800d7101568a3f1588572b77ba19 (patch) | |
| tree | 1d9b9988c74e55b41c3b1438a1e3636215e1f9f9 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | c4a4bce6950260045576e9d50014fe0dfe178a1f (diff) | |
| parent | 20dd1bd9a8ce947619c294f477a7d9042b0b265e (diff) | |
| download | rust-2011ced333fb800d7101568a3f1588572b77ba19.tar.gz rust-2011ced333fb800d7101568a3f1588572b77ba19.zip | |
Rollup merge of #108349 - GuillaumeGomez:fix-duplicated-imports2, r=notriddle
rustdoc: Prevent duplicated imports Fixes #108163. Interestingly enough, the AST is providing us an import for each corresponding item, even though the `Res` links to multiple ones each time, which leaded to the same import being duplicated. So in this PR, I decided to prevent the add of the import before the clean pass. However, I originally took a different path by instead filtering after cleaning the path. You can see it [here](https://github.com/rust-lang/rust/compare/master...GuillaumeGomez:rust:fix-duplicated-imports?expand=1). Only the second commit differs. I think this approach is better though, but at least we can compare both if we want. The first commit adds the check for duplicated items in the rustdoc-json output as asked in #108163. cc `@aDotInTheVoid` r? `@notriddle`
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
