Rollup merge of #110379 - ehuss:unignore-tests, r=compiler-errors

Update some ignored tests.

This unignores some tests which no longer need to be ignored (see individual commits for reasons why). This also adds some descriptions to why tests are ignored so they can be seen in the test output.
This commit is contained in:
fee1-dead 2023-04-16 14:24:33 +08:00 committed by GitHub
commit 4d868c9508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 39 additions and 30 deletions

View File

@ -6,8 +6,7 @@
// EMIT_MIR simplify_arm.id_try.SimplifyArmIdentity.diff // EMIT_MIR simplify_arm.id_try.SimplifyArmIdentity.diff
// EMIT_MIR simplify_arm.id_try.SimplifyBranchSame.diff // EMIT_MIR simplify_arm.id_try.SimplifyBranchSame.diff
// This pass is broken since deaggregation changed // ignore-test This pass is broken since deaggregation changed
// ignore-test
fn id(o: Option<u8>) -> Option<u8> { fn id(o: Option<u8>) -> Option<u8> {
match o { match o {

View File

@ -4,8 +4,7 @@
// compile-flags: -Zmir-opt-level=3 // compile-flags: -Zmir-opt-level=3
// EMIT_MIR_FOR_EACH_BIT_WIDTH // EMIT_MIR_FOR_EACH_BIT_WIDTH
// This pass is broken since deaggregation changed // ignore-test This pass is broken since deaggregation changed
// ignore-test
enum Src { enum Src {
Foo(u8), Foo(u8),

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
macro_rules! aaa { macro_rules! aaa {
($c:ident) => {{ ($c:ident) => {{

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
trait Foo { } trait Foo { }

View File

@ -1,3 +1,3 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
#![cfg_attr(all(), cfg(FALSE))] #![cfg_attr(all(), cfg(FALSE))]

View File

@ -1,5 +1,5 @@
error: in expressions, `_` can only be used on the left-hand side of an assignment error: in expressions, `_` can only be used on the left-hand side of an assignment
--> $DIR/underscore.rs:8:9 --> $DIR/underscore.rs:6:9
| |
LL | _ LL | _
| ^ `_` not allowed here | ^ `_` not allowed here

View File

@ -1,6 +1,4 @@
// We want this file only so we can test cross-file error // ignore-test (auxiliary, used by other tests)
// messages, but we don't want it in an external crate.
// ignore-test
#![crate_type = "lib"] #![crate_type = "lib"]
macro_rules! underscore { macro_rules! underscore {

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (This is currently broken)
#![allow(incomplete_features)] #![allow(incomplete_features)]
#![feature(const_mut_refs)] #![feature(const_mut_refs)]

View File

@ -6,7 +6,7 @@
// where #54986 is implemented and #54987 is *not* implemented. For // where #54986 is implemented and #54987 is *not* implemented. For
// now: just ignore it // now: just ignore it
// //
// ignore-test // ignore-test (#54987)
// This test is checking that the space allocated for `x.1` does not // This test is checking that the space allocated for `x.1` does not
// overlap with `y`. (The reason why such a thing happened at one // overlap with `y`. (The reason why such a thing happened at one

View File

@ -1,5 +1,5 @@
// run-rustfix // run-rustfix
// ignore-test // ignore-test (rustfix needs multiple suggestions)
// //
// FIXME: Re-enable this test once we support choosing // FIXME: Re-enable this test once we support choosing
// between multiple mutually exclusive suggestions for the same span // between multiple mutually exclusive suggestions for the same span

View File

@ -1,9 +1,7 @@
// ignore-test FIXME(#20574)
#![deny(unreachable_code)] #![deny(unreachable_code)]
fn main() { fn main() {
let x = || panic!(); let x = || -> ! { panic!() };
x(); x();
println!("Foo bar"); //~ ERROR: unreachable statement println!("Foo bar"); //~ ERROR: unreachable statement
} }

View File

@ -0,0 +1,17 @@
error: unreachable statement
--> $DIR/closure-bang.rs:6:5
|
LL | x();
| --- any code following this expression is unreachable
LL | println!("Foo bar");
| ^^^^^^^^^^^^^^^^^^^ unreachable statement
|
note: the lint level is defined here
--> $DIR/closure-bang.rs:1:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
macro_rules! m { macro_rules! m {
() => { include!("file.txt"); } () => { include!("file.txt"); }

View File

@ -4,7 +4,7 @@
// where #54986 is implemented and #54987 is *not* implemented. For // where #54986 is implemented and #54987 is *not* implemented. For
// now: just ignore it // now: just ignore it
// //
// ignore-test // ignore-test (#54987)
// This test is checking that the write to `c.0` (which has been moved out of) // This test is checking that the write to `c.0` (which has been moved out of)
// won't overwrite the state in `c2`. // won't overwrite the state in `c2`.

View File

@ -4,7 +4,7 @@
// where #54986 is implemented and #54987 is *not* implemented. For // where #54986 is implemented and #54987 is *not* implemented. For
// now: just ignore it // now: just ignore it
// //
// ignore-test // ignore-test (#54987)
// These are variants of issue-26996.rs. In all cases we are writing // These are variants of issue-26996.rs. In all cases we are writing
// into a record field that has been moved out of, and ensuring that // into a record field that has been moved out of, and ensuring that

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
// Tests saturating float->int casts. See u128-as-f32.rs for the opposite direction. // Tests saturating float->int casts. See u128-as-f32.rs for the opposite direction.
// //

View File

@ -1,6 +1,6 @@
// This test has been spuriously failing a lot recently (#92000). // This test has been spuriously failing a lot recently (#92000).
// Ignore it until the underlying issue is fixed. // Ignore it until the underlying issue is fixed.
// ignore-test // ignore-test (#92000)
// Regression test for #87481: short backtrace formatting cut off the entire stack trace. // Regression test for #87481: short backtrace formatting cut off the entire stack trace.

View File

@ -1 +1 @@
// ignore-test // ignore-test (auxiliary, used by other tests)

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
#![rustfmt::skip] #![rustfmt::skip]
#![print_attr] #![print_attr]

View File

@ -1 +1 @@
// ignore-test // ignore-test (auxiliary, used by other tests)

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
#[derive(Print)] #[derive(Print)]
enum ProceduralMasqueradeDummyType { enum ProceduralMasqueradeDummyType {

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
#[derive(Print)] #[derive(Print)]
enum ProceduralMasqueradeDummyType { enum ProceduralMasqueradeDummyType {

View File

@ -1,4 +1,4 @@
// ignore-test // ignore-test (auxiliary, used by other tests)
#[derive(Print)] #[derive(Print)]
enum ProceduralMasqueradeDummyType { enum ProceduralMasqueradeDummyType {

View File

@ -1,5 +1,3 @@
// ignore-test: This now ICEs again.
// build-pass // build-pass
#![feature(type_alias_impl_trait)] #![feature(type_alias_impl_trait)]