about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/diagnostic_items.rs
AgeCommit message (Collapse)AuthorLines
2023-03-21LocalCrate keyMichael Goulet-1/+2
2023-03-21Use local key in providersMichael Goulet-4/+2
2023-02-26Merge the two diagnostics.Camille GILLOT-16/+12
2023-02-26Simplify diagnostic_items.Camille GILLOT-33/+30
2023-02-16`if $c:expr { Some($r:expr) } else { None }` =>> `$c.then(|| $r)`Maybe Waffle-5/+2
2022-12-20rustc: Remove needless lifetimesJeremy Stucki-7/+3
2022-10-29Rename some `OwnerId` fields.Nicholas Nethercote-4/+4
spastorino noticed some silly expressions like `item_id.def_id.def_id`. This commit renames several `def_id: OwnerId` fields as `owner_id`, so those expressions become `item_id.owner_id.def_id`. `item_id.owner_id.local_def_id` would be even clearer, but the use of `def_id` for values of type `LocalDefId` is *very* widespread, so I left that alone.
2022-10-10make up your mind, rustfmtNathan Stocks-5/+1
2022-10-10remove out-of-date fixmeNathan Stocks-2/+5
2022-10-07First batch of review feedback changes from #102110Nathan Stocks-2/+2
2022-10-07migrate diagnostic_items.rs to translateable diagnosticsNathan Stocks-18/+18
2022-09-24separate definitions and `HIR` ownersTakayuki Maeda-4/+4
fix a ui test use `into` fix clippy ui test fix a run-make-fulldeps test implement `IntoQueryParam<DefId>` for `OwnerId` use `OwnerId` for more queries change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)`
2022-05-13remove DiagnosticItemCollectorMiguel Guarniz-39/+28
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-10fix typolcnr-1/+1
2022-03-22use `format-args-capture` and remove unnecessary nested if blocks in some ↵Takayuki Maeda-4/+3
parts of rustc_passes break before the `&&` Update compiler/rustc_passes/src/check_const.rs Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2021-10-06Introduce get_diagnostic_nameCameron Steffen-20/+14
2021-09-29Avoid more invocations of hir_crate query.Camille GILLOT-1/+1
2021-08-28Treat macros as HIR itemsinquisitivecrystal-4/+0
2021-08-21Remove `Session.used_attrs` and move logic to `CheckAttrVisitor`Aaron Hill-5/+4
Instead of updating global state to mark attributes as used, we now explicitly emit a warning when an attribute is used in an unsupported position. As a side effect, we are to emit more detailed warning messages (instead of just a generic "unused" message). `Session.check_name` is removed, since its only purpose was to mark the attribute as used. All of the callers are modified to use `Attribute.has_name` Additionally, `AttributeType::AssumedUsed` is removed - an 'assumed used' attribute is implemented by simply not performing any checks in `CheckAttrVisitor` for a particular attribute. We no longer emit unused attribute warnings for the `#[rustc_dummy]` attribute - it's an internal attribute used for tests, so it doesn't mark sense to treat it as 'unused'. With this commit, a large source of global untracked state is removed.
2021-07-25Merge the BTreeMap in hir::Crate.Camille GILLOT-1/+1
2021-07-01Rename all_crate_nums query to crates and remove useless wrapperbjorn3-1/+1
2021-05-12Use () for lang items.Camille GILLOT-11/+7
2021-03-09Access attrs directly from HirId in rustc_passes::diagnostic_item.Camille GILLOT-6/+8
2021-02-15Use less HirId when referring to items.Camille GILLOT-8/+7
2021-02-15Only store a LocalDefId in hir::MacroDef.Camille GILLOT-1/+1
2021-02-15Only store a LocalDefId in hir::ForeignItem.Camille GILLOT-1/+1
2021-02-15Only store a LocalDefId in hir::ImplItem.Camille GILLOT-1/+1
2021-02-15Only store a LocalDefId in hir::TraitItem.Camille GILLOT-1/+1
2021-02-15Only store a LocalDefId in hir::Item.Camille GILLOT-1/+1
Items are guaranteed to be HIR owner.
2020-11-26Use visitor for its very purpose.Camille GILLOT-13/+3
2020-11-26Store ForeignItem in a side table.Camille GILLOT-0/+2
2020-10-18Allow #[rustc_diagnostic_item] on macros.Mara Bos-0/+4
2020-10-27Cache foreign_modules queryRyan Levick-1/+1
2020-09-19transmute: use diagnostic itemBastian Kauschke-1/+13
2020-08-30mv compiler to compiler/mark-0/+131