Skip to content

Commit

Permalink
fix issue 132391
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Dec 5, 2024
1 parent dfd76c1 commit a4bb0d4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
8 changes: 0 additions & 8 deletions tests/crashes/132391.rs

This file was deleted.

5 changes: 5 additions & 0 deletions tests/ui/feature-gates/feature-gate-fn_align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@

#[repr(align(16))] //~ ERROR `repr(align)` attributes on functions are unstable
fn requires_alignment() {}

trait MyTrait {
#[repr(align)] //~ ERROR `repr(align)` attributes on functions are unstable
fn myfun();
}
12 changes: 11 additions & 1 deletion tests/ui/feature-gates/feature-gate-fn_align.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ LL | #[repr(align(16))]
= help: add `#![feature(fn_align)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 1 previous error
error[E0658]: `repr(align)` attributes on functions are unstable
--> $DIR/feature-gate-fn_align.rs:7:12
|
LL | #[repr(align)]
| ^^^^^
|
= note: see issue #82232 <https://github.com/rust-lang/rust/issues/82232> for more information
= help: add `#![feature(fn_align)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.

0 comments on commit a4bb0d4

Please sign in to comment.