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

ices/94961.sh: fixed with errors #1174

Merged
merged 1 commit into from
Mar 19, 2022
Merged

ices/94961.sh: fixed with errors #1174

merged 1 commit into from
Mar 19, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#94961

rustc -Cdebuginfo=2 - 2>&1 << EOF

struct S<T> { x: [T; !0] }

pub fn f() -> usize {
    std::mem::size_of::<S<u8>>()
}

fn main() {
    let x = f();
}

EOF
=== stdout ===
warning: unused variable: `x`
 --> <anon>:9:9
  |
9 |     let x = f();
  |         ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: field is never read: `x`
 --> <anon>:2:15
  |
2 | struct S<T> { x: [T; !0] }
  |               ^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

error: values of the type `[u8; 18446744073709551615]` are too big for the current architecture

error: aborting due to previous error; 2 warnings emitted

=== stderr ===
==============

=== stdout ===
warning: unused variable: `x`
 --> <anon>:9:9
  |
9 |     let x = f();
  |         ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: field is never read: `x`
 --> <anon>:2:15
  |
2 | struct S<T> { x: [T; !0] }
  |               ^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

error: values of the type `[u8; 18446744073709551615]` are too big for the current architecture

error: aborting due to previous error; 2 warnings emitted

=== stderr ===
==============
@Alexendoo Alexendoo merged commit b756a22 into master Mar 19, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94961.sh branch March 19, 2022 13:15
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