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

ices/66205.rs: fixed with no errors #223

Merged
merged 1 commit into from
Dec 5, 2019
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 5, 2019

Issue: rust-lang/rust#66205

#![feature(const_generics)]

fn fact<const N: usize>() {
    fact::<{ 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/66205.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: function cannot return without recursing
 --> /home/runner/work/glacier/glacier/ices/66205.rs:3:1
  |
3 | fn fact<const N: usize>() {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
4 |     fact::<{ N - 1 }>();
  |     ------------------- recursive call site
  |
  = note: `#[warn(unconditional_recursion)]` on by default
  = help: a `loop` may express intention better if this is on purpose

warning: function is never used: `fact`
 --> /home/runner/work/glacier/glacier/ices/66205.rs:3:4
  |
3 | fn fact<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/66205.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: function cannot return without recursing
 --> /home/runner/work/glacier/glacier/ices/66205.rs:3:1
  |
3 | fn fact<const N: usize>() {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
4 |     fact::<{ N - 1 }>();
  |     ------------------- recursive call site
  |
  = note: `#[warn(unconditional_recursion)]` on by default
  = help: a `loop` may express intention better if this is on purpose

warning: function is never used: `fact`
 --> /home/runner/work/glacier/glacier/ices/66205.rs:3:4
  |
3 | fn fact<const N: usize>() {
  |    ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

==============
@Alexendoo Alexendoo merged commit 03370fd into master Dec 5, 2019
@Alexendoo Alexendoo deleted the autofix/ices/66205.rs branch December 5, 2019 17:25
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.

None yet

2 participants