This commit is contained in:
parent
45196cee02
commit
6669c2c6ce
@ -208,8 +208,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantClone {
|
|||||||
|
|
||||||
if !used_later {
|
if !used_later {
|
||||||
let span = terminator.source_info.span;
|
let span = terminator.source_info.span;
|
||||||
let node = if let mir::ClearCrossCrate::Set(scope_local_data) = &mir.source_scope_local_data {
|
let scope = terminator.source_info.scope;
|
||||||
scope_local_data[terminator.source_info.scope].lint_root
|
let node = if let mir::ClearCrossCrate::Set(scope_local_data) = &mir.source_scopes[scope].local_data {
|
||||||
|
scope_local_data.lint_root
|
||||||
} else {
|
} else {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user