diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-04 23:42:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-04 23:42:00 +0200 |
| commit | 326315bf5499d2ff59ebd2bdd0e22576bef25b44 (patch) | |
| tree | 2fc0bfa7884f8a89e3ad1a821da17b4311ca881e /src/librustdoc/html/static/js/source-script.js | |
| parent | 3a8e71385940c2f02ec4b23876c0a36fd09bdefe (diff) | |
| parent | 76c6845a8592931edd1e80dbccfd8cbd047e4f2b (diff) | |
| download | rust-326315bf5499d2ff59ebd2bdd0e22576bef25b44.tar.gz rust-326315bf5499d2ff59ebd2bdd0e22576bef25b44.zip | |
Rollup merge of #97609 - Elliot-Roberts:unused-trait-refactor, r=cjgillot
Iterate over `maybe_unused_trait_imports` when checking dead trait imports
Closes #96873
r? `@cjgillot`
Some questions, if you have time:
- Is there a way to shorten the `rustc_data_structures::fx::FxIndexSet` path in the query declaration? I wasn't sure where to put a `use`.
- Was returning by reference from the query the right choice here?
- How would I go about evaluating the importance of the `is_dummy()` call in `check_crate`? I don't see failing tests when I comment it out. Should I just try to determine whether dummy spans can ever be put into `maybe_unused_trait_imports`?
- Am I doing anything silly with the various ID types?
- Is that `let-else` with `unreachable!()` bad? (i.e is there a better idiom? Would `panic!("<explanation>")` be better?)
- If I want to evaluate the perf of using a `Vec` as mentioned in #96873, is the best way to use the CI or is it feasible locally?
Thanks :)
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions
