-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler allows #[repr(i/u128)] on structs #74082
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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: