about summary refs log tree commit diff
path: root/clippy_lints/src/missing_inline.rs
AgeCommit message (Collapse)AuthorLines
2023-12-10remove redundant importssurechen-1/+1
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-12-01Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-syncPhilipp Krones-1/+1
2023-11-03Auto merge of #117507 - nnethercote:rustc_span, r=Nilstriebbors-2/+1
`rustc_span` cleanups Just some things I found while looking over this crate. r? `@oli-obk`
2023-11-02Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyupPhilipp Krones-1/+1
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-2/+1
Most notably, this commit changes the `pub use crate::*;` in that file to `use crate::*;`. This requires a lot of `use` items in other crates to be adjusted, because everything defined within `rustc_span::*` was also available via `rustc_span::source_map::*`, which is bizarre. The commit also removes `SourceMap::span_to_relative_line_string`, which is unused.
2023-08-09rustc: Move `crate_types` from `Session` to `GlobalCtxt`Vadim Petrochenkov-1/+0
Removes a piece of mutable state. Follow up to #114578.
2023-06-01Rename `impl_defaultness` to `defaultness`Deadbeef-1/+1
2023-01-14change impl_trait_ref query to return EarlyBinder; remove ↵Kyle Matsuda-1/+1
bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata
2023-01-14change usages of impl_trait_ref to bound_impl_trait_refKyle Matsuda-1/+1
2022-10-29Rename some `OwnerId` fields.Nicholas Nethercote-5/+5
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-26privacy: Rename "accessibility levels" to "effective visibilities"Vadim Petrochenkov-3/+3
And a couple of other naming tweaks Related to https://github.com/rust-lang/rust/issues/48054
2022-10-10Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8KiYuki Okushi-1/+1
rename `ImplItemKind::TyAlias` to `ImplItemKind::Type` The naming of this variant seems inconsistent given that this is not really a "type alias", and the associated type variant for `TraitItemKind` is just called `Type`.
2022-10-09ImplItemKind::TyAlias => ImplItemKind::TypeMichael Goulet-1/+1
2022-10-06Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyupPhilipp Krones-1/+1
2022-09-24separate definitions and `HIR` ownersTakayuki Maeda-3/+3
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-09-09Appease clippy againMichael Goulet-1/+0
2022-09-09Make clippy happyMichael Goulet-0/+1
2022-08-01Remove DefId from AssocItemContainer.Camille GILLOT-3/+5
2022-08-01Store associated item defaultness in impl_defaultness.Camille GILLOT-1/+1
2022-05-05Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyupflip1995-2/+2
2021-12-06Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyupflip1995-0/+1
2021-10-21Merge commit '91496c2ac6abf6454c413bb23e8becf6b6dc20ea' into clippyupflip1995-1/+1
2021-08-28Teach tools that macros are now HIR itemsinquisitivecrystal-0/+1
2021-07-31Fix clippyVadim Petrochenkov-3/+3
2021-07-29Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyupflip1995-5/+5
2021-04-08Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyupflip1995-1/+1
2021-03-25Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyupflip1995-1/+1
2021-03-12Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyupflip1995-4/+4
2021-03-09Remove hir::Item::attrs.Camille GILLOT-1/+2
2021-03-09Remove hir::ImplItem::attrs.Camille GILLOT-1/+2
2021-03-09Remove hir::TraitItem::attrs.Camille GILLOT-1/+2
2021-02-15Only store a LocalDefId in hir::ImplItem.Camille GILLOT-4/+3
2021-02-15Only store a LocalDefId in hir::Item.Camille GILLOT-1/+1
Items are guaranteed to be HIR owner.
2021-02-15Use ItemId as a strongly typed index.Camille GILLOT-1/+1
2020-11-26Remove ForeignMod struct.Camille GILLOT-1/+1
2020-11-05Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyupflip1995-1/+2
2020-08-04rustc_ast: `(Nested)MetaItem::check_name` -> `has_name`Vadim Petrochenkov-1/+1
For consistency with `Attribute::has_name` which doesn't mark the attribute as used either. Replace all uses of `check_name` with `has_name` outside of rustc
2020-07-14Merge commit '2ca58e7dda4a9eb142599638c59dc04d15961175' into clippyupflip1995-4/+5
2020-07-03Use 'tcx for references to AccessLevels wherever possible.Eduard-Mihai Burtescu-5/+5
2020-06-11Remove ImplItemKind::OpaqueTy from clippyMatthew Jasper-1/+1
2020-05-22Use `OnceCell` instead of `Once`Dylan MacKenzie-1/+1
2020-04-24rustup https://github.com/rust-lang/rust/pull/71215/Matthias Krüger-1/+1
2020-04-19Cleanup: `node_id` -> `hir_id`Philipp Hansch-2/+1
2020-03-30rustup https://github.com/rust-lang/rust/pull/70536Matthias Krüger-3/+3
2020-03-19rustup https://github.com/rust-lang/rust/pull/69920/Matthias Krüger-1/+1
2020-03-16rustup https://github.com/rust-lang/rust/pull/69738Matthias Krüger-1/+1
2020-03-13Rustup to rust-lang/rust#69674Yuki Okushi-1/+1
2020-03-01Rustup to rust-lang/rust#69592Yuki Okushi-1/+1
2020-01-18Rustup to rust-lang/rust#68204Yuki Okushi-1/+1
2020-01-13Rustup to rust-lang/rust#68045Yuki Okushi-3/+3