rust/compiler/rustc_borrowck/src/diagnostics
Matthias Krüger 53f5294c0f
Rollup merge of #129340 - stephen-lazaro:u/slazaro/issue-129274, r=compiler-errors
Remove Duplicate E0381 Label

Aims to resolve https://github.com/rust-lang/rust/issues/129274, and adds a test for the case.

Essentially, we are duplicating this span for some reason. For now, I'm just using a set to collect the spans rather than the vec. I imagine there's probably no real reason to inspect duplicates in this area, but if I'm wrong I can adjust to collect "seen spans" in just the point where this label is applied.

I'm not sure why it's producing duplicate spans. Looks like this has been this way for a while? I think it gives the duplicate label on 1.75.0 for example.
2024-08-27 00:42:00 +02:00
..
bound_region_errors.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
conflict_errors.rs Rollup merge of #129340 - stephen-lazaro:u/slazaro/issue-129274, r=compiler-errors 2024-08-27 00:42:00 +02:00
explain_borrow.rs Use assert_matches around the compiler 2024-08-11 12:25:39 -04:00
find_all_local_uses.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
find_use.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
move_errors.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
mutability_errors.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
outlives_suggestion.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
region_errors.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
region_name.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
var_name.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00