1
Fork 0

remove and bless

This commit is contained in:
ouz-a 2022-04-29 18:29:38 +03:00
parent f1c5f34f76
commit 4d4b0f140f
3 changed files with 2 additions and 10 deletions

View file

@ -59,8 +59,8 @@ fn may_be_reference(ty: Ty<'_>) -> bool {
/// Determines whether or not this LocalDecl is temp, if not it needs retagging.
fn is_not_temp<'tcx>(local_decl: &LocalDecl<'tcx>) -> bool {
if local_decl.local_info.is_some() {
match local_decl.local_info.as_ref().unwrap().as_ref() {
if let Some(local_info) = &local_decl.local_info {
match local_info.as_ref() {
LocalInfo::Temp => return false,
_ => (),
};