-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
strip rust src lines during normalization
- Loading branch information
1 parent
aa98d35
commit 383c15e
Showing
5 changed files
with
36 additions
and
40 deletions.
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
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
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 |
---|---|---|
@@ -1,9 +1,20 @@ | ||
error[E0277]: `*mut _` cannot be shared between threads safely | ||
--> tests/ui/compile-fail-3.rs:7:5 | ||
| | ||
7 | thread::spawn(|| { | ||
| ^^^^^^^^^^^^^ `*mut _` cannot be shared between threads safely | ||
| | ||
= help: the trait `Sync` is not implemented for `*mut _` | ||
= note: required because of the requirements on the impl of `Send` for `&*mut _` | ||
= note: required because it appears within the type `[closure@$DIR/tests/ui/compile-fail-3.rs:7:19: 9:6]` | ||
--> tests/ui/compile-fail-3.rs:7:19 | ||
| | ||
7 | thread::spawn(|| { | ||
| _____-------------_^ | ||
| | | | ||
| | required by a bound introduced by this call | ||
8 | | println!("{:?}", x) | ||
9 | | }); | ||
| |_____^ `*mut _` cannot be shared between threads safely | ||
| | ||
= help: the trait `Sync` is not implemented for `*mut _` | ||
= note: required for `&*mut _` to implement `Send` | ||
note: required because it's used within this closure | ||
--> tests/ui/compile-fail-3.rs:7:19 | ||
| | ||
7 | thread::spawn(|| { | ||
| ^^ | ||
note: required by a bound in `spawn` | ||
--> $RUST/std/src/thread/mod.rs |