-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler allows #[repr(i/u128)] on structs #74082
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-layout
Area: Memory layout of types
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-layout
Area: Memory layout of types
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jul 6, 2020
Should be a easy fix. @rustbot claim |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 7, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 8, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 8, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 8, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 9, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 9, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 10, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 10, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 10, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 10, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 11, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jul 11, 2020
Only allow `repr(i128/u128)` on enum Fixes rust-lang#74082
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-layout
Area: Memory layout of types
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: compilation failure
Instead, this happened: Compiles, outputs "0"
Meta
rustc --version --verbose
:Also: playground
This issue has been assigned to @nbdd0121 via this comment.
The text was updated successfully, but these errors were encountered: