rust/compiler/rustc_span/src
bors 26d451f4b3 Auto merge of #80782 - petrochenkov:viscopes, r=matthewjasper
resolve: Scope visiting doesn't need an `Ident`

Resolution scope visitor (`fn visit_scopes`) currently takes an `Ident` parameter, but it doesn't need a full identifier, or even its span, it only needs the `SyntaxContext` part.
The `SyntaxContext` part is necessary because scope visitor has to jump to macro definition sites, so it has to be directed by macro expansion information somehow.

I think it's clearer to pass only the necessary part.
Yes, usually visiting happens as a part of an identifier resolution, but in cases like collecting traits in scope (#80765) or collecting typo suggestions that's not the case.

r? `@matthewjasper`
2021-01-10 23:36:33 +00:00
..
analyze_source_file mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lev_distance Move lev_distance to rustc_ast, make non-generic 2020-11-24 16:12:23 -08:00
source_map mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
symbol mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
analyze_source_file.rs Fix some clippy lints 2020-12-03 17:08:19 -05:00
caching_source_map_view.rs rustc_span: represent line bounds with Range 2020-10-27 15:47:29 -07:00
def_id.rs Add some docs to rustdoc::clean::inline and def_id functions 2020-10-06 09:46:00 +00:00
edition.rs Add edition 2021. 2020-12-31 19:06:09 +01:00
fatal_error.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
hygiene.rs resolve: Scope visiting doesn't need an Ident 2021-01-07 16:09:47 +03:00
lev_distance.rs Edit rustc_span documentation 2020-12-25 14:02:52 -08:00
lib.rs resolve: Scope visiting doesn't need an Ident 2021-01-07 16:09:47 +03:00
source_map.rs Use correct span for structured suggestion 2021-01-07 16:52:44 -08:00
span_encoding.rs Edit rustc_span documentation 2020-12-25 14:02:52 -08:00
symbol.rs Allow references to interior mutable data behind a feature gate 2021-01-01 16:59:12 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00