Fix bad replacement for unsafe extern block suggestion
This commit is contained in:
parent
c3d7fb3985
commit
0addda6578
10 changed files with 75 additions and 26 deletions
|
@ -464,7 +464,7 @@ impl<'a> AstValidator<'a> {
|
|||
{
|
||||
self.dcx().emit_err(errors::InvalidSafetyOnExtern {
|
||||
item_span: span,
|
||||
block: self.current_extern_span(),
|
||||
block: self.current_extern_span().shrink_to_lo(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue