Skip to content

Add tests for issues #54966 and #52240 #55017

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

Merged
merged 3 commits into from
Oct 14, 2018
Merged

Conversation

memoryruins
Copy link
Contributor

Closes #54966
Closes #52240

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(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 Oct 12, 2018
@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Collaborator

bors commented Oct 12, 2018

📌 Commit b041a79 has been approved by alexcrichton

@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 Oct 12, 2018
@rust-highfive
Copy link
Contributor

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:53:33] .................................................................................................... 2200/4594
[00:53:37] ..............i..................................................................................... 2300/4594
[00:53:41] .................................................................................................... 2400/4594
[00:53:44] .................................................................................................... 2500/4594
[00:53:48] ...........................iiiiiiiii................................................................ 2600/4594
[00:53:51] ........................................................F.........ii................................ 2700/4594
[00:53:58] .................................................................................................... 2900/4594
[00:54:01] .................................................i.................................................. 3000/4594
[00:54:04] .................................................................................................... 3100/4594
[00:54:07] .........i.i..ii.................................................................................... 3200/4594
---
[00:54:52] 
[00:54:52] ---- [ui (nll)] ui/issues/issue-52240.rs stdout ----
[00:54:52] diff of stderr:
[00:54:52] 
[00:54:52] - error[E0596]: cannot borrow field of immutable binding as mutable
[00:54:52] + error[E0596]: cannot borrow data in a `&` reference as mutable
[00:54:52] 3    |
[00:54:52] 3    |
[00:54:52] 4 LL |     if let (Some(Foo::Bar(ref mut val)), _) = (&arr.get(0), 0) {
[00:54:52] -    |                           ^^^^^^^^^s/compiletest/src/runtest.rs:3277:9
[00:54:52] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[00:54:52] 
[00:54:52] 
---
[00:54:52] 
[00:54:52] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:501:22
[00:54:52] 
[00:54:52] 
[00:54:52] 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/llvm-5.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "5.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always" "--compare-mode" "nll"
[00:54:52] 
[00:54:52] 
[00:54:52] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:54:52] Build completed unsuccessfully in 0:06:08
[00:54:52] Build completed unsuccessfully in 0:06:08
[00:54:52] make: *** [check] Error 1
[00:54:52] Makefile:58: recipe for target 'check' failed
2562528 ./obj
2562492 ./obj/build
1929952 ./obj/build/x86_64-unknown-linux-gnu
1069844 ./src

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)

@memoryruins
Copy link
Contributor Author

memoryruins commented Oct 12, 2018

Woops, pushing the nll stderr for 52240 now. Unsure if any other flag is needed due to ast and nll outputs being different. If travis fails again, I'll ask in the nll chat, but everything passes locally.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Collaborator

bors commented Oct 12, 2018

📌 Commit ba446d7 has been approved by alexcrichton

@bors
Copy link
Collaborator

bors commented Oct 13, 2018

⌛ Testing commit ba446d7 with merge 9788a7b...

bors added a commit that referenced this pull request Oct 13, 2018
@bors
Copy link
Collaborator

bors commented Oct 14, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 9788a7b to master...

@bors bors merged commit ba446d7 into rust-lang:master Oct 14, 2018
@memoryruins memoryruins deleted the add-tests branch October 14, 2018 02:08
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.

4 participants