forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#104515 - chenyukang:yukang/fix-104510-ice, …
…r=compiler-errors ICE fixing, remove is_tainted_by_errors since we have ty_error for delay bug Fixes rust-lang#104510
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// needs-asm-support | ||
// only-x86_64 | ||
|
||
struct W<T: ?Sized>(Oops); | ||
//~^ ERROR cannot find type `Oops` in this scope | ||
|
||
unsafe fn test() { | ||
let j = W(()); | ||
let pointer = &j as *const _; | ||
core::arch::asm!( | ||
"nop", | ||
in("eax") pointer, | ||
); | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
error[E0412]: cannot find type `Oops` in this scope | ||
--> $DIR/issue-104510-ice.rs:4:21 | ||
| | ||
LL | struct W<T: ?Sized>(Oops); | ||
| ^^^^ not found in this scope | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0412`. |