rust/compiler/rustc_resolve/src
Matthias Krüger 5c764da9b0
Rollup merge of #104315 - SparkyPotato:fix-104276, r=cjgillot
Improve spans with `use crate::{self}`

Fixes #104276.

The error becomes:
```
error: crate root imports need to be explicitly named: `use crate as name;`
 --> src/lib.rs.rs:1:13
  |
1 | use crate::{self};
  |             ^^^^

warning: unused import: `self`
 --> src/lib.rs:1:13
  |
1 | use crate::{self};
  |             ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
```
2022-11-13 17:37:37 +01:00
..
diagnostics Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late Rollup merge of #103970 - oli-obk:unhide_unknown_spans, r=estebank 2022-11-12 12:02:51 +05:30
build_reduced_graph.rs move span to self instead of crate 2022-11-13 13:46:11 +05:30
check_unused.rs resolve: Not all imports have their own NodeId 2022-10-31 20:25:27 +04:00
def_collector.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
diagnostics.rs Print all labels, even if they have no span. Fall back to main item's span. 2022-11-11 14:45:28 +00:00
effective_visibilities.rs resolve: Fill effective visibilities for import def ids in a separate pass 2022-11-05 17:55:20 +04:00
ident.rs Rollup merge of #103760 - petrochenkov:macimp, r=cjgillot 2022-11-01 22:01:36 +05:30
imports.rs Rollup merge of #103953 - TaKO8Ki:remove-unused-arg-from-throw_unresolved_import_error, r=oli-obk 2022-11-04 12:18:03 +01:00
late.rs add 'is_assign_rhs' to avoid weird suggesting 'let' 2022-11-10 00:43:12 +08:00
lib.rs resolve: More detailed effective visibility tracking for imports 2022-11-05 15:46:22 +04:00
macros.rs Rollup merge of #102049 - fee1-dead-contrib:derive_const, r=oli-obk 2022-11-12 12:02:50 +05:30