about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/ident.rs
AgeCommit message (Collapse)AuthorLines
2023-04-01slighty simplify a few boolean expressions (clippy::nonminimal_bool)Matthias Krüger-1/+1
2023-03-03Match unmatched backticks in compiler/ that are part of rustdocest31-1/+1
2023-02-20Prepare for adding a `TyCtxt` to `Resolver`Oli Scherer-6/+9
2023-02-14Separate the lifetime of the session and the arena in the resolverOli Scherer-1/+1
2023-02-02Rename `rust_2015` => `is_rust_2015`Maybe Waffle-2/+3
2023-01-31Use `Edition` methods a bit moreMaybe Waffle-2/+1
2023-01-20Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error"Felix S. Klock II-10/+65
This reverts commit 7d82cadd97acc66993b69304c5a1a04ef7d1fa36. I am doing this to buy us some time with respect to issue #106337 w.r.t. the 1.67 release.
2023-01-04Simplify some iterator combinatorsMichael Goulet-5/+4
2022-11-01Rollup merge of #103760 - petrochenkov:macimp, r=cjgillotDylan DPC-2/+6
resolve: Turn the binding from `#[macro_export]` into a proper `Import` Continuation of https://github.com/rust-lang/rust/pull/91795. ```rust #[macro_export] macro_rules! m { /*...*/ } ``` is desugared to something like ```rust macro_rules! m { /*...*/ } // Non-modularized macro_rules item pub use m; // It's modularized reexport ``` This PR adjusts the internal representation to better match this model.
2022-10-31resolve: Turn the binding from `#[macro_export]` into a proper `Import`Vadim Petrochenkov-2/+6
2022-10-24Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard errorAaron Hill-65/+10
2022-09-29Shrink `hir::def::Res`.Nicholas Nethercote-6/+16
`Res::SelfTy` currently has two `Option`s. When the second one is `Some` the first one is never consulted. So we can split it into two variants, `Res::SelfTyParam` and `Res::SelfTyAlias`, reducing the size of `Res` from 24 bytes to 12. This then shrinks `hir::Path` and `hir::PathSegment`, which are the HIR types that take up the most space.
2022-09-07rustc: Parameterize `ty::Visibility` over used IDVadim Petrochenkov-6/+7
It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata.
2022-09-01Directly use the `instrument` macro instead of its full pathOli Scherer-10/+10
2022-08-30Rollup merge of #101123 - JohnTitor:rm-register-attr, r=TaKO8KiDylan DPC-11/+1
Remove `register_attr` feature Closes #66080 Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-28Remove `register_attr` featureYuki Okushi-11/+1
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-27rustc_middle: Remove `Visibility::Invisible`Vadim Petrochenkov-2/+8
2022-08-23Remove FnItemRibKind.Camille GILLOT-11/+1
2022-08-23Improve local generic parameter suggestions.Camille GILLOT-4/+4
2022-08-23Create specific ConstantHasGenerics for ConstantItemRibKind.Camille GILLOT-3/+9
2022-07-25Unused tuple fields in rustc_resolve.Camille GILLOT-2/+2
2022-06-20Provide a segment res in more casesMichael Goulet-0/+1
2022-06-15implement `MacroData`Takayuki Maeda-1/+1
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-8/+8
2022-05-07Permit asm_const and asm_sym to reference outer generic paramsGary Guo-32/+2
2022-05-02Use a yes/no enum instead of a bool.Oli Scherer-2/+2
The bool's meaning wasn't obvious to me at some call sites.
2022-05-01resolve: Rename `unusable_binding` to `ignore_binding`Vadim Petrochenkov-45/+32
2022-05-01resolve: Merge `last_import_segment` into `Finalize`Vadim Petrochenkov-25/+5
2022-05-01resolve: Pass full `Finalize` in nearly all casesVadim Petrochenkov-16/+14
2022-05-01resolve: Turn `enum Finalize` into an optional structVadim Petrochenkov-7/+7
2022-04-17Lint elided lifetimes in path on the AST.Camille GILLOT-1/+1
2022-04-14Reimplement lowering of sym operands for asm! so that it also works with ↵Amanieu d'Antras-0/+38
global_asm!
2022-04-12Handle `unusable_binding` more compactly.Vadim Petrochenkov-17/+14
2022-04-12Fix imports.Camille GILLOT-8/+3
2022-04-12Simplify error reporting.Camille GILLOT-1/+0
2022-04-12Move path resolution error to rustc_resolve::diagnostics.Camille GILLOT-161/+12
2022-04-12Make the logic more explicit with let chains.Camille GILLOT-18/+16
2022-04-12Do not record Res when builing a suggestion.Camille GILLOT-6/+9
2022-04-12Insert error after checking for binding usability.Camille GILLOT-6/+6
2022-04-12Pass last_import_segment and unusable_binding as parameters.Camille GILLOT-9/+102
2022-04-12Simplify binding finalization.Camille GILLOT-53/+54
2022-04-12Move ident resolution to a dedicated module.Camille GILLOT-0/+1645