diff options
| author | bors <bors@rust-lang.org> | 2025-07-22 11:32:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-22 11:32:36 +0000 |
| commit | 35487a2e7c80012129c38f55c970109a1538c91f (patch) | |
| tree | 9e370f22e084dea144b776d617d10c23ac655f9e /compiler/rustc_hir_analysis/src | |
| parent | c0b282f0ccdab7523cdb8dfa41b23bed5573da76 (diff) | |
| parent | 749f895d95e1c2da2e82fa47b7311353cd7db7fc (diff) | |
| download | rust-35487a2e7c80012129c38f55c970109a1538c91f.tar.gz rust-35487a2e7c80012129c38f55c970109a1538c91f.zip | |
Auto merge of #144294 - matthiaskrgr:rollup-ybvall3, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - rust-lang/rust#142454 (Add modern AVR mcus like avr128db28 and attiny3224) - rust-lang/rust#142924 (tidy: move rustdoc js stuff into a tidy extra check) - rust-lang/rust#143373 (Unquerify maybe_unused_trait_imports.) - rust-lang/rust#144082 (tests: cover more `exported_private_dependencies` cases) - rust-lang/rust#144126 (Fix empty target_config in apply_rust_config bootstrap) - rust-lang/rust#144164 ( opt-dist: add an option for setting path to stage0 root) - rust-lang/rust#144265 (Dont ICE on copy error being suppressed due to overflow) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check_unused.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check_unused.rs b/compiler/rustc_hir_analysis/src/check_unused.rs index 0133b1e8fcd..3fb33c741c9 100644 --- a/compiler/rustc_hir_analysis/src/check_unused.rs +++ b/compiler/rustc_hir_analysis/src/check_unused.rs @@ -18,7 +18,7 @@ pub(super) fn check_unused_traits(tcx: TyCtxt<'_>, (): ()) { used_trait_imports.extend_unord(imports.items().copied()); } - for &id in tcx.maybe_unused_trait_imports(()) { + for &id in tcx.resolutions(()).maybe_unused_trait_imports.iter() { debug_assert_eq!(tcx.def_kind(id), DefKind::Use); if tcx.visibility(id).is_public() { continue; |
