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

Rollup of 17 pull requests #60100

Closed
wants to merge 50 commits into from
Closed

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Apr 19, 2019

Successful merges:

Failed merges:

r? @ghost

sourcefrog and others added 30 commits April 13, 2019 15:39
Stack size of 10 **bytes** does not make any sense: the minimal possible stack size is greater anyway.
The documentation for `rchunks_exact` said it started at the beginning
of the slice, bit it actually starts at the end of the slice.

In addition, there were a couple of "of the slice of the slice"
duplicate phrases going on for `rchunks_exact` and `rchunks_exact_mut`.

This fixes rust-lang#60068.
When looking at the documentation for `std::f32` or `std::str`, for
example, it is easy to get confused and assume `std::f32` and `f32`
are the same thing. Because of this, it is not uncommon to attempt
writing `f32::consts::PI` instead of the correct
`std::f32::consts::PI`. When encountering the former, which results
in an access error due to it being an inexistent path, try to access
the same path under `std`. If this succeeds, this information is
stored for later tweaking of the final E0599 to provide an
appropriate suggestion.

This suggestion applies to both E0233 and E0599 and is only checked
when the first ident of a path corresponds to a primitive type.
…lexcrichton

Add codegen test for PGO instrumentation.

This PR adds a codegen test that makes sure that LLVM actually generates instrumentation code when we enable PGO instrumentation in `rustc`.

The second commit updates a test case to the new commandline option syntax introduced in rust-lang#59874. Without the fix the test still works, but it confusingly creates a directory called `test.profraw`, which usually is the name of the _file_ where profiling data is collected.
Simplify the returning of a Result a bit
Suggest appropriate path when calling associated item on bare types

When looking at the documentation for `std::f32` or `std::str`, for
example, it is easy to get confused and assume `std::f32` and `f32`
are the same thing. Because of this, it is not uncommon to attempt
writing `f32::consts::PI` instead of the correct
`std::f32::consts::PI`. When encountering the former, which results
in an access error due to it being an inexistent path, try to access
the same path under `std`. If this succeeds, this information is
stored for later tweaking of the final E0599 to provide an
appropriate suggestion.

Fix rust-lang#26760, fix rust-lang#46660.
… r=estebank

Correct unused parameter diagnostic

The message was incorrect for unused lifetime parameters. There's no need to be specific.
whitelist RTM x86 target cpu feature

