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

ices/82328.sh: fixed with no errors #851

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#82328

#!/bin/bash

rustc -Zunpretty=hir,typed - <<'EOF'
fn main() {}

fn foo(-128..=127: i8) {}
EOF
=== stdout ===
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
fn main() ({ } as ())

fn foo((-(128 as i8) as i8) ...(127 as i8): i8) ({ } as ())
=== stderr ===
warning: function is never used: `foo`
 --> <anon>:3:4
  |
3 | fn foo(-128..=127: i8) {}
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
fn main() ({ } as ())

fn foo((-(128 as i8) as i8) ...(127 as i8): i8) ({ } as ())
=== stderr ===
warning: function is never used: `foo`
 --> <anon>:3:4
  |
3 | fn foo(-128..=127: i8) {}
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 59d2f45 into master Jun 28, 2021
@Alexendoo Alexendoo deleted the autofix/ices/82328.sh branch June 28, 2021 12: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.

None yet

2 participants