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

Regression test for rust-lang/rust#53675. #54225

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

pnkfelix
Copy link
Member

(Includes a couple variations on the theme. I confirmed that the ones
in in_expression_position and what_if_we_use_panic_directly_in_expr
both failed back on "rustc 1.30.0-nightly (0f063ae 2018-09-03)".)

Fix #53675

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

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

The job x86_64-gnu-llvm-5.0 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:45:22] ....................................................................................................
[00:45:25] ....................................................................................................
[00:45:28] ....................................................................................................
[00:45:31] ....................................................................................................
[00:45:34] ...........................F........................................................................
[00:45:40] ................................................................................i...................
[00:45:43] ....................................................................................................
[00:45:46] .................................i.i..ii............................................................
[00:45:50] ....................................................................................................
---
[00:50:32] ....................................................................................................
[00:50:36] ................................................................i...................................
[00:50:38] ....................................................................................................
[00:50:42] ....................................................................................................
heckout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-53675-a-test-called-panic/auxiliary" "-A" "unused"
[00:50:46] ------------------------------------------
[00:50:46] 
[00:50:46] ------------------------------------------
[00:50:46] stderr:
---
[00:50:46] 
[00:50:46] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:496:22
[00:50:46] 
[00:50:46] 
[00:50:46] 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/x86_64-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-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/86_64-unknown-linux-gnu/release/deps
35108 ./obj/build/x86_64-unknown-linux-gnu/doc/core/arch
35016 ./.git/modules/src/libcompiler_builtins/modules/compiler-rt
34916 ./obj/build/x86_64-unknown-linux-gnu/native/jemalloc/src
34588 ./obj/build/x86_64-unknown-linux-gnu/native/jemalloc/lib

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)

// rust-lang/rust#53675: At one point the compiler errored when a test
// named `panic` used the `assert!` macro in expression position.

// compile-flags: --test
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing compile-pass.

Copy link
Member Author

Choose a reason for hiding this comment

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

Face palm. Will fix.

Copy link
Member Author

Choose a reason for hiding this comment

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

(Well, I did make it work as a run-pass test I think. But I don’t mind it being compile-pass.)

@petrochenkov
Copy link
Contributor

r=me rollup with compile-pass added

(Includes a couple variations on the theme. I confirmed that the ones
in `in_expression_position` and `what_if_we_use_panic_directly_in_expr`
both failed back on "rustc 1.30.0-nightly (0f063ae 2018-09-03)".)
@pnkfelix pnkfelix force-pushed the issue-53675-add-test-called-panic branch from bbf290c to fc6e1ed Compare September 15, 2018 04:34
@pnkfelix
Copy link
Member Author

@bors r=petrochenkov rollup

@bors
Copy link
Contributor

bors commented Sep 17, 2018

📌 Commit fc6e1ed has been approved by petrochenkov

@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 Sep 17, 2018
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Sep 18, 2018
…d-panic, r=petrochenkov

Regression test for rust-lang#53675.

(Includes a couple variations on the theme. I confirmed that the ones
in `in_expression_position` and `what_if_we_use_panic_directly_in_expr`
both failed back on "rustc 1.30.0-nightly (0f063ae 2018-09-03)".)

Fix rust-lang#53675
bors added a commit that referenced this pull request Sep 18, 2018
Rollup of 9 pull requests

Successful merges:

 - #53522 (Add doc for impl From for Addr)
 - #54097 (rustdoc: Remove namespace for keywords)
 - #54205 (Add treat-err-as-bug flag in rustdoc)
 - #54225 (Regression test for #53675.)
 - #54232 (add `-Z dont-buffer-diagnostics`)
 - #54273 (Suggest to change numeric literal instead of casting)
 - #54299 (Issue 54246)
 - #54311 (Remove README with now-out-of-date docs about docs.)
 - #54313 (OsStr: Document that it's not NUL terminated)

Failed merges:

r? @ghost
@bors bors merged commit fc6e1ed into rust-lang:master Sep 18, 2018
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.

5 participants