1
Fork 0

Rename ClearCrossCrate::assert_crate_local.

As `unwrap_crate_local`, because it follows exactly the standard form of
an `unwrap` function.
This commit is contained in:
Nicholas Nethercote 2025-02-13 14:00:39 +11:00
parent 2f695dc64e
commit 5d2d11fd5d
12 changed files with 15 additions and 15 deletions

View file

@ -142,7 +142,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
// Overwrite temp local info if we have something more interesting to record.
if !matches!(local_info, LocalInfo::Boring) {
let decl_info =
this.local_decls[operand].local_info.as_mut().assert_crate_local();
this.local_decls[operand].local_info.as_mut().unwrap_crate_local();
if let LocalInfo::Boring | LocalInfo::BlockTailTemp(_) = **decl_info {
**decl_info = local_info;
}