Revert "add DefId
to unsafety violations and display function path in E0133"
This reverts commit 8b8f6653cf
.
This commit is contained in:
parent
1c988cfa0b
commit
3568bdc6cd
29 changed files with 208 additions and 204 deletions
|
@ -11,11 +11,15 @@ impl S {
|
|||
async unsafe fn f() {}
|
||||
|
||||
async fn g() {
|
||||
S::f(); //~ ERROR call to unsafe function `S::f` is unsafe
|
||||
f(); //~ ERROR call to unsafe function `f` is unsafe
|
||||
S::f();
|
||||
//[mir]~^ ERROR call to unsafe function is unsafe
|
||||
//[thir]~^^ ERROR call to unsafe function `S::f` is unsafe
|
||||
f();
|
||||
//[mir]~^ ERROR call to unsafe function is unsafe
|
||||
//[thir]~^^ ERROR call to unsafe function `f` is unsafe
|
||||
}
|
||||
|
||||
fn main() {
|
||||
S::f(); //[mir]~ ERROR call to unsafe function `S::f` is unsafe
|
||||
f(); //[mir]~ ERROR call to unsafe function `f` is unsafe
|
||||
S::f(); //[mir]~ ERROR call to unsafe function is unsafe
|
||||
f(); //[mir]~ ERROR call to unsafe function is unsafe
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue