Rollup merge of #126973 - chenyukang:yukang-fix-126756-unsafe-suggestion-error, r=spastorino
Fix bad replacement for unsafe extern block suggestion Fixes #126756 r? ``@spastorino`` link #123743
This commit is contained in:
commit
b2720867f1
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