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

ices/94953.sh: fixed with no errors #1240

Merged
merged 1 commit into from
May 10, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#94953

rustc  -Zunpretty=expanded - 2>&1 << EOF

#![feature(lint_reasons)]
#![warn(unused)]

// This expect attribute should catch all lint triggers
#[expect(while_true)]
fn check_multiple_lints_3() {
    // `while_true` is an early lint
    while true {}
}

fn main() {
    check_multiple_lints_3();
}

EOF
=== stdout ===
/home/runner/work/glacier/glacier/ices/94953.sh: line 1: while_true: command not found
#![feature(prelude_import)]
#![no_std]
#![feature(lint_reasons)]
#![warn(unused)]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;

// This expect attribute should catch all lint triggers
#[expect(while_true)]
fn check_multiple_lints_3() {
    //  is an early lint
    while true {}
}

fn main() { check_multiple_lints_3(); }

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

=== stdout ===
/home/runner/work/glacier/glacier/ices/94953.sh: line 1: while_true: command not found
#![feature(prelude_import)]
#![no_std]
#![feature(lint_reasons)]
#![warn(unused)]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;

// This expect attribute should catch all lint triggers
#[expect(while_true)]
fn check_multiple_lints_3() {
    //  is an early lint
    while true {}
}

fn main() { check_multiple_lints_3(); }

=== stderr ===
==============
@Alexendoo Alexendoo merged commit ce6f954 into master May 10, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94953.sh branch May 10, 2022 13:10
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