diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-23 18:26:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 18:26:18 +0900 |
| commit | da3e41e8d367ceb3509f7fa95bf817f1895e9321 (patch) | |
| tree | 7f505107a699e660b41f222b5a211334e1a43fb3 /src/test/ui/issues | |
| parent | 8e373304edeb5c0a3354d0152f322aec16ef6400 (diff) | |
| parent | 683db310c4a2e205bd954ea030cff3ce2fa9ef68 (diff) | |
| download | rust-da3e41e8d367ceb3509f7fa95bf817f1895e9321.tar.gz rust-da3e41e8d367ceb3509f7fa95bf817f1895e9321.zip | |
Rollup merge of #77488 - varkor:repr128-incomplete_features, r=jonas-schievink
Mark `repr128` as `incomplete_features` As mentioned in https://github.com/rust-lang/rust/issues/56071 and noticed in https://github.com/rust-lang/rust/issues/77457, `repr(u128)` and `repr(i128)` do not work properly due to lack of LLVM support. We should thus warn users trying to use the feature that they may encounter ICEs when using it. Closes https://github.com/rust-lang/rust/issues/77457.
Diffstat (limited to 'src/test/ui/issues')
| -rw-r--r-- | src/test/ui/issues/issue-43398.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-43398.stderr | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-43398.rs b/src/test/ui/issues/issue-43398.rs index f0b762c6254..581db033f92 100644 --- a/src/test/ui/issues/issue-43398.rs +++ b/src/test/ui/issues/issue-43398.rs @@ -2,6 +2,7 @@ #![feature(core_intrinsics)] #![feature(repr128)] +//~^ WARN the feature `repr128` is incomplete #[repr(i128)] enum Big { A, B } diff --git a/src/test/ui/issues/issue-43398.stderr b/src/test/ui/issues/issue-43398.stderr new file mode 100644 index 00000000000..9a394153bf6 --- /dev/null +++ b/src/test/ui/issues/issue-43398.stderr @@ -0,0 +1,11 @@ +warning: the feature `repr128` is incomplete and may not be safe to use and/or cause compiler crashes + --> $DIR/issue-43398.rs:4:12 + | +LL | #![feature(repr128)] + | ^^^^^^^ + | + = note: `#[warn(incomplete_features)]` on by default + = note: see issue #56071 <https://github.com/rust-lang/rust/issues/56071> for more information + +warning: 1 warning emitted + |
