about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/dead.rs
AgeCommit message (Expand)AuthorLines
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-6/+6
2022-02-285 - Make more use of let_chainsCaio-28/+27
2022-02-12change to a struct variantEllen-1/+1
2022-02-06`#[used(linker)]` attribute (https://github.com/dtolnay/linkme/issues/41)cynecx-1/+4
2022-02-01Make dead code check a query.Camille GILLOT-22/+33
2022-01-19Rollup merge of #92783 - FabianWolff:issue-92726, r=nikomatsakisMatthias Krüger-6/+54
2022-01-16Replace NestedVisitorMap with NestedFilterCameron Steffen-11/+5
2022-01-15Reduce use of local_def_id_to_hir_id.Camille GILLOT-2/+2
2022-01-15Use span of ignored impls for explanatory noteFabian Wolff-19/+27
2022-01-11Annotate dead code lint with notes about ignored derived implsFabian Wolff-6/+46
2021-12-15Remove `in_band_lifetimes` for `rustc_passes`Peter Jaszkowiak-3/+3
2021-10-02only check for automatically_derived on impls, not individual methodsErik Desjardins-18/+6
2021-10-01perf: only check for rustc_trivial_field_reads attribute on traitsErik Desjardins-23/+1
2021-09-29Avoid more invocations of hir_crate query.Camille GILLOT-12/+7
2021-09-09Ignore automatically derived impls of `Clone` and `Debug` in dead code analysisFabian Wolff-0/+62
2021-09-02Rename walk_crate.Camille GILLOT-1/+1
2021-09-02Stop using walk_crate.Camille GILLOT-1/+1
2021-08-14Fix dead code warning when inline const is used in patternGary Guo-0/+7
2021-07-31rustc: Replace `HirId`s with `LocalDefId`s in `AccessLevels` tablesVadim Petrochenkov-52/+49
2021-07-21Allow some temporarily dead code.Felix S. Klock II-0/+2
2021-07-21Revert PR 81473 to resolve (on mainline) issues 81626 and 81658.Felix S. Klock II-6/+0
2021-07-14Warn about useless assignments of variables/fields to themselvesFabian Wolff-0/+54
2021-05-17Auto merge of #85178 - cjgillot:local-crate, r=oli-obkbors-3/+3
2021-05-15Warn about unused pub fields in non-pub structsFabian Wolff-20/+29
2021-05-12Use () for privacy.Camille GILLOT-2/+2
2021-05-12Use () for entry_fn.Camille GILLOT-1/+1
2021-04-29Implement RFC 1260 with feature_name `imported_main`.Charles Lew-1/+3
2021-03-16ast/hir: Rename field-related structuresVadim Petrochenkov-5/+5
2021-03-09Access attrs directly from HirId in rustc_passes::dead.Camille GILLOT-23/+9
2021-02-19Consider auto derefs before warning about write only fieldsTomasz Miąsko-11/+17
2021-02-15Only store a LocalDefId in hir::ForeignItem.Camille GILLOT-5/+9
2021-02-15Only store a LocalDefId in hir::ImplItem.Camille GILLOT-6/+6
2021-02-15Only store a LocalDefId in hir::TraitItem.Camille GILLOT-2/+2
2021-02-15Only store a LocalDefId in hir::Item.Camille GILLOT-8/+8
2021-02-15Use ItemId as a strongly typed index.Camille GILLOT-1/+1
2021-01-28Add missing braceOli Scherer-1/+1
2021-01-29Simplify base_exprSeo Sanghyeon-8/+4
2021-01-28Warn write-only fieldsSeo Sanghyeon-0/+19
2021-01-23Do not mark unit variants as used when in path patternTomasz Miąsko-1/+1
2021-01-12Separate out a `hir::Impl` structJoshua Nelson-1/+1
2020-12-24use matches!() macro in more placesMatthias Krüger-19/+19
2020-12-08Simplify visit_{foreign,trait}_itemLingMan-20/+10
2020-12-08Visit ForeignItems when marking dead code.Camille GILLOT-21/+25
2020-11-26Remove ForeignMod struct.Camille GILLOT-1/+1
2020-11-26Store ForeignItem in a side table.Camille GILLOT-0/+2
2020-10-18Remove weird slice conversionDániel Buga-1/+1
2020-10-18Clean up surprising borrowDániel Buga-2/+2
2020-09-22dead_code: look at trait impls even if they don't contain itemsBastian Kauschke-1/+4
2020-09-13allow concrete self types in constsBastian Kauschke-1/+1
2020-09-04Change ty.kind to a methodLeSeulArtichaut-3/+3