Files
Jacob Pratt bc0f005f4d Rollup merge of #157623 - mejrs:not_found_in, r=folkertdev
rustc_resolve: point the label span at the segment that could not be resolved

This is part of work that @weiznich and I are doing for `#[diagnostic::on_unknown]`.

This means that you can put the attribute in macro_rules macros and have the label message point at the input the user gave. It's imo also the right thing to point the span at in general.
```rust
mod things {}

macro_rules! mac {
    ($thing: ident) => {{
        const _x: u32 = {
            #[diagnostic::on_unknown(label = "you did the bad thing")]
            use things::$thing;
            //~^ERROR unresolved import `things::what` [E0432]
            //~|ERROR unresolved import `things::what2` [E0432]
            $thing
        };
    }};
}
```
```
LL | |         what2
   | |         ----- you did the bad thing
```
See also the first and last commit for what these messages look(ed) like.

cc @estebank
2026-06-08 23:22:41 -04:00
..
2025-11-27 11:19:00 -05:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00