This PR adds support for intels restricted transactional memory cpu feature. I mostly copied what was done for the [movbe](rust-lang#57999) feature.

rust-lang/stdarch#718
Change suggestion of field when not in self context

Fix rust-lang#60057.
Point at try `?` on errors affecting the err match arm of the desugared code

Fix rust-lang#59980.
Use more realistic example for thread builder

Stack size of 10 **bytes** does not make any sense: the minimal possible stack size is greater anyway.
Fix small errors in docs for `rchunks_exact` and `rchunks_exact_mut`.

The documentation for `rchunks_exact` said it started at the beginning
of the slice, bit it actually starts at the end of the slice.

In addition, there were a couple of "of the slice of the slice"
duplicate phrases going on for `rchunks_exact` and `rchunks_exact_mut`.

This fixes rust-lang#60068.
…ate, r=cramertj

Feature gate async methods

Fixes rust-lang#60069.
…, r=rkruppe

Use -mergefunc-use-aliases for any LLVM >= 8

This functionality is not specific to Rust's LLVM, but any starting in LLVM 8.0,
as noted in <rust-lang#56358 (comment)>.

cc @nikic
r? @rkruppe
@Centril
Copy link
Contributor Author

Centril commented Apr 19, 2019

@bors r+ p=17

@bors
Copy link
Contributor

bors commented Apr 19, 2019

📌 Commit a37446a has been approved by Centril

@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 Apr 19, 2019
@bors
Copy link
Contributor

bors commented Apr 19, 2019

⌛ Testing commit a37446a with merge 5f5e628772dc14a1ce38496e773d4744c7da391b...

@bors
Copy link
Contributor

bors commented Apr 19, 2019

💔 Test failed - checks-travis

@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:55:59] 56 
[00:55:59] 
[00:55:59] 
[00:55:59] The actual stderr differed from the expected stderr.
[00:55:59] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-async-await/feature-gate-async-await.stderr
[00:55:59] To update references, rerun the tests and pass the `--bless` flag
[00:55:59] To only update this specific test, also pass `--test-args feature-gates/feature-gate-async-await.rs`
[00:55:59] error: 1 errors occurred comparing output.
[00:55:59] status: exit code: 1
[00:55:59] status: exit code: 1
[00:55:59] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/feature-gates/feature-gate-async-await.rs" "-Zthreads=1" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-async-await/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/i586-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=cc" "--edition=2018" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-async-await/auxiliary" "-A" "unused"
[00:55:59] ------------------------------------------
[00:55:59] 
[00:55:59] ------------------------------------------
[00:55:59] stderr:
[00:55:59] stderr:
[00:55:59] ------------------------------------------
[00:55:59] error[E0706]: trait fns cannot be declared `async`
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |     async fn foo(); //~ ERROR trait fns cannot be declared `async`
[00:55:59] 
[00:55:59] 
[00:55:59] error[E0658]: async fn is unstable
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |     async fn foo() {} //~ ERROR async fn is unstable
[00:55:59]    |
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = help: add #![feature(async_await)] to the crate attributes to enable
[00:55:59] 
[00:55:59] error[E0658]: async fn is unstable
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |     async fn foo(); //~ ERROR trait fns cannot be declared `async`
[00:55:59]    |
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = help: add #![feature(async_await)] to the crate attributes to enable
[00:55:59] 
[00:55:59] error[E0658]: async fn is unstable
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL | async fn foo() {} //~ ERROR async fn is unstable
[00:55:59]    |
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = help: add #![feature(async_await)] to the crate attributes to enable
[00:55:59] 
[00:55:59] error[E0658]: async blocks are unstable
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |     let _ = async {}; //~ ERROR async blocks are unstable
[00:55:59]    |
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = help: add #![feature(async_await)] to the crate attributes to enable
[00:55:59] 
[00:55:59] error[E0658]: async closures are unstable
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |     let _ = async || {}; //~ ERROR async closures are unstable
[00:55:59]    |
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[00:55:59]    = help: add #![feature(async_await)] to the crate attributes to enable
[00:55:59] error: aborting due to 6 previous errors
[00:55:59] 
[00:55:59] For more information about this error, try `rustc --explain E0658`.
[00:55:59] 
---
[00:55:59] 
[00:55:59] 16 
[00:55:59] 17 error: aborting due to 3 previous errors
[00:55:59] 18 
[00:55:59] - Some errors occurred: E0425, E0601.
[00:55:59] + Some errors have detailed explanations: E0425, E0601.
[00:55:59] 21 
[00:55:59] 
[00:55:59] 
[00:55:59] The actual stderr differed from the expected stderr.
[00:55:59] The actual stderr differed from the expected stderr.
[00:55:59] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-60057/issue-60057.stderr
[00:55:59] To update references, rerun the tests and pass the `--bless` flag
[00:55:59] To only update this specific test, also pass `--test-args issues/issue-60057.rs`
[00:55:59] error: 1 errors occurred comparing output.
[00:55:59] status: exit code: 1
[00:55:59] status: exit code: 1
[00:55:59] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-60057.rs" "-Zthreads=1" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-60057/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/issues/issue-60057/auxiliary" "-A" "unused"
[00:55:59] ------------------------------------------
[00:55:59] 
[00:55:59] ------------------------------------------
[00:55:59] stderr:
[00:55:59] stderr:
[00:55:59] ------------------------------------------
[00:55:59] error[E0425]: cannot find value `banana` in this scope
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |             banana: banana //~ ERROR cannot find value `banana` in this scope
[00:55:59]    |                     ^^^^^^ a field by this name exists in `Self`
[00:55:59] 
[00:55:59] error[E0425]: cannot find value `banana` in this scope
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |             banana: banana //~ ERROR cannot find value `banana` in this scope
[00:55:59]    |                     ^^^^^^ help: you might have meant to use the available field: `self.banana`
[00:55:59] 
[00:55:59] error[E0601]: `main` function not found in crate `issue_60057`
[00:55:59]    |
[00:55:59]    = note: consider adding a `main` function to `/checkout/src/test/ui/issues/issue-60057.rs`
[00:55:59] error: aborting due to 3 previous errors
[00:55:59] 
[00:55:59] Some errors have detailed explanations: E0425, E0601.
[00:55:59] For more information about an error, try `rustc --explain E0425`.
---
[00:55:59] 
[00:55:59] 20 
[00:55:59] 21 error: aborting due to 2 previous errors
[00:55:59] 22 
[00:55:59] - Some errors occurred: E0223, E0599.
[00:55:59] + Some errors have detailed explanations: E0223, E0599.
[00:55:59] 25 
[00:55:59] 
[00:55:59] 
[00:55:59] The actual stderr differed from the expected stderr.
[00:55:59] The actual stderr differed from the expected stderr.
[00:55:59] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/suggest-std-when-using-type/suggest-std-when-using-type.stderr
[00:55:59] To update references, rerun the tests and pass the `--bless` flag
[00:55:59] To only update this specific test, also pass `--test-args suggestions/suggest-std-when-using-type.rs`
[00:55:59] error: 1 errors occurred comparing output.
[00:55:59] status: exit code: 1
[00:55:59] status: exit code: 1
[00:55:59] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/suggestions/suggest-std-when-using-type.rs" "-Zthreads=1" "--target=i586-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/suggest-std-when-using-type/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/suggestions/suggest-std-when-using-type/auxiliary" "-A" "unused"
[00:55:59] ------------------------------------------
[00:55:59] 
[00:55:59] ------------------------------------------
[00:55:59] stderr:
[00:55:59] stderr:
[00:55:59] ------------------------------------------
[00:55:59] error[E0223]: ambiguous associated type
[00:55:59]   --> /checkout/src/test/ui/suggestions/suggest-std-when-using-type.rs:2:14
[00:55:59]    |
[00:55:59] LL |     let pi = f32::consts::PI; //~ ERROR ambiguous associated type
[00:55:59] help: you are looking for the module in `std`, not the primitive type
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |     let pi = std::f32::consts::PI; //~ ERROR ambiguous associated type
[00:55:59] 
[00:55:59] error[E0599]: no function or associated item named `from_utf8` found for type `str` in the current scope
[00:55:59]   --> /checkout/src/test/ui/suggestions/suggest-std-when-using-type.rs:5:14
[00:55:59]    |
[00:55:59]    |
[00:55:59] LL |         str::from_utf8(bytes) //~ ERROR no function or associated item named `from_utf8` found
[00:55:59]    |              ^^^^^^^^^ function or associated item not found in `str`
[00:55:59] help: you are looking for the module in `std`, not the primitive type
[00:55:59]    |
[00:55:59] LL |         std::str::from_utf8(bytes) //~ ERROR no function or associated item named `from_utf8` found
[00:55:59] 
[00:55:59] error: aborting due to 2 previous errors
[00:55:59] 
[00:55:59] Some errors have detailed explanations: E0223, E0599.
---
[00:55:59] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:517:22
[00:55:59] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[00:55:59] 
[00:55:59] 
[00:55:59] 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  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--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" "8.0.0-rust-1.36.0-nightly\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:55:59] 
[00:55:59] 
[00:55:59] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --target i586-unknown-linux-gnu,i686-unknown-linux-musl
[00:55:59] Build completed unsuccessfully in 0:52:55
---
travis_time:end:03c9430e:start=1555637242133738511,finish=1555637242140285191,duration=6546680
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:09fc2cb8
$ 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:115d5c78
travis_time:start:115d5c78
$ 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:03691f92
$ 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 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 Apr 19, 2019
@Centril Centril closed this Apr 19, 2019
@Centril Centril deleted the rollup-svdiddz branch April 19, 2019 01:34
@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:10f13040:start=1555633682557474072,finish=1555633793286792145,duration=110729318073
$ 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
---
[01:09:56] .................................................................................................... 1200/5546
[01:09:59] .................................................................................................... 1300/5546
[01:10:01] .................................................................................................... 1400/5546
[01:10:05] .................................................................................................... 1500/5546
[01:10:08] ...........................F........................................................................ 1600/5546
[01:10:15] .................................................................................................... 1800/5546
[01:10:19] .................................................................................................... 1900/5546
[01:10:23] .................................................................................................... 2000/5546
[01:10:27] ...................................................................................................i 2100/5546
---
[01:10:52] .................................................................................................... 2700/5546
[01:10:57] .................................................................................................... 2800/5546
[01:11:01] .................................................................................................... 2900/5546
[01:11:05] .................................................................................................... 3000/5546
[01:11:09] .....................................F.............................................................. 3100/5546
[01:11:17] .................................................................................................... 3300/5546
[01:11:21] ........................................i........................................................... 3400/5546
[01:11:25] .................................................................................................... 3500/5546
[01:11:29] ..............ii...i..ii............................................................................ 3600/5546
---
[01:12:15] .................................................................................................... 4700/5546
[01:12:22] .................................................................................................... 4800/5546
[01:12:26] .................................................................................................... 4900/5546
[01:12:29] .................................................................................................... 5000/5546
[01:12:34] .......................................................F............................................ 5100/5546
[01:12:42] .................................................................................................... 5300/5546
[01:12:45] .................................................................................................... 5400/5546
[01:12:48] ....................................................................................i............... 5500/5546
[01:12:50] ..............................................
---
[01:12:50] 56 
[01:12:50] 
[01:12:50] 
[01:12:50] The actual stderr differed from the expected stderr.
[01:12:50] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-async-await/feature-gate-async-await.stderr
[01:12:50] To update references, rerun the tests and pass the `--bless` flag
[01:12:50] To only update this specific test, also pass `--test-args feature-gates/feature-gate-async-await.rs`
[01:12:50] error: 1 errors occurred comparing output.
[01:12:50] status: exit code: 1
[01:12:50] status: exit code: 1
[01:12:50] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/feature-gates/feature-gate-async-await.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-async-await/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2018" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-async-await/auxiliary" "-A" "unused"
[01:12:50] ------------------------------------------
[01:12:50] 
[01:12:50] ------------------------------------------
[01:12:50] stderr:
[01:12:50] stderr:
[01:12:50] ------------------------------------------
[01:12:50] error[E0706]: trait fns cannot be declared `async`
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |     async fn foo(); //~ ERROR trait fns cannot be declared `async`
[01:12:50] 
[01:12:50] 
[01:12:50] error[E0658]: async fn is unstable
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |     async fn foo() {} //~ ERROR async fn is unstable
[01:12:50]    |
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = help: add #![feature(async_await)] to the crate attributes to enable
[01:12:50] 
[01:12:50] error[E0658]: async fn is unstable
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |     async fn foo(); //~ ERROR trait fns cannot be declared `async`
[01:12:50]    |
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = help: add #![feature(async_await)] to the crate attributes to enable
[01:12:50] 
[01:12:50] error[E0658]: async fn is unstable
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL | async fn foo() {} //~ ERROR async fn is unstable
[01:12:50]    |
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = help: add #![feature(async_await)] to the crate attributes to enable
[01:12:50] 
[01:12:50] error[E0658]: async blocks are unstable
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |     let _ = async {}; //~ ERROR async blocks are unstable
[01:12:50]    |
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = help: add #![feature(async_await)] to the crate attributes to enable
[01:12:50] 
[01:12:50] error[E0658]: async closures are unstable
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |     let _ = async || {}; //~ ERROR async closures are unstable
[01:12:50]    |
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
[01:12:50]    = help: add #![feature(async_await)] to the crate attributes to enable
[01:12:50] error: aborting due to 6 previous errors
[01:12:50] 
[01:12:50] For more information about this error, try `rustc --explain E0658`.
[01:12:50] 
---
[01:12:50] 
[01:12:50] 16 
[01:12:50] 17 error: aborting due to 3 previous errors
[01:12:50] 18 
[01:12:50] - Some errors occurred: E0425, E0601.
[01:12:50] + Some errors have detailed explanations: E0425, E0601.
[01:12:50] 21 
[01:12:50] 
[01:12:50] 
[01:12:50] The actual stderr differed from the expected stderr.
[01:12:50] The actual stderr differed from the expected stderr.
[01:12:50] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-60057/issue-60057.stderr
[01:12:50] To update references, rerun the tests and pass the `--bless` flag
[01:12:50] To only update this specific test, also pass `--test-args issues/issue-60057.rs`
[01:12:50] error: 1 errors occurred comparing output.
[01:12:50] status: exit code: 1
[01:12:50] status: exit code: 1
[01:12:50] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-60057.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-60057/a" "-Crpath" "-O" "-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/issues/issue-60057/auxiliary" "-A" "unused"
[01:12:50] ------------------------------------------
[01:12:50] 
[01:12:50] ------------------------------------------
[01:12:50] stderr:
[01:12:50] stderr:
[01:12:50] ------------------------------------------
[01:12:50] error[E0425]: cannot find value `banana` in this scope
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |             banana: banana //~ ERROR cannot find value `banana` in this scope
[01:12:50]    |                     ^^^^^^ a field by this name exists in `Self`
[01:12:50] 
[01:12:50] error[E0425]: cannot find value `banana` in this scope
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |             banana: banana //~ ERROR cannot find value `banana` in this scope
[01:12:50]    |                     ^^^^^^ help: you might have meant to use the available field: `self.banana`
[01:12:50] 
[01:12:50] error[E0601]: `main` function not found in crate `issue_60057`
[01:12:50]    |
[01:12:50]    = note: consider adding a `main` function to `/checkout/src/test/ui/issues/issue-60057.rs`
[01:12:50] error: aborting due to 3 previous errors
[01:12:50] 
[01:12:50] Some errors have detailed explanations: E0425, E0601.
[01:12:50] For more information about an error, try `rustc --explain E0425`.
---
[01:12:50] 
[01:12:50] 20 
[01:12:50] 21 error: aborting due to 2 previous errors
[01:12:50] 22 
[01:12:50] - Some errors occurred: E0223, E0599.
[01:12:50] + Some errors have detailed explanations: E0223, E0599.
[01:12:50] 25 
[01:12:50] 
[01:12:50] 
[01:12:50] The actual stderr differed from the expected stderr.
[01:12:50] The actual stderr differed from the expected stderr.
[01:12:50] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/suggest-std-when-using-type/suggest-std-when-using-type.stderr
[01:12:50] To update references, rerun the tests and pass the `--bless` flag
[01:12:50] To only update this specific test, also pass `--test-args suggestions/suggest-std-when-using-type.rs`
[01:12:50] error: 1 errors occurred comparing output.
[01:12:50] status: exit code: 1
[01:12:50] status: exit code: 1
[01:12:50] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/suggestions/suggest-std-when-using-type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/suggest-std-when-using-type/a" "-Crpath" "-O" "-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/suggestions/suggest-std-when-using-type/auxiliary" "-A" "unused"
[01:12:50] ------------------------------------------
[01:12:50] 
[01:12:50] ------------------------------------------
[01:12:50] stderr:
[01:12:50] stderr:
[01:12:50] ------------------------------------------
[01:12:50] error[E0223]: ambiguous associated type
[01:12:50]   --> /checkout/src/test/ui/suggestions/suggest-std-when-using-type.rs:2:14
[01:12:50]    |
[01:12:50] LL |     let pi = f32::consts::PI; //~ ERROR ambiguous associated type
[01:12:50] help: you are looking for the module in `std`, not the primitive type
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |     let pi = std::f32::consts::PI; //~ ERROR ambiguous associated type
[01:12:50] 
[01:12:50] error[E0599]: no function or associated item named `from_utf8` found for type `str` in the current scope
[01:12:50]   --> /checkout/src/test/ui/suggestions/suggest-std-when-using-type.rs:5:14
[01:12:50]    |
[01:12:50]    |
[01:12:50] LL |         str::from_utf8(bytes) //~ ERROR no function or associated item named `from_utf8` found
[01:12:50]    |              ^^^^^^^^^ function or associated item not found in `str`
[01:12:50] help: you are looking for the module in `std`, not the primitive type
[01:12:50]    |
[01:12:50] LL |         std::str::from_utf8(bytes) //~ ERROR no function or associated item named `from_utf8` found
[01:12:50] 
[01:12:50] error: aborting due to 2 previous errors
[01:12:50] 
[01:12:50] Some errors have detailed explanations: E0223, E0599.
---
[01:12:50] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:517:22
[01:12:50] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[01:12:50] 
[01:12:50] 
[01:12:50] 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-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--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" "6.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"
[01:12:50] 
[01:12:50] 
[01:12:50] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:12:50] Build completed unsuccessfully in 0:04:46
[01:12:50] Build completed unsuccessfully in 0:04:46
[01:12:50] make: *** [check] Error 1
[01:12:50] Makefile:48: recipe for target 'check' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:34da0534
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Apr 19 01:42:53 UTC 2019

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)

@Centril Centril added the rollup A PR which is a rollup label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.