rust/compiler/rustc_resolve/src
bors 6c358c67d4 Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot
`BindingAnnotation` refactor

* `ast::BindingMode` is deleted and replaced with `hir::BindingAnnotation` (which is moved to `ast`)
* `BindingAnnotation` is changed from an enum to a tuple struct e.g. `BindingAnnotation(ByRef::No, Mutability::Mut)`
* Associated constants added for convenience `BindingAnnotation::{NONE, REF, MUT, REF_MUT}`

One goal is to make it more clear that `BindingAnnotation` merely represents syntax `ref mut` and not the actual binding mode. This was especially confusing since we had `ast::BindingMode`->`hir::BindingAnnotation`->`thir::BindingMode`.

I wish there were more symmetry between `ByRef` and `Mutability` (variant) naming (maybe `Mutable::Yes`?), and I also don't love how long the name `BindingAnnotation` is, but this seems like the best compromise. Ideas welcome.
2022-09-06 03:16:29 +00:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Do not call object_lifetime_default on lifetime params. 2022-09-03 21:11:42 +02:00
access_levels.rs Rollup merge of #100147 - Bryanskiy:private-in-public, r=petrochenkov 2022-09-02 11:34:48 +02:00
build_reduced_graph.rs Auto merge of #98960 - cjgillot:entry-kind, r=estebank 2022-09-01 19:31:14 +00:00
check_unused.rs rustc_middle: Remove Visibility::Invisible 2022-08-27 22:34:18 +03:00
def_collector.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
diagnostics.rs more clippy::perf fixes 2022-09-03 22:57:22 +02:00
ident.rs Directly use the instrument macro instead of its full path 2022-09-01 14:53:46 +00:00
imports.rs Rollup merge of #100147 - Bryanskiy:private-in-public, r=petrochenkov 2022-09-02 11:34:48 +02:00
late.rs Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
lib.rs Remove generics_def_id_map from the resolver. 2022-09-05 13:32:13 +02:00
macros.rs Fix a bunch of typo 2022-08-31 18:24:55 +08:00