Skip to content

Commit d330c2f

Browse files
committed
Auto merge of #120550 - oli-obk:track_errors8, r=estebank
Continue to borrowck even if there were previous errors but only from the perspective of the whole compiler. Individual items should not get borrowcked if their MIR is tainted by errors. r? `@estebank` `@nnethercote`
2 parents 3c15c91 + 2b620ec commit d330c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fn check_fn_inner<'tcx>(
176176
_ => None,
177177
});
178178
for bound in lifetimes {
179-
if !bound.is_static() && !bound.is_elided() {
179+
if bound.res != LifetimeName::Static && !bound.is_elided() {
180180
return;
181181
}
182182
}

0 commit comments

Comments
 (0)