rust/compiler/rustc_borrowck/src
Matthias Krüger 34ef13b15b
Rollup merge of #110960 - lukas-code:unused-mut, r=compiler-errors
fix false negative for `unused_mut`

fixes https://github.com/rust-lang/rust/issues/110849

We want to avoid double diagnostics for code like this, but only if an error actually occurs:
```rust
fn main() {
    let mut x: (i32, i32);
    x.0 = 1;
}
```

The first commit fixes the lint and the second one removes all the unused `mut`s it found.
2023-04-28 22:56:47 +02:00
..
constraints Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
diagnostics Fix an ICE in conflict errors diagnostics 2023-04-28 17:37:56 +00:00
region_infer Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
type_check Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
util Move some utils out of rustc_const_eval 2023-04-16 12:05:54 +02:00
borrow_set.rs Remove ToRegionVid. 2023-04-13 12:20:41 +10:00
borrowck_errors.rs Add #[track_caller] to struct_span_err_with_code (drive-by cleanup) 2023-04-19 19:10:37 +00:00
constraint_generation.rs Remove ToRegionVid. 2023-04-13 12:20:41 +10:00
consumers.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
dataflow.rs Remove impl ToRegionVid for RegionVid. 2023-04-13 12:10:16 +10:00
def_use.rs Evaluate place expression in PlaceMention. 2023-04-21 21:34:59 +00:00
facts.rs Various minor Idx-related tweaks 2023-04-16 02:42:50 -07:00
invalidation.rs Evaluate place expression in PlaceMention. 2023-04-21 21:34:59 +00:00
lib.rs fix false negative for unused_mut 2023-04-28 19:35:40 +02:00
location.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
member_constraints.rs remove unused muts 2023-04-28 20:19:48 +02:00
nll.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
path_utils.rs Move mir::Fieldabi::FieldIdx 2023-03-28 22:22:37 -07:00
place_ext.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
places_conflict.rs Removed various double spaces in compiler source comments. 2023-01-14 17:34:59 +01:00
prefixes.rs lint auto pass 2022-11-09 20:42:16 +08:00
renumber.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
session_diagnostics.rs rm var_span_label to var_subdiag & eager subdiag 2023-04-13 09:43:46 +08:00
universal_regions.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
used_muts.rs Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00