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:
parent
2f695dc64e
commit
5d2d11fd5d
12 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue