forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#86456 - JohnTitor:rollup-jjzupny, r=JohnTitor
Rollup of 9 pull requests Successful merges: - rust-lang#86136 (Stabilize span_open() and span_close().) - rust-lang#86359 (Use as_secs_f64 in JunitFormatter) - rust-lang#86370 (Fix rustdoc stabilized versions layout) - rust-lang#86397 (Alter std::cell::Cell::get_mut documentation) - rust-lang#86407 (Use `map_or` instead of open-coding it) - rust-lang#86425 (Update rustversion to 1.0.5) - rust-lang#86440 (Update library tracking issue for libs-api rename.) - rust-lang#86444 (Fix ICE with `#[repr(simd)]` on enum) - rust-lang#86453 (stdlib: Fix typo in internal RefCell docs ) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
11 changed files
with
79 additions
and
19 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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Regression test for the ICE described in #83505. | ||
|
||
#![crate_type="lib"] | ||
|
||
#[repr(simd)] | ||
//~^ ERROR: attribute should be applied to a struct [E0517] | ||
//~| ERROR: unsupported representation for zero-variant enum [E0084] | ||
enum Es {} | ||
static CLs: Es; | ||
//~^ ERROR: free static item without body |
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,30 @@ | ||
error: free static item without body | ||
--> $DIR/issue-83505-repr-simd.rs:9:1 | ||
| | ||
LL | static CLs: Es; | ||
| ^^^^^^^^^^^^^^- | ||
| | | ||
| help: provide a definition for the static: `= <expr>;` | ||
|
||
error[E0517]: attribute should be applied to a struct | ||
--> $DIR/issue-83505-repr-simd.rs:5:8 | ||
| | ||
LL | #[repr(simd)] | ||
| ^^^^ | ||
... | ||
LL | enum Es {} | ||
| ---------- not a struct | ||
|
||
error[E0084]: unsupported representation for zero-variant enum | ||
--> $DIR/issue-83505-repr-simd.rs:5:1 | ||
| | ||
LL | #[repr(simd)] | ||
| ^^^^^^^^^^^^^ | ||
... | ||
LL | enum Es {} | ||
| ---------- zero-variant enum | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
Some errors have detailed explanations: E0084, E0517. | ||
For more information about an error, try `rustc --explain E0084`. |