Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/94382.rs: fixed with errors #1161

Merged
merged 1 commit into from
Mar 5, 2022
Merged

ices/94382.rs: fixed with errors #1161

merged 1 commit into from
Mar 5, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 5, 2022

Issue: rust-lang/rust#94382

#![feature(platform_intrinsics)]
#![feature(staged_api)]
struct u16x2(u16, u16);
extern "platform-intrinsic" {
    #[rustc_const_stable(feature = "foo", since = "1.3.37")]
    fn simd_extract<T, U>(x: T, idx: u32) -> U;
}
fn main() {
    const U: u16x2 = u16x2(13, 14);
    const V: u16x2 = U;
    const Y0: i8 = unsafe { simd_extract(V, 0) };
}
=== stdout ===
=== stderr ===
warning: type `u16x2` should have an upper camel case name
 --> /home/runner/work/glacier/glacier/ices/94382.rs:3:8
  |
3 | struct u16x2(u16, u16);
  |        ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `U16x2`
  |
  = note: `#[warn(non_camel_case_types)]` on by default

error: module has missing stability attribute
  --> /home/runner/work/glacier/glacier/ices/94382.rs:1:1
   |
1  | / #![feature(platform_intrinsics)]
2  | | #![feature(staged_api)]
3  | | struct u16x2(u16, u16);
4  | | extern "platform-intrinsic" {
...  |
11 | |     const Y0: i8 = unsafe { simd_extract(V, 0) };
12 | | }
   | |_^

error: aborting due to previous error; 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: type `u16x2` should have an upper camel case name
 --> /home/runner/work/glacier/glacier/ices/94382.rs:3:8
  |
3 | struct u16x2(u16, u16);
  |        ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `U16x2`
  |
  = note: `#[warn(non_camel_case_types)]` on by default

error: module has missing stability attribute
  --> /home/runner/work/glacier/glacier/ices/94382.rs:1:1
   |
1  | / #![feature(platform_intrinsics)]
2  | | #![feature(staged_api)]
3  | | struct u16x2(u16, u16);
4  | | extern "platform-intrinsic" {
...  |
11 | |     const Y0: i8 = unsafe { simd_extract(V, 0) };
12 | | }
   | |_^

error: aborting due to previous error; 1 warning emitted

==============
Copy link
Member

@Alexendoo Alexendoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These (this + #1157, #1159, #1160) ICEs could be updated to add stability attributes and they'd still ICE, but I'm going to move them to fixed due to rust-lang/rust#94382 (comment)

@Alexendoo Alexendoo merged commit 8eb8290 into master Mar 5, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94382.rs branch March 5, 2022 12:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants