Skip to content

Commit 0e40dbb

Browse files
Mathieu BorderéMathieu Borderé
Mathieu Borderé
authored and
Mathieu Borderé
committed
ICH: Remove obsolete binding in saw_ty
1 parent 6f64296 commit 0e40dbb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_incremental/calculate_svh/svh_visitor.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,7 @@ fn saw_ty(node: &Ty_) -> SawTyComponent {
366366
TyArray(..) => SawTyArray,
367367
TyPtr(ref mty) => SawTyPtr(mty.mutbl),
368368
TyRptr(_, ref mty) => SawTyRptr(mty.mutbl),
369-
TyBareFn(ref barefnty) => {
370-
let ref fnty = *barefnty;
371-
SawTyBareFn(fnty.unsafety, fnty.abi)
372-
},
369+
TyBareFn(ref barefnty) => SawTyBareFn(barefnty.unsafety, barefnty.abi),
373370
TyNever => SawTyNever,
374371
TyTup(..) => SawTyTup,
375372
TyPath(..) => SawTyPath,

0 commit comments

Comments
 (0)