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

ices/61368.rs: fixed with no errors #246

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#61368

#![feature(const_generics)]

struct Stack<const N: usize> {
    stack: [u64; N / 8],
}

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

warning: struct is never constructed: `Stack`
 --> /home/runner/work/glacier/glacier/ices/61368.rs:3:8
  |
3 | struct Stack<const N: usize> {
  |        ^^^^^
  |
  = 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/61368.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

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

==============
@JohnTitor JohnTitor merged commit 81b7af0 into master Jan 7, 2020
@JohnTitor JohnTitor deleted the autofix/ices/61368.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