dump bugged fix
This commit is contained in:
parent
74cba639e9
commit
a2e4ef294c
4 changed files with 32 additions and 14 deletions
|
|
@ -109,7 +109,6 @@ impl<'tcx> LateLintPass<'tcx> for StdReexports {
|
|||
sym::core => (STD_INSTEAD_OF_CORE, "std", "core"),
|
||||
sym::alloc => (STD_INSTEAD_OF_ALLOC, "std", "alloc"),
|
||||
_ => {
|
||||
self.prev_span = first_segment.ident.span;
|
||||
return;
|
||||
},
|
||||
},
|
||||
|
|
@ -117,7 +116,6 @@ impl<'tcx> LateLintPass<'tcx> for StdReexports {
|
|||
if cx.tcx.crate_name(def_id.krate) == sym::core {
|
||||
(ALLOC_INSTEAD_OF_CORE, "alloc", "core")
|
||||
} else {
|
||||
self.prev_span = first_segment.ident.span;
|
||||
return;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue