rust/compiler/rustc_resolve/src
Matthias Krüger 98fdfcb11b
Rollup merge of #127662 - estebank:gate-span, r=TaKO8Ki
When finding item gated behind a `cfg` flag, point at it

Previously we would only mention that the item was gated out, and opportunisitically mention the feature flag name when possible. We now point to the place where the item was gated, which can be behind layers of macro indirection, or in different modules.

```
error[E0433]: failed to resolve: could not find `doesnt_exist` in `inner`
  --> $DIR/diagnostics-cross-crate.rs:18:23
   |
LL |     cfged_out::inner::doesnt_exist::hello();
   |                       ^^^^^^^^^^^^ could not find `doesnt_exist` in `inner`
   |
note: found an item that was configured out
  --> $DIR/auxiliary/cfged_out.rs:6:13
   |
LL |     pub mod doesnt_exist {
   |             ^^^^^^^^^^^^
note: the item is gated here
  --> $DIR/auxiliary/cfged_out.rs:5:5
   |
LL |     #[cfg(FALSE)]
   |     ^^^^^^^^^^^^^
```
2024-07-19 10:48:05 +02:00
..
late Use field ident spans directly instead of the full field span in diagnostics on local fields 2024-07-06 19:22:05 +00:00
build_reduced_graph.rs Update method name to reflect changes to its internals 2024-07-16 15:34:35 +00:00
check_unused.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00
def_collector.rs out_of_scope_macro_calls: Detect calls inside attributes more precisely 2024-07-06 15:36:30 +03:00
diagnostics.rs Rollup merge of #127662 - estebank:gate-span, r=TaKO8Ki 2024-07-19 10:48:05 +02:00
effective_visibilities.rs resolve: Tweak some naming around import ambiguities 2024-06-25 19:52:59 +03:00
errors.rs When finding item gated behind a cfg flat, point at it 2024-07-12 18:52:52 +00:00
ident.rs Account for let foo = expr; to suggest const foo: Ty = expr; 2024-07-11 20:39:24 +00:00
imports.rs resolve: Tweak some naming around import ambiguities 2024-06-25 19:52:59 +03:00
late.rs Auto merge of #117967 - adetaylor:fix-lifetime-elision-bug, r=lcnr 2024-07-18 13:33:38 +00:00
lib.rs Account for let foo = expr; to suggest const foo: Ty = expr; 2024-07-11 20:39:24 +00:00
macros.rs out_of_scope_macro_calls: Detect calls inside attributes more precisely 2024-07-06 15:36:30 +03:00
rustdoc.rs rustdoc: update to pulldown-cmark 0.11 2024-06-30 18:33:48 -07:00