rust/compiler/rustc_borrowck/src
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
..
constraints Reformat use declarations. 2024-07-29 08:26:52 +10:00
diagnostics Rollup merge of #129340 - stephen-lazaro:u/slazaro/issue-129274, r=compiler-errors 2024-08-27 00:42:00 +02:00
polonius rename AddressOf -> RawBorrow inside the compiler 2024-08-18 19:46:53 +02:00
region_infer Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
type_check Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
util Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
borrow_set.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
borrowck_errors.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
consumers.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
dataflow.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
def_use.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
facts.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
location.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
member_constraints.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
nll.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
path_utils.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
place_ext.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
places_conflict.rs Avoid taking reference of &TyKind 2024-08-25 16:02:29 -04:00
prefixes.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
renumber.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
session_diagnostics.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
universal_regions.rs Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
used_muts.rs Rename 'cx to 'infcx 2024-06-27 09:07:57 +00:00