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

ices/58987-3.rs: fixed with no errors #247

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 7, 2020

Issue: rust-lang/rust#58987

#![feature(const_generics)]

struct NibblePack<const N: usize> ([u8; N / 1]);

fn main() {}
=== stdout ===
=== stderr ===
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/58987-3.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: struct is never constructed: `NibblePack`
 --> /home/runner/work/glacier/glacier/ices/58987-3.rs:3:8
  |
3 | struct NibblePack<const N: usize> ([u8; N / 1]);
  |        ^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

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

=== stdout ===
=== stderr ===
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/58987-3.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: struct is never constructed: `NibblePack`
 --> /home/runner/work/glacier/glacier/ices/58987-3.rs:3:8
  |
3 | struct NibblePack<const N: usize> ([u8; N / 1]);
  |        ^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

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

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

One example is fixed but others aren't done yet.

@JohnTitor JohnTitor merged commit 269632f into master Jan 7, 2020
@JohnTitor JohnTitor deleted the autofix/ices/58987-3.rs branch January 7, 2020 12:12
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