rust/compiler/rustc_borrowck/src
Matthias Krüger e066208255
Rollup merge of #136402 - notriddle:notriddle/let-expr-detector, r=compiler-errors
diagnostics: fix borrowck suggestions for if/while let conditionals

This code detects the case where one of the borrows is inside the let init expr while the other end is not. If that happens, we don't want to suggest adding a semicolon, because it won't work.

Fixes #133941
2025-02-02 18:05:23 +01:00
..
constraints Reduce visibilities. 2024-11-04 15:43:45 +11:00
diagnostics Rollup merge of #136402 - notriddle:notriddle/let-expr-detector, r=compiler-errors 2025-02-02 18:05:23 +01:00
polonius Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
region_infer Move outlives env computation into methods 2025-01-28 18:55:03 +00:00
type_check Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
borrow_set.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
borrowck_errors.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
consumers.rs rename AllFacts to PoloniusFacts 2025-01-08 13:23:54 +00:00
dataflow.rs move out of scope precomputer code 2025-01-12 07:39:20 +00:00
def_use.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
lib.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
member_constraints.rs remove non-borrowck member constraints 2024-12-20 10:04:01 +01:00
nll.rs replace location-insensitive analysis with location-sensitive analysis 2025-01-12 07:29:03 +00:00
path_utils.rs remove borrowck duplicate of std::ops::ControlFlow 2025-01-01 12:13:33 +00:00
place_ext.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00
places_conflict.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
prefixes.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
renumber.rs mir borrowck: cleanup late-bound region handling 2025-01-14 14:16:12 +01:00
session_diagnostics.rs Rework "long type names" printing logic 2025-01-31 20:39:01 +00:00
universal_regions.rs mir borrowck: cleanup late-bound region handling 2025-01-14 14:16:12 +01:00
used_muts.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00