Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some compile-fail tests to ui #52409

Merged
merged 3 commits into from
Jul 17, 2018
Merged

Conversation

estebank
Copy link
Contributor

Re: #44844.

@@ -1,31 +0,0 @@
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The deleted files (such as this one) are moves with changes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why were they changed?

and why in a single commit? 😢

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add the error note check, as they were relying only on regex matching the output. I couldn't tell in advance whether a given test would need to be changed before running them as ui. I can rewrite the commit history to do so later.

@estebank
Copy link
Contributor Author

r? @oli-obk

@rust-highfive

This comment has been minimized.

Copy link
Contributor

@oli-obk oli-obk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with travis passing, no need to block on these comments. Just address them in a follow up. This PR will bitrot too fast otherwise

// We only want to assert that this doesn't ICE, we don't particularly care
// about whether it nor it fails to compile.

// error-pattern:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed anymore

// option. This file may not be copied, modified, or distributed
// except according to those terms.

// This file must never have a trailing newline
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that comment is weird. no explanation and the file does have a trailing newline, altough not a full extra empty line at the end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be fair, the name of the file does lead us to #11493, which explicitly said that to reproduce the bug in question, we needed to have a file with no trailing newline...

| `+` can't be used to concatenate two `&str` strings
help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
|
LL | a.to_owned() += { "b" };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open an issue about this wrong suggestion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error: compilation successful
--> $DIR/issue-11740.rs:35:1
|
LL | / fn main() { //~ ERROR compilation successful
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be a // compile-pass test

--> $DIR/issue-12997-2.rs:16:1
|
LL | fn bar(x: isize) { }
| ^^^^^^^^^^^^^^^^^^^^ expected isize, found mutable reference
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This span is weird and the message is inverted. Should probably also open an issue about it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error: compilation successful
--> $DIR/issue-40510-4.rs:25:1
|
LL | fn main() {} //~ ERROR compilation successful
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// compile-pass

error: compilation successful
--> $DIR/issue-41998.rs:14:1
|
LL | / fn main() { //~ ERROR compilation successful
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// compile-pass

// option. This file may not be copied, modified, or distributed
// except according to those terms.

//~^^^^^^^^^^ ERROR cycle detected when computing layout of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a better span

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error: unnecessary `unsafe` block
--> $DIR/issue-48131.rs:18:9
|
LL | unsafe { /* unnecessary */ } //~ ERROR unnecessary `unsafe`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could have a structured suggestion

| |
| cannot use `+=` on type `T`
|
= note: `T` might need a bound for `std::ops::AddAssign`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another suggestion would be to manually expand to x = x + y if a bound for Add is there

@estebank
Copy link
Contributor Author

Thank you for the thorough checking of the output! That's part of why I wanted to move to ui, these PRs are a good chance to review our existing output for places to improve upon :)

@estebank
Copy link
Contributor Author

@bors r=oli-obk p=10
High prio as this will probably bit-rot quickly otherwise.

@bors
Copy link
Contributor

bors commented Jul 16, 2018

📌 Commit 2332759 has been approved by oli-obk

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 16, 2018
@bors
Copy link
Contributor

bors commented Jul 16, 2018

⌛ Testing commit 2332759 with merge c2735d26cc9ae5b42d11af7d8f080fec8aa84bfb...

@bors
Copy link
Contributor

bors commented Jul 16, 2018

💔 Test failed - status-travis

@bors bors removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 16, 2018
@rust-highfive
Copy link
Collaborator

The job dist-i586-gnu-i586-i686-musl of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-15919.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] - error: the type `[usize; 18446744073709551615]` is too big for the current architecture
[00:46:07] + error: the type `[usize; 4294967295]` is too big for the current architecture
[00:46:07] 3 error: aborting due to previous error
[00:46:07] 4 
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-15919/issue-15919.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-15919.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-15919.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-15919/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-15919/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"the type `[usize; 4294967295]` is too big for the current architecture","code":null,"level":"error","spans":[],"children":[],"rendered":"error: the type `[usize; 4294967295]` is too big for the current architecture\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-15919.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:46:07] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-17913.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] - error: the type `[&usize; 17293822569102704640]` is too big for the current architecture
[00:46:07] + error: the type `[&usize; 4294967295]` is too big for the current architecture
[00:46:07] 3 error: aborting due to previous error
[00:46:07] 4 
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-17913/issue-17913.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-17913.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-17913.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-17913/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-17913/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"the type `[&usize; 4294967295]` is too big for the current architecture","code":null,"level":"error","spans":[],"children":[],"rendered":"error: the type `[&usize; 4294967295]` is too big for the current architecture\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-17913.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] 
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-28625.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] 4 LL |     unsafe { std::mem::transmute(a) } //~ ERROR transmute called with types of different sizes
[00:46:07] 6    |
[00:46:07] 6    |
[00:46:07] -    = note: source type: &ArrayPeano<T> (64 bits)
[00:46:07] -    = note: target type: &[T] (128 bits)
[00:46:07] +    = note: source type: &ArrayPeano<T> (32 bits)
[00:46:07] +    = note: target type: &[T] (64 bits)
[00:46:07] 10 error: aborting due to previous error
[00:46:07] 11 
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-28625/issue-28625.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-28625.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-28625.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-28625/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-28625/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"transmute called with types of different sizes","code":{"code":"E0512","explanation":"\nTransmute with two differently sized types was attempted. Erroneous code\nexample:\n\n```compile_fail,E0512\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0u16)); }\n    // error: transmute called with types of different sizes\n}\n```\n\nPlease use types with same size or use the expected type directly. Example:\n\n```\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0i8)); } // ok!\n    // or:\n    unsafe { takes_u8(0u8); } // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issue-28625.rs","byte_start":610,"byte_end":629,"line_start":20,"line_end":20,"column_start":14,"column_end":33,"is_primary":true,"text":[{"text":"    unsafe { std::mem::transmute(a) } //~ ERROR transmute called with types of different sizes","highlight_start":14,"highlight_end":33}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"source type: &ArrayPeano<T> (32 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"target type: &[T] (64 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0512]: transmute called with types of different sizes\n  --> /checkout/src/test/ui/issue-28625.rs:20:14\n   |\nLL |     unsafe { std::mem::transmute(a) } //~ ERROR transmute called with types of different sizes\n   |              ^^^^^^^^^^^^^^^^^^^\n   |\n   = note: source type: &ArrayPeano<T> (32 bits)\n   = note: target type: &[T] (64 bits)\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] {"message":"For more information about this error, try `rustc --explain E0512`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0512`.\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-28625.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] 
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-32377.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] 4 LL |     unsafe { mem::transmute(x) }
[00:46:07] 6    |
[00:46:07] 6    |
[00:46:07] -    = note: source type: [usize; 2] (128 bits)
[00:46:07] +    = note: source type: [usize; 2] (64 bits)
[00:46:07] 8    = note: target type: Bar<U> (0 bits)
[00:46:07] 10 error: aborting due to previous error
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-32377/issue-32377.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-32377.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-32377.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-32377/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-32377/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"transmute called with types of different sizes","code":{"code":"E0512","explanation":"\nTransmute with two differently sized types was attempted. Erroneous code\nexample:\n\n```compile_fail,E0512\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0u16)); }\n    // error: transmute called with types of different sizes\n}\n```\n\nPlease use types with same size or use the expected type directly. Example:\n\n```\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0i8)); } // ok!\n    // or:\n    unsafe { takes_u8(0u8); } // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issue-32377.rs","byte_start":657,"byte_end":671,"line_start":23,"line_end":23,"column_start":14,"column_end":28,"is_primary":true,"text":[{"text":"    unsafe { mem::transmute(x) }","highlight_start":14,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"source type: [usize; 2] (64 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"target type: Bar<U> (0 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0512]: transmute called with types of different sizes\n  --> /checkout/src/test/ui/issue-32377.rs:23:14\n   |\nLL |     unsafe { mem::transmute(x) }\n   |              ^^^^^^^^^^^^^^\n   |\n   = note: source type: [usize; 2] (64 bits)\n   = note: target type: Bar<U> (0 bits)\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] {"message":"For more information about this error, try `rustc --explain E0512`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0512`.\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-32377.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] 
---
[00:46:07] test result: FAILED. 2118 passed; 4 failed; 5 ignored; 0 measured; 0 filtered out
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i586-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-i586-unknown-linux-gnu" "--mode" "ui" "--target" "i586-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--linker" "cc" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--llvm-version" "7.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:46:07] 
[00:46:07] 
[00:46:07] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --target i586-unknown-linux-gnu,i686-unknown-linux-musl
[00:46:07] Build completed unsuccessfully in 0:43:13
---
travis_time:end:0f08514d:start=1531715930711386658,finish=1531715930718688019,duration=7301361
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:26eb0b00
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:226fd67f
travis_time:start:226fd67f
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:017b79aa
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@bors bors added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 16, 2018
@rust-highfive
Copy link
Collaborator

The job dist-i586-gnu-i586-i686-musl of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-15919.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] - error: the type `[usize; 18446744073709551615]` is too big for the current architecture
[00:46:07] + error: the type `[usize; 4294967295]` is too big for the current architecture
[00:46:07] 3 error: aborting due to previous error
[00:46:07] 4 
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-15919/issue-15919.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-15919.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-15919.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-15919/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-15919/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"the type `[usize; 4294967295]` is too big for the current architecture","code":null,"level":"error","spans":[],"children":[],"rendered":"error: the type `[usize; 4294967295]` is too big for the current architecture\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-15919.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:46:07] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-17913.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] - error: the type `[&usize; 17293822569102704640]` is too big for the current architecture
[00:46:07] + error: the type `[&usize; 4294967295]` is too big for the current architecture
[00:46:07] 3 error: aborting due to previous error
[00:46:07] 4 
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-17913/issue-17913.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-17913.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-17913.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-17913/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-17913/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"the type `[&usize; 4294967295]` is too big for the current architecture","code":null,"level":"error","spans":[],"children":[],"rendered":"error: the type `[&usize; 4294967295]` is too big for the current architecture\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-17913.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] 
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-28625.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] 4 LL |     unsafe { std::mem::transmute(a) } //~ ERROR transmute called with types of different sizes
[00:46:07] 6    |
[00:46:07] 6    |
[00:46:07] -    = note: source type: &ArrayPeano<T> (64 bits)
[00:46:07] -    = note: target type: &[T] (128 bits)
[00:46:07] +    = note: source type: &ArrayPeano<T> (32 bits)
[00:46:07] +    = note: target type: &[T] (64 bits)
[00:46:07] 10 error: aborting due to previous error
[00:46:07] 11 
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-28625/issue-28625.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-28625.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-28625.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-28625/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-28625/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"transmute called with types of different sizes","code":{"code":"E0512","explanation":"\nTransmute with two differently sized types was attempted. Erroneous code\nexample:\n\n```compile_fail,E0512\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0u16)); }\n    // error: transmute called with types of different sizes\n}\n```\n\nPlease use types with same size or use the expected type directly. Example:\n\n```\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0i8)); } // ok!\n    // or:\n    unsafe { takes_u8(0u8); } // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issue-28625.rs","byte_start":610,"byte_end":629,"line_start":20,"line_end":20,"column_start":14,"column_end":33,"is_primary":true,"text":[{"text":"    unsafe { std::mem::transmute(a) } //~ ERROR transmute called with types of different sizes","highlight_start":14,"highlight_end":33}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"source type: &ArrayPeano<T> (32 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"target type: &[T] (64 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0512]: transmute called with types of different sizes\n  --> /checkout/src/test/ui/issue-28625.rs:20:14\n   |\nLL |     unsafe { std::mem::transmute(a) } //~ ERROR transmute called with types of different sizes\n   |              ^^^^^^^^^^^^^^^^^^^\n   |\n   = note: source type: &ArrayPeano<T> (32 bits)\n   = note: target type: &[T] (64 bits)\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] {"message":"For more information about this error, try `rustc --explain E0512`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0512`.\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-28625.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] 
[00:46:07] 
[00:46:07] ---- [ui] ui/issue-32377.rs stdout ----
[00:46:07] diff of stderr:
[00:46:07] 
[00:46:07] 4 LL |     unsafe { mem::transmute(x) }
[00:46:07] 6    |
[00:46:07] 6    |
[00:46:07] -    = note: source type: [usize; 2] (128 bits)
[00:46:07] +    = note: source type: [usize; 2] (64 bits)
[00:46:07] 8    = note: target type: Bar<U> (0 bits)
[00:46:07] 10 error: aborting due to previous error
[00:46:07] 
[00:46:07] 
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] The actual stderr differed from the expected stderr.
[00:46:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-32377/issue-32377.stderr
[00:46:07] To update references, rerun the tests and pass the `--bless` flag
[00:46:07] To only update this specific test, also pass `--test-args issue-32377.rs`
[00:46:07] error: 1 errors occurred comparing output.
[00:46:07] status: exit code: 101
[00:46:07] status: exit code: 101
[00:46:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issue-32377.rs" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-32377/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issue-32377/auxiliary" "-A" "unused"
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] ------------------------------------------
[00:46:07] stderr:
[00:46:07] stderr:
[00:46:07] ------------------------------------------
[00:46:07] {"message":"transmute called with types of different sizes","code":{"code":"E0512","explanation":"\nTransmute with two differently sized types was attempted. Erroneous code\nexample:\n\n```compile_fail,E0512\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0u16)); }\n    // error: transmute called with types of different sizes\n}\n```\n\nPlease use types with same size or use the expected type directly. Example:\n\n```\nfn takes_u8(_: u8) {}\n\nfn main() {\n    unsafe { takes_u8(::std::mem::transmute(0i8)); } // ok!\n    // or:\n    unsafe { takes_u8(0u8); } // ok!\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issue-32377.rs","byte_start":657,"byte_end":671,"line_start":23,"line_end":23,"column_start":14,"column_end":28,"is_primary":true,"text":[{"text":"    unsafe { mem::transmute(x) }","highlight_start":14,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"source type: [usize; 2] (64 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"target type: Bar<U> (0 bits)","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0512]: transmute called with types of different sizes\n  --> /checkout/src/test/ui/issue-32377.rs:23:14\n   |\nLL |     unsafe { mem::transmute(x) }\n   |              ^^^^^^^^^^^^^^\n   |\n   = note: source type: [usize; 2] (64 bits)\n   = note: target type: Bar<U> (0 bits)\n\n"}
[00:46:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:46:07] {"message":"For more information about this error, try `rustc --explain E0512`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0512`.\n"}
[00:46:07] ------------------------------------------
[00:46:07] 
[00:46:07] thread '[ui] ui/issue-32377.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3162:9
[00:46:07] 
---
[00:46:07] test result: FAILED. 2118 passed; 4 failed; 5 ignored; 0 measured; 0 filtered out
[00:46:07] 
[00:46:07] 
[00:46:07] 
[00:46:07] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i586-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-i586-unknown-linux-gnu" "--mode" "ui" "--target" "i586-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--linker" "cc" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--llvm-version" "7.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:46:07] 
[00:46:07] 
[00:46:07] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --target i586-unknown-linux-gnu,i686-unknown-linux-musl
[00:46:07] Build completed unsuccessfully in 0:43:13
---
travis_time:end:0f08514d:start=1531715930711386658,finish=1531715930718688019,duration=7301361
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:26eb0b00
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:226fd67f
travis_time:start:226fd67f
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:017b79aa
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@estebank
Copy link
Contributor Author

@bors r+ p=10

@bors
Copy link
Contributor

bors commented Jul 16, 2018

📌 Commit f760960 has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 16, 2018
@estebank
Copy link
Contributor Author

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 16, 2018
@estebank
Copy link
Contributor Author

@bors r=oli-obk p=10

@bors
Copy link
Contributor

bors commented Jul 16, 2018

📌 Commit f760960 has been approved by oli-obk

@bors bors removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jul 16, 2018
@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 16, 2018
@kennytm
Copy link
Member

kennytm commented Jul 16, 2018

---- [ui] ui\issue-10755.rs stdout ----
diff of stderr:
1	error: linker `llllll` not found
2	   |
-	   = note: No such file or directory (os error 2)
+	   = note: The system cannot find the file specified. (os error 2)
4	
5	error: aborting due to previous error
6	

--- [ui] ui\issue-23595-1.rs stdout ----
diff of stderr:
-	error[E0191]: the value of the associated type `ChildKey` (from the trait `Hierarchy`) must be specified
+	error[E0191]: the value of the associated type `Value` (from the trait `Hierarchy`) must be specified
2	  --> $DIR/issue-23595-1.rs:18:50
3	   |
4	LL |     type Children = Index<Self::ChildKey, Output=Hierarchy>;
-	   |                                                  ^^^^^^^^^ missing associated type `ChildKey` value
+	   |                                                  ^^^^^^^^^ missing associated type `Value` value
6	
7	error[E0191]: the value of the associated type `Children` (from the trait `Hierarchy`) must be specified
8	  --> $DIR/issue-23595-1.rs:18:50
10	LL |     type Children = Index<Self::ChildKey, Output=Hierarchy>;
11	   |                                                  ^^^^^^^^^ missing associated type `Children` value
12	
-	error[E0191]: the value of the associated type `Value` (from the trait `Hierarchy`) must be specified
+	error[E0191]: the value of the associated type `ChildKey` (from the trait `Hierarchy`) must be specified
14	  --> $DIR/issue-23595-1.rs:18:50
15	   |
16	LL |     type Children = Index<Self::ChildKey, Output=Hierarchy>;
-	   |                                                  ^^^^^^^^^ missing associated type `Value` value
+	   |                                                  ^^^^^^^^^ missing associated type `ChildKey` value
18	
19	error: aborting due to 3 previous errors
20	

---- [ui] ui\issue-43733-2.rs stdout ----
diff of stderr:
4	LL | static __KEY: Key<()> = Key::new();
5	   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::cell::UnsafeCell<std::option::Option<()>>` cannot be shared between threads safely
6	   |
-	   = help: within `std::thread::Key<()>`, the trait `std::marker::Sync` is not implemented for `std::cell::UnsafeCell<std::option::Option<()>>`
-	   = note: required because it appears within the type `std::thread::Key<()>`
+	   = help: within `Key<()>`, the trait `std::marker::Sync` is not implemented for `std::cell::UnsafeCell<std::option::Option<()>>`
+	   = note: required because it appears within the type `Key<()>`
9	   = note: shared static variables must have a type that implements `Sync`
10	
11	error[E0277]: `std::cell::Cell<bool>` cannot be shared between threads safely
14	LL | static __KEY: Key<()> = Key::new();
15	   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::cell::Cell<bool>` cannot be shared between threads safely
16	   |
-	   = help: within `std::thread::Key<()>`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<bool>`
-	   = note: required because it appears within the type `std::thread::Key<()>`
+	   = help: within `Key<()>`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<bool>`
+	   = note: required because it appears within the type `Key<()>`
19	   = note: shared static variables must have a type that implements `Sync`
20	
21	error: aborting due to 2 previous errors

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 16, 2018
@estebank
Copy link
Contributor Author

@bors r=oli-obk p=10

@bors
Copy link
Contributor

bors commented Jul 16, 2018

📌 Commit e0b54b5411a286f16ad89a10684dc42daa1750ec has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 16, 2018
@bors
Copy link
Contributor

bors commented Jul 16, 2018

⌛ Testing commit e0b54b5411a286f16ad89a10684dc42daa1750ec with merge 89c20aef0cb1552111fe1b549b193b905240ab13...

@bors
Copy link
Contributor

bors commented Jul 17, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 17, 2018
@rust-highfive
Copy link
Collaborator

The job x86_64-apple of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:02:43]       Memory: 8 GB
[00:02:43]       Boot ROM Version: VMW71.00V.0.B64.1704110547
[00:02:43]       Apple ROM Info: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]Welcome to the Virtual Machine
[00:02:43]       SMC Version (system): 2.8f0
[00:02:43]       Serial Number (system): VMgjzHPLe8oW
[00:02:43] 
[00:02:43] hw.ncpu: 4
[00:02:43] hw.byteorder: 1234
[00:02:43] hw.memsize: 8589934592
---
[00:54:55] 
[00:54:55] ---- [ui] ui/issue-26548.rs stdout ----
[00:54:55] diff of stderr:
[00:54:55] 
[00:54:55] - error[E0391]: cycle detected when computing layout of `std::option::Option<S>`
[00:54:55] + error[E0391]: cycle detected when computing layout of `S`
[00:54:55] 2    |
[00:54:55] - note: ...which requires computing layout of `S`...
[00:54:55] -    = note: ...which again requires computing layout of `std::option::Option<S>`, completing the cycle
[00:54:55] + note: ...which requires computing layout of `std::option::Option<S>`...
[00:54:55] +    = note: ...which again requires computing layout of `S`, completing the cycle
[00:54:55] 5 note: cycle used when compile_codegen_unit
[00:54:55] 7 error: aborting due to previous error
[00:54:55] 
[00:54:55] 
[00:54:55] The actual stderr differed from the expected stderr.
[00:54:55] The actual stderr differed from the expected stderr.
[00:54:55] Actual stderr saved to /Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui/issue-26548/issue-26548.stderr
[00:54:55] To update references, rerun the tests and pass the `--bless` flag
[00:54:55] To only update this specific test, also pass `--test-args issue-26548.rs`
[00:54:55] error: 1 errors occurred comparing output.
[00:54:55] status: exit code: 101
[00:54:55] status: exit code: 101
[00:54:55] command: "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/bin/rustc" "/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs" "--target=x86_64-apple-darwin" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui/issue-26548/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/native/rust-test-helpers" "-L" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui/issue-26548/auxiliary" "-A" "unused"
[00:54:55] ------------------------------------------
[00:54:55] 
[00:54:55] ------------------------------------------
[00:54:55] stderr:
[00:54:55] stderr:
[00:54:55] ------------------------------------------
[00:54:55] {"message":"cycle detected when computing layout of `S`","code":{"code":"E0391","explanation":"\nThis error indicates that some types or traits depend on each other\nand therefore cannot be constructed.\n\nThe following example contains a circular dependency between two traits:\n\n```compile_fail,E0391\ntrait FirstTrait : SecondTrait {\n\n}\n\ntrait SecondTrait : FirstTrait {\n\n}\n```\n"},"level":"error","spans":[{"file_name":"/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Copyright 2015 The Rust Project Developers. See the COPYRIGHT","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"...which requires computing layout of `std::option::Option<S>`...","code":null,"level":"note","spans":[{"file_name":"/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Copyright 2015 The Rust Project Developers. See the COPYRIGHT","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"...which again requires computing layout of `S`, completing the cycle","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"cycle used when compile_codegen_unit","code":null,"level":"note","spans":[{"file_name":"/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Copyright 2015 The Rust Project Developers. See the COPYRIGHT","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0391]: cycle detected when computing layout of `S`\n   |\nnote: ...which requires computing layout of `std::option::Option<S>`...\n   = note: ...which again requires computing layout of `S`, completing the cycle\nnote: cycle used when compile_codegen_unit\n\n"}
[00:54:55] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:54:55] {"message":"For more information about this error, try `rustc --explain E0391`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0391`.\n"}
[00:54:55] ------------------------------------------
[00:54:55] 
[00:54:55] thread '[ui] ui/issue-26548.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3139:9
[00:54:55] note: Run with `RUST_BACKTRACE=1` for a backtrace.
---
[00:54:55] 
[00:54:55] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:498:22
[00:54:55] 
[00:54:55] 
[00:54:55] command did not execute successfully: "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage0-tools-bin/compiletest" "--compile-lib-path" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/lib" "--run-lib-path" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib" "--rustc-path" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/bin/rustc" "--src-base" "/Users/travis/build/rust-lang/rust/src/test/ui" "--build-base" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui" "--stage-id" "stage2-x86_64-apple-darwin" "--mode" "ui" "--target" "x86_64-apple-darwin" "--host" "x86_64-apple-darwin" "--llvm-filecheck" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/llvm/build/bin/FileCheck" "--nodejs" "/Users/travis/.nvm/versions/node/v6.12.3/bin/node" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/native/rust-test-helpers" "--docck-python" "/usr/local/opt/python/bin/python2.7" "--lldb-python" "/usr/bin/python" "--lldb-version" "lldb-902.0.73.1" "--lldb-python-dir" "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" "--llvm-version" "7.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:54:55] 
[00:54:55] 
[00:54:55] failed to run: /Users/travis/build/rust-lang/rust/build/bootstrap/debug/bootstrap test
[00:54:55] Build completed unsuccessfully in 0:02:25
[00:54:55] Build completed unsuccessfully in 0:02:25
[00:54:55] make: *** [check] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:05d2ba70
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_fold:start:after_failure.2
travis_time:start:04d24742
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
total 0
drwx------+ 15 travis  staff  510 Jan 25 19:20 ..
drwx------   2 travis  staff   68 Dec  6  2017 .
travis_fold:end:after_failure.2
travis_fold:start:after_failure.3
travis_time:start:0ea15820
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
travis_time:end:0ea15820:start=1531786123877812000,finish=1531786123905803000,duration=27991000
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:03ec2f4a
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:03720a48
travis_time:start:03720a48
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:1dd7d7bc
$ dmesg | grep -i kill
$ dmesg | grep -i kill
Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg
travis_fold:end:after_failure.6

Done. Your build exited with 1.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

1 similar comment
@rust-highfive
Copy link
Collaborator

The job x86_64-apple of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:02:43]       Memory: 8 GB
[00:02:43]       Boot ROM Version: VMW71.00V.0.B64.1704110547
[00:02:43]       Apple ROM Info: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]Welcome to the Virtual Machine
[00:02:43]       SMC Version (system): 2.8f0
[00:02:43]       Serial Number (system): VMgjzHPLe8oW
[00:02:43] 
[00:02:43] hw.ncpu: 4
[00:02:43] hw.byteorder: 1234
[00:02:43] hw.memsize: 8589934592
---
[00:54:55] 
[00:54:55] ---- [ui] ui/issue-26548.rs stdout ----
[00:54:55] diff of stderr:
[00:54:55] 
[00:54:55] - error[E0391]: cycle detected when computing layout of `std::option::Option<S>`
[00:54:55] + error[E0391]: cycle detected when computing layout of `S`
[00:54:55] 2    |
[00:54:55] - note: ...which requires computing layout of `S`...
[00:54:55] -    = note: ...which again requires computing layout of `std::option::Option<S>`, completing the cycle
[00:54:55] + note: ...which requires computing layout of `std::option::Option<S>`...
[00:54:55] +    = note: ...which again requires computing layout of `S`, completing the cycle
[00:54:55] 5 note: cycle used when compile_codegen_unit
[00:54:55] 7 error: aborting due to previous error
[00:54:55] 
[00:54:55] 
[00:54:55] The actual stderr differed from the expected stderr.
[00:54:55] The actual stderr differed from the expected stderr.
[00:54:55] Actual stderr saved to /Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui/issue-26548/issue-26548.stderr
[00:54:55] To update references, rerun the tests and pass the `--bless` flag
[00:54:55] To only update this specific test, also pass `--test-args issue-26548.rs`
[00:54:55] error: 1 errors occurred comparing output.
[00:54:55] status: exit code: 101
[00:54:55] status: exit code: 101
[00:54:55] command: "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/bin/rustc" "/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs" "--target=x86_64-apple-darwin" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui/issue-26548/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/native/rust-test-helpers" "-L" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui/issue-26548/auxiliary" "-A" "unused"
[00:54:55] ------------------------------------------
[00:54:55] 
[00:54:55] ------------------------------------------
[00:54:55] stderr:
[00:54:55] stderr:
[00:54:55] ------------------------------------------
[00:54:55] {"message":"cycle detected when computing layout of `S`","code":{"code":"E0391","explanation":"\nThis error indicates that some types or traits depend on each other\nand therefore cannot be constructed.\n\nThe following example contains a circular dependency between two traits:\n\n```compile_fail,E0391\ntrait FirstTrait : SecondTrait {\n\n}\n\ntrait SecondTrait : FirstTrait {\n\n}\n```\n"},"level":"error","spans":[{"file_name":"/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Copyright 2015 The Rust Project Developers. See the COPYRIGHT","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"...which requires computing layout of `std::option::Option<S>`...","code":null,"level":"note","spans":[{"file_name":"/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Copyright 2015 The Rust Project Developers. See the COPYRIGHT","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"...which again requires computing layout of `S`, completing the cycle","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"cycle used when compile_codegen_unit","code":null,"level":"note","spans":[{"file_name":"/Users/travis/build/rust-lang/rust/src/test/ui/issue-26548.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"// Copyright 2015 The Rust Project Developers. See the COPYRIGHT","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0391]: cycle detected when computing layout of `S`\n   |\nnote: ...which requires computing layout of `std::option::Option<S>`...\n   = note: ...which again requires computing layout of `S`, completing the cycle\nnote: cycle used when compile_codegen_unit\n\n"}
[00:54:55] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:54:55] {"message":"For more information about this error, try `rustc --explain E0391`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0391`.\n"}
[00:54:55] ------------------------------------------
[00:54:55] 
[00:54:55] thread '[ui] ui/issue-26548.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:3139:9
[00:54:55] note: Run with `RUST_BACKTRACE=1` for a backtrace.
---
[00:54:55] 
[00:54:55] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:498:22
[00:54:55] 
[00:54:55] 
[00:54:55] command did not execute successfully: "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage0-tools-bin/compiletest" "--compile-lib-path" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/lib" "--run-lib-path" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/lib" "--rustc-path" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/stage2/bin/rustc" "--src-base" "/Users/travis/build/rust-lang/rust/src/test/ui" "--build-base" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/test/ui" "--stage-id" "stage2-x86_64-apple-darwin" "--mode" "ui" "--target" "x86_64-apple-darwin" "--host" "x86_64-apple-darwin" "--llvm-filecheck" "/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/llvm/build/bin/FileCheck" "--nodejs" "/Users/travis/.nvm/versions/node/v6.12.3/bin/node" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/Users/travis/build/rust-lang/rust/build/x86_64-apple-darwin/native/rust-test-helpers" "--docck-python" "/usr/local/opt/python/bin/python2.7" "--lldb-python" "/usr/bin/python" "--lldb-version" "lldb-902.0.73.1" "--lldb-python-dir" "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" "--llvm-version" "7.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:54:55] 
[00:54:55] 
[00:54:55] failed to run: /Users/travis/build/rust-lang/rust/build/bootstrap/debug/bootstrap test
[00:54:55] Build completed unsuccessfully in 0:02:25
[00:54:55] Build completed unsuccessfully in 0:02:25
[00:54:55] make: *** [check] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:05d2ba70
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_fold:start:after_failure.2
travis_time:start:04d24742
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
total 0
drwx------+ 15 travis  staff  510 Jan 25 19:20 ..
drwx------   2 travis  staff   68 Dec  6  2017 .
travis_fold:end:after_failure.2
travis_fold:start:after_failure.3
travis_time:start:0ea15820
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
travis_time:end:0ea15820:start=1531786123877812000,finish=1531786123905803000,duration=27991000
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:03ec2f4a
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:03720a48
travis_time:start:03720a48
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:1dd7d7bc
$ dmesg | grep -i kill
$ dmesg | grep -i kill
Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg
travis_fold:end:after_failure.6

Done. Your build exited with 1.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@oli-obk
Copy link
Contributor

oli-obk commented Jul 17, 2018

@bors r+ p=10

@bors
Copy link
Contributor

bors commented Jul 17, 2018

📌 Commit 82fd8d7 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 17, 2018
@bors
Copy link
Contributor

bors commented Jul 17, 2018

⌛ Testing commit 82fd8d7 with merge 9d6f4e5...

bors added a commit that referenced this pull request Jul 17, 2018
Move some `compile-fail` tests to `ui`

Re: #44844.
@bors
Copy link
Contributor

bors commented Jul 17, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: oli-obk
Pushing 9d6f4e5 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants