diff options
| author | dianqk <dianqk@dianqk.net> | 2025-07-01 07:02:14 +0800 |
|---|---|---|
| committer | dianqk <dianqk@dianqk.net> | 2025-07-01 07:14:13 +0800 |
| commit | 90e0835004b2ec6dc596bbecf65eb49f49c01e7f (patch) | |
| tree | b540fc3421d8b09d1f005f1d384ceb2562416971 /compiler/rustc_borrowck/src | |
| parent | f26e58023071e71636a3c72ac3a2bf89b1f76706 (diff) | |
| download | rust-90e0835004b2ec6dc596bbecf65eb49f49c01e7f.tar.gz rust-90e0835004b2ec6dc596bbecf65eb49f49c01e7f.zip | |
mir: Mark `Statement` and `BasicBlockData` as `#[non_exhaustive]`
Ensure they are always created using constructors.
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs index fd8a2a6bc35..7c69baba62e 100644 --- a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs @@ -1168,6 +1168,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> { _, mir::Rvalue::Use(mir::Operand::Copy(place)), )), + .. }) = self.body[location.block].statements.get(location.statement_index) { self.body.local_decls[place.local].source_info.span |
