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

On TerminatorKind::DropAndReplace still handle unused_mut correctly #61446

Merged
merged 7 commits into from
Jun 4, 2019

Conversation

czipperz
Copy link
Contributor

@czipperz czipperz commented Jun 1, 2019

Closes #61424

  • Todo add regression test

@rust-highfive
Copy link
Collaborator

r? @eddyb

(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 Jun 1, 2019
@czipperz
Copy link
Contributor Author

czipperz commented Jun 1, 2019

r? @matthewjasper

@rust-highfive rust-highfive assigned matthewjasper and unassigned eddyb Jun 1, 2019
@czipperz
Copy link
Contributor Author

czipperz commented Jun 1, 2019

Awaiting the inevitable compiler error because I don't have the toolchain set up locally...

Co-Authored-By: Mazdak Farrokhzad <[email protected]>
@czipperz
Copy link
Contributor Author

czipperz commented Jun 2, 2019

When the rustc tutorial says ./x.py check was fast, they weren't lying!

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.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.
travis_time:end:0ded6a7c:start=1559434517722408498,finish=1559434518583188679,duration=860780181
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[00:57:10] .................................................................................................... 3300/5610
[00:57:13] ..............................i..................................................................... 3400/5610
[00:57:17] .................................................................................................... 3500/5610
[00:57:20] ....ii...i..ii...................................................................................... 3600/5610
[00:57:24] ..........................................................................F......................... 3700/5610
[00:57:31] ..........ii........................................................................................ 3900/5610
[00:57:33] ...............................i.................................................................... 4000/5610
[00:57:35] ...............................................................................................i.... 4100/5610
[00:57:37] .................................................................................................... 4200/5610
---
[00:58:42] 
[00:58:42] 
[00:58:42] The actual stderr differed from the expected stderr.
[00:58:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-61424/issue-61424.stderr
[00:58:42] To update references, rerun the tests and pass the `--bless` flag
[00:58:42] To only update this specific test, also pass `--test-args nll/issue-61424.rs`
[00:58:42] error: 1 errors occurred comparing output.
[00:58:42] status: exit code: 1
[00:58:42] status: exit code: 1
[00:58:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/nll/issue-61424.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-61424" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-61424/auxiliary" "-A" "unused"
[00:58:42] ------------------------------------------
[00:58:42] 
[00:58:42] ------------------------------------------
[00:58:42] stderr:
---
travis_time:end:001ae807:start=1559438053309705563,finish=1559438053314812103,duration=5106540
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:02089b5a
$ 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 --batch -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:2ec0357e
travis_time:start:2ec0357e
$ 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:1195b50b
$ 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)

@czipperz
Copy link
Contributor Author

czipperz commented Jun 2, 2019

@matthewjasper It seems that this didn't resolve it. What should I do?

@matthewjasper
Copy link
Contributor

You can run ./x.py test src/test/ui --stage 1 --bless to automatically generate the required stderr file.

@matthewjasper
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jun 3, 2019

📌 Commit fea2cdb has been approved by matthewjasper

@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 Jun 3, 2019
@czipperz
Copy link
Contributor Author

czipperz commented Jun 3, 2019

Well that was pretty fun! Thanks guys.

Centril added a commit to Centril/rust that referenced this pull request Jun 4, 2019
…asper

On TerminatorKind::DropAndReplace still handle unused_mut correctly

Closes rust-lang#61424

- [x] Todo add regression test
Centril added a commit to Centril/rust that referenced this pull request Jun 4, 2019
…asper

On TerminatorKind::DropAndReplace still handle unused_mut correctly

Closes rust-lang#61424

- [x] Todo add regression test
Centril added a commit to Centril/rust that referenced this pull request Jun 4, 2019
…asper

On TerminatorKind::DropAndReplace still handle unused_mut correctly

Closes rust-lang#61424

- [x] Todo add regression test
bors added a commit that referenced this pull request Jun 4, 2019
Rollup of 13 pull requests

Successful merges:

 - #61135 (Fix documentation of `Rc::make_mut` regarding `rc::Weak`.)
 - #61404 (miri unsizing: fix projecting into a field of an operand)
 - #61409 (Fix an ICE with a const argument in a trait)
 - #61413 (Re-implement async fn drop order lowering )
 - #61419 (Add an unusual-conversion example to to_uppercase)
 - #61420 (Succinctify splice docs)
 - #61444 (Suggest using `as_ref` on `*const T`)
 - #61446 (On TerminatorKind::DropAndReplace still handle unused_mut correctly)
 - #61485 (azure: retry s3 upload if it fails)
 - #61489 (ci: Reenable step timings on AppVeyor)
 - #61496 (Do not panic in tidy on unbalanced parentheses in cfg's)
 - #61497 (Treat 0 as special value for codegen-units-std)
 - #61499 (Add regression test for existential type ICE #53457)

Failed merges:

r? @ghost
@bors bors merged commit fea2cdb into rust-lang:master Jun 4, 2019
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.

"variable does not need to be mutable" not detected
7 participants