Skip to content

ui test suite fails on stage 1 #53380

Closed
Closed
@RalfJung

Description

@RalfJung
Member

With current master (81cfaad), the UI stage 1 test suite fails for me. ./x.py --stage 1 test src/test/ui --bless introduces the following diff:

--- a/src/test/ui/macros/macros-nonfatal-errors.stderr
+++ b/src/test/ui/macros/macros-nonfatal-errors.stderr
@@ -1,4 +1,4 @@
-error[E0665]: `Default` cannot be derived for enums, only structs
+error: `Default` cannot be derived for enums, only structs
   --> $DIR/macros-nonfatal-errors.rs:20:10
    |
 LL | #[derive(Default)] //~ ERROR
@@ -96,5 +96,4 @@ LL |     trace_macros!(invalid); //~ ERROR
 
 error: aborting due to 15 previous errors
 
-Some errors occurred: E0658, E0665.
-For more information about an error, try `rustc --explain E0658`.
+For more information about this error, try `rustc --explain E0658`.

Stage 1 used to work fine, so this is a regression, likely introduced by #53196 (cc @davidtwco).

Stage 2 build is still running.

Activity

varkor

varkor commented on Aug 15, 2018

@varkor
Member

Fixed by #53368.

RalfJung

RalfJung commented on Aug 15, 2018

@RalfJung
MemberAuthor

FWIW, stage 2 works. I am surprised that such a difference is possible between stages...

varkor

varkor commented on Aug 15, 2018

@varkor
Member

It's explicitly gated on stage 2 (i.e. being compiled by stage 1 or greater):

StaticEnum(..) => {
span_err_if_not_stage0!(cx, trait_span, E0665,
"`Default` cannot be derived for enums, only structs");

I'm not quite sure why the only difference is emitting the error code or not, though:
macro_rules! span_err_if_not_stage0 {
($cx:expr, $sp:expr, $code:ident, $text:tt) => {
#[cfg(not(stage0))] {
span_err!($cx, $sp, $code, $text)
}
#[cfg(stage0)] {
$cx.span_err($sp, $text)
}
}
}

davidtwco

davidtwco commented on Aug 15, 2018

@davidtwco
Member

Huh, that's interesting. I was always testing against stage 2 locally when working on #53196 and Travis didn't seem to pick that up either.

changed the title [-]ui test suite fails[/-] [+]ui test suite fails on stage 1[/+] on Aug 15, 2018
varkor

varkor commented on Aug 15, 2018

@varkor
Member
added a commit that references this issue on Aug 16, 2018

Rollup merge of rust-lang#53412 - eddyb:stage-who, r=alexcrichton

1cb13b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @RalfJung@davidtwco@varkor

        Issue actions

          ui test suite fails on stage 1 · Issue #53380 · rust-lang/rust