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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various minor/cosmetic improvements to code #56578

Merged
merged 7 commits into from Dec 8, 2018

Conversation

Projects
None yet
6 participants
@alexreg
Contributor

alexreg commented Dec 7, 2018

r? @Centril 馃槃

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 7, 2018

Note: the import reordering/grouping is probably unnecessary in hindsight, since I hear people are working on running rustfmt on the source as a matter of process... that said, they don't hurt, and there are plenty of other good changes in there.

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:00b2ce0b:start=1544142348311954434,finish=1544142351321123440,duration=3009169006
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/ff/94/838f88e12e6d3aadb427955e657f3fe3c763ee1ad9290d4601a287fed7d1/awscli-1.16.71-py2.py3-none-any.whl (1.4MB)
    0% |鈻                               | 10kB 37.0MB/s eta 0:00:01
    1% |鈻                               | 20kB 2.2MB/s eta 0:00:01
    2% |鈻                               | 30kB 3.2MB/s eta 0:00:01
    2% |鈻                               | 40kB 2.1MB/s eta 0:00:01
---
[00:05:04]    Compiling arena v0.0.0 (/checkout/src/libarena)
[00:05:04]    Compiling syntax_pos v0.0.0 (/checkout/src/libsyntax_pos)
[00:05:08]    Compiling rustc_errors v0.0.0 (/checkout/src/librustc_errors)
[00:06:28]    Compiling syntax_ext v0.0.0 (/checkout/src/libsyntax_ext)
[00:06:29] error[E0252]: the name `hir` is defined multiple times
[00:06:29]   --> src/librustc/traits/util.rs:19:11
[00:06:29] 12 | use hir::{self};
[00:06:29] 12 | use hir::{self};
[00:06:29]    |           ---- previous import of the module `hir` here
[00:06:29] 19 | use hir::{self};
[00:06:29] 19 | use hir::{self};
[00:06:29]    |           ^^^^ `hir` reimported here
[00:06:29]    |
[00:06:29]    = note: `hir` must be defined only once in the type namespace of this module
[00:06:29] help: you can use `as` to change the binding name of the import
[00:06:29]    |
[00:06:29] 19 | use hir::{self as other_hir};
[00:06:29] 
[00:06:29] error[E0252]: the name `Debug` is defined multiple times
[00:06:29]   --> src/librustc/traits/mod.rs:50:5
[00:06:29]    |
[00:06:29]    |
[00:06:29] 47 | use std::fmt::Debug;
[00:06:29]    |     --------------- previous import of the trait `Debug` here
[00:06:29] 50 | use std::fmt::Debug;
[00:06:29] 50 | use std::fmt::Debug;
[00:06:29]    |     ^^^^^^^^^^^^^^^ `Debug` reimported here
[00:06:29]    |
[00:06:29]    = note: `Debug` must be defined only once in the type namespace of this module
[00:06:29] help: you can use `as` to change the binding name of the import
[00:06:29]    |
[00:06:29] 50 | use std::fmt::Debug as OtherDebug;
[00:06:29] 
[00:06:29] 
[00:06:29] error[E0252]: the name `Rc` is defined multiple times
[00:06:29]    |
[00:06:29] 48 | use std::rc::Rc;
[00:06:29] 48 | use std::rc::Rc;
[00:06:29]    |     ----------- previous import of the type `Rc` here
[00:06:29] 51 | use std::rc::Rc;
[00:06:29] 51 | use std::rc::Rc;
[00:06:29]    |     ^^^^^^^^^^^ `Rc` reimported here
[00:06:29]    |
[00:06:29]    = note: `Rc` must be defined only once in the type namespace of this module
[00:06:29] help: you can use `as` to change the binding name of the import
[00:06:29]    |
[00:06:29] 51 | use std::rc::Rc as OtherRc;
[00:06:29] 
[00:06:29] 
[00:06:31] error[E0432]: unresolved imports `self::util::expand_trait_refs`, `self::util::TraitRefExpander`, `self::util::TraitRefExpansionInfoDignosticBuilder`
[00:06:31]    |
[00:06:31]    |
[00:06:31] 74 | pub use self::util::{expand_trait_refs, TraitRefExpander, TraitRefExpansionInfoDignosticBuilder};
[00:06:31]    |                      ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `TraitRefExpansionInfoDignosticBuilder` in `traits::util`
[00:06:31]    |                      |                  |
[00:06:31]    |                      |                  no `TraitRefExpander` in `traits::util`
[00:06:31]    |                      no `expand_trait_refs` in `traits::util`
[00:06:32] error[E0412]: cannot find type `Substs` in this scope
[00:06:32]    --> src/librustc/traits/util.rs:374:63
[00:06:32]     |
[00:06:32]     |
[00:06:32] 374 |                                                 impl_substs: &Substs<'tcx>)
[00:06:32] help: possible candidate is found in another module, you can import it into scope
[00:06:32]     |
[00:06:32] 11  | use ty::subst::Substs;
[00:06:32]     |
[00:06:32]     |
[00:06:32] 
[00:06:32] error[E0412]: cannot find type `Kind` in this scope
[00:06:32]    --> src/librustc/traits/util.rs:441:46
[00:06:32]     |
[00:06:32] 441 |                                    params: &[Kind<'tcx>])
[00:06:32] help: possible candidate is found in another module, you can import it into scope
[00:06:32]     |
[00:06:32] 11  | use ty::subst::Kind;
[00:06:32]     |
---
[00:06:33]    |
[00:06:33] 51 | use std::rc::Rc;
[00:06:33]    |     ^^^^^^^^^^^
[00:06:33] 
[00:06:55] error[E0599]: no method named `subst` found for type `ty::sty::TraitRef<'_>` in the current scope
[00:06:55]    --> src/librustc/traits/util.rs:381:24
[00:06:55]     |
[00:06:55] 381 |         impl_trait_ref.subst(selcx.tcx(), impl_substs);
[00:06:55]     | 
[00:06:55]     | 
[00:06:55]    ::: src/librustc/ty/sty.rs:649:1
[00:06:55] 649 | pub struct TraitRef<'tcx> {
[00:06:55] 649 | pub struct TraitRef<'tcx> {
[00:06:55]     | ------------------------- method `subst` not found for this
[00:06:55]     = help: items from traits can only be used if the trait is in scope
[00:06:55]     = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
[00:06:55]             `use ty::subst::Subst;`
[00:06:55] 
---
[00:07:01] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" "" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:07:01] expected success, got: exit code: 101
[00:07:01] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:07:01] Build completed unsuccessfully in 0:03:52
[00:07:01] make: *** [all] Error 1
[00:07:01] Makefile:28: recipe for target 'all' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0c7e2b5c
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Dec  7 00:33:01 UTC 2018

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)

@alexreg alexreg force-pushed the alexreg:cosmetic-1 branch from 4c9eb22 to e8f94c7 Dec 7, 2018

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:0832e036:start=1544144633686904534,finish=1544144636566793490,duration=2879888956
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
[00:05:38]    Compiling arena v0.0.0 (/checkout/src/libarena)
[00:05:38]    Compiling syntax_pos v0.0.0 (/checkout/src/libsyntax_pos)
[00:05:43]    Compiling rustc_errors v0.0.0 (/checkout/src/librustc_errors)
[00:07:08]    Compiling syntax_ext v0.0.0 (/checkout/src/libsyntax_ext)
[00:07:08] error[E0252]: the name `hir` is defined multiple times
[00:07:08]   --> src/librustc/traits/util.rs:19:11
[00:07:08] 12 | use hir::{self};
[00:07:08] 12 | use hir::{self};
[00:07:08]    |           ---- previous import of the module `hir` here
[00:07:08] 19 | use hir::{self};
[00:07:08] 19 | use hir::{self};
[00:07:08]    |           ^^^^ `hir` reimported here
[00:07:08]    |
[00:07:08]    = note: `hir` must be defined only once in the type namespace of this module
[00:07:08] help: you can use `as` to change the binding name of the import
[00:07:08]    |
[00:07:08] 19 | use hir::{self as other_hir};
[00:07:08] 
[00:07:08] error[E0252]: the name `Debug` is defined multiple times
[00:07:08]   --> src/librustc/traits/mod.rs:50:5
[00:07:08]    |
[00:07:08]    |
[00:07:08] 47 | use std::fmt::Debug;
[00:07:08]    |     --------------- previous import of the trait `Debug` here
[00:07:08] 50 | use std::fmt::Debug;
[00:07:08] 50 | use std::fmt::Debug;
[00:07:08]    |     ^^^^^^^^^^^^^^^ `Debug` reimported here
[00:07:08]    |
[00:07:08]    = note: `Debug` must be defined only once in the type namespace of this module
[00:07:08] help: you can use `as` to change the binding name of the import
[00:07:08]    |
[00:07:08] 50 | use std::fmt::Debug as OtherDebug;
[00:07:08] 
[00:07:08] 
[00:07:08] error[E0252]: the name `Rc` is defined multiple times
[00:07:08]    |
[00:07:08] 48 | use std::rc::Rc;
[00:07:08] 48 | use std::rc::Rc;
[00:07:08]    |     ----------- previous import of the type `Rc` here
[00:07:08] 51 | use std::rc::Rc;
[00:07:08] 51 | use std::rc::Rc;
[00:07:08]    |     ^^^^^^^^^^^ `Rc` reimported here
[00:07:08]    |
[00:07:08]    = note: `Rc` must be defined only once in the type namespace of this module
[00:07:08] help: you can use `as` to change the binding name of the import
[00:07:08]    |
[00:07:08] 51 | use std::rc::Rc as OtherRc;
[00:07:08] 
[00:07:08] 
[00:07:10] error[E0432]: unresolved imports `self::util::expand_trait_refs`, `self::util::TraitRefExpander`, `self::util::TraitRefExpansionInfoDignosticBuilder`
[00:07:10]    |
[00:07:10]    |
[00:07:10] 74 | pub use self::util::{expand_trait_refs, TraitRefExpander, TraitRefExpansionInfoDignosticBuilder};
[00:07:10]    |                      ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `TraitRefExpansionInfoDignosticBuilder` in `traits::util`
[00:07:10]    |                      |                  |
[00:07:10]    |                      |                  no `TraitRefExpander` in `traits::util`
[00:07:10]    |                      no `expand_trait_refs` in `traits::util`
[00:07:12] error[E0412]: cannot find type `Substs` in this scope
[00:07:12]    --> src/librustc/traits/util.rs:374:63
[00:07:12]     |
[00:07:12]     |
[00:07:12] 374 |                                                 impl_substs: &Substs<'tcx>)
[00:07:12] help: possible candidate is found in another module, you can import it into scope
[00:07:12]     |
[00:07:12] 11  | use ty::subst::Substs;
[00:07:12]     |
[00:07:12]     |
[00:07:12] 
[00:07:12] error[E0412]: cannot find type `Kind` in this scope
[00:07:12]    --> src/librustc/traits/util.rs:441:46
[00:07:12]     |
[00:07:12] 441 |                                    params: &[Kind<'tcx>])
[00:07:12] help: possible candidate is found in another module, you can import it into scope
[00:07:12]     |
[00:07:12] 11  | use ty::subst::Kind;
[00:07:12]     |
---
[00:07:13]    |
[00:07:13] 51 | use std::rc::Rc;
[00:07:13]    |     ^^^^^^^^^^^
[00:07:13] 
[00:07:36] error[E0599]: no method named `subst` found for type `ty::sty::TraitRef<'_>` in the current scope
[00:07:36]    --> src/librustc/traits/util.rs:381:24
[00:07:36]     |
[00:07:36] 381 |         impl_trait_ref.subst(selcx.tcx(), impl_substs);
[00:07:36]     | 
[00:07:36]     | 
[00:07:36]    ::: src/librustc/ty/sty.rs:649:1
[00:07:36] 649 | pub struct TraitRef<'tcx> {
[00:07:36] 649 | pub struct TraitRef<'tcx> {
[00:07:36]     | ------------------------- method `subst` not found for this
[00:07:36]     = help: items from traits can only be used if the trait is in scope
[00:07:36]     = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
[00:07:36]             `use ty::subst::Subst;`
[00:07:36] 

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)

@alexreg alexreg force-pushed the alexreg:cosmetic-1 branch from e8f94c7 to b39e079 Dec 7, 2018

@rust-highfive

This comment was marked as resolved.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:10fd7874:start=1544145227330470591,finish=1544145230867568664,duration=3537098073
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
[00:06:52]    Compiling syntax_ext v0.0.0 (/checkout/src/libsyntax_ext)
[00:06:55] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:06:55]    --> src/librustc/traits/util.rs:540:24
[00:06:55]     |
[00:06:55] 540 |                 if let hir::ItemKind::Impl(_, _, defaultness, ..) = item.node {
[00:06:55] 
[00:06:55] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:06:55]    --> src/librustc/traits/util.rs:554:58
[00:06:55]     |
[00:06:55]     |
[00:06:55] 554 |     pub fn impl_item_is_final(self, node_item: &NodeItem<hir::Defaultness>) -> bool {
[00:06:55] 
[00:06:56] error[E0412]: cannot find type `Substs` in this scope
[00:06:56]    --> src/librustc/traits/util.rs:370:63
[00:06:56]     |
[00:06:56]     |
[00:06:56] 370 |                                                 impl_substs: &Substs<'tcx>)
[00:06:56]     |                                                               ^^^^^^ did you mean `Subst`?
[00:06:56]     |
[00:06:56] 11  | use ty::subst::Substs;
[00:06:56]     |
[00:06:56] 
[00:06:56] 
[00:06:56] error[E0412]: cannot find type `Rc` in this scope
[00:06:56]    --> src/librustc/traits/mod.rs:264:18
[00:06:56]     |
[00:06:56] 264 |     parent_code: Rc<ObligationCauseCode<'tcx>>
[00:06:56]     |                  ^^ not found in this scope
[00:06:56]     |
[00:06:56] 31  | use std::rc::Rc;
[00:06:56]     |
[00:06:56] 
[00:06:56] 
[00:06:56] error[E0405]: cannot find trait `Debug` in this scope
[00:06:56]     --> src/librustc/traits/mod.rs:1176:26
[00:06:56]      |
[00:06:56] 1176 |     type LiftedExClause: Debug + 'tcx;
[00:06:56] help: possible candidates are found in other modules, you can import them into scope
[00:06:56]      |
[00:06:56] 31   | use core::fmt::Debug;
[00:06:56]      |
---
[00:07:19] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" "" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:07:19] expected success, got: exit code: 101
[00:07:19] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:07:19] Build completed unsuccessfully in 0:03:53
[00:07:19] make: *** [all] Error 1
[00:07:19] Makefile:28: recipe for target 'all' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0070b951
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Dec  7 01:21:19 UTC 2018

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-highfive

This comment was marked as resolved.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:0287f26a:start=1544146933139304632,finish=1544146936018866977,duration=2879562345
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
[00:05:33]    Compiling arena v0.0.0 (/checkout/src/libarena)
[00:05:34]    Compiling syntax_pos v0.0.0 (/checkout/src/libsyntax_pos)
[00:05:38]    Compiling rustc_errors v0.0.0 (/checkout/src/librustc_errors)
[00:07:03]    Compiling syntax_ext v0.0.0 (/checkout/src/libsyntax_ext)
[00:07:05] error[E0432]: unresolved import `ty::subst::Subts`
[00:07:05]   --> src/librustc/traits/util.rs:16:30
[00:07:05]    |
[00:07:05] 16 | use ty::subst::{Kind, Subst, Subts};
[00:07:05]    |                              ^^^^^ no `Subts` in `ty::subst`. Did you mean to use `Substs`?
[00:07:06] error[E0412]: cannot find type `Substs` in this scope
[00:07:06]    --> src/librustc/traits/util.rs:371:63
[00:07:06]     |
[00:07:06]     |
[00:07:06] 371 |                                                 impl_substs: &Substs<'tcx>)
[00:07:06]     |                                                               ^^^^^^ did you mean `Subst`?
[00:07:06]     |
[00:07:06] 11  | use ty::subst::Substs;
[00:07:06]     |
[00:07:06] 
[00:07:06] 
[00:07:08] error: unused import: `Subts`
[00:07:08]   --> src/librustc/traits/util.rs:16:30
[00:07:08]    |
[00:07:08] 16 | use ty::subst::{Kind, Subst, Subts};
[00:07:08]    |
[00:07:08]    = note: `-D unused-imports` implied by `-D warnings`
[00:07:08] 
=1544147403124499596,finish=1544147403129437222,duration=4937626

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)

@alexreg alexreg force-pushed the alexreg:cosmetic-1 branch from 2d4033d to 2fda9e2 Dec 7, 2018

@Centril

Centril approved these changes Dec 7, 2018

Show resolved Hide resolved src/libsyntax/feature_gate.rs Outdated
@Centril

This comment has been minimized.

Contributor

Centril commented Dec 7, 2018

cc me with nit fixed and when CI passes.

@rust-highfive

This comment was marked as resolved.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:1ccdb3aa:start=1544148674992513330,finish=1544148677675179971,duration=2682666641
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
[00:05:49]    Compiling rustc_errors v0.0.0 (/checkout/src/librustc_errors)
[00:07:15]    Compiling syntax_ext v0.0.0 (/checkout/src/libsyntax_ext)
[00:13:23]    Compiling rustc_mir v0.0.0 (/checkout/src/librustc_mir)
[00:13:23]    Compiling rustc_typeck v0.0.0 (/checkout/src/librustc_typeck)
[00:13:24] error[E0432]: unresolved import `rustc::traits::TraitRefExpansionInfoDignosticBuilder`
[00:13:24]   --> src/librustc_typeck/astconv.rs:23:27
[00:13:24]    |
[00:13:24] 23 | use rustc::traits::{self, TraitRefExpansionInfoDignosticBuilder};
[00:13:24]    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `TraitRefExpansionInfoDignosticBuilder` in `traits`
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]   --> src/librustc_typeck/check/method/suggest.rs:77:51
[00:13:24]    |
[00:13:24]    |
[00:13:24] 77 |                                rcvr_expr: Option<&hir::Expr>,
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]   --> src/librustc_typeck/check/method/suggest.rs:79:52
[00:13:24]    |
[00:13:24]    |
[00:13:24] 79 |                                args: Option<&'gcx [hir::Expr]>) {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:244:29
[00:13:24]     |
[00:13:24]     |
[00:13:24] 244 |                             hir::ExprKind::Lit(ref lit) => {
[00:13:24]     |                             ^^^ Use of undeclared type or module `hir`
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:260:29
[00:13:24]     |
[00:13:24] 260 |                             hir::ExprKind::Path(ref qpath) => {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:262:41
[00:13:24]     |
[00:13:24]     |
[00:13:24] 262 |                                 if let &hir::QPath::Resolved(_, ref path) = &qpath {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:263:44
[00:13:24]     |
[00:13:24]     |
[00:13:24] 263 |                                     if let hir::def::Def::Local(node_id) = path.def {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:278:77
[00:13:24]     |
[00:13:24]     |
[00:13:24] 278 |                                             (FileName::Real(_), Node::Local(hir::Local {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:279:57
[00:13:24]     |
[00:13:24]     |
[00:13:24] 279 |                                                 source: hir::LocalSource::Normal,
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:393:39
[00:13:24]     |
[00:13:24]     |
[00:13:24] 393 |                         } else if let hir::ExprKind::Path(hir::QPath::Resolved(_, ref path)) =
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:393:59
[00:13:24]     |
[00:13:24]     |
[00:13:24] 393 |                         } else if let hir::ExprKind::Path(hir::QPath::Resolved(_, ref path)) =
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:587:52
[00:13:24]     |
[00:13:24]     |
[00:13:24] 587 |                                 rcvr_expr: Option<&hir::Expr>,
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:723:18
[00:13:24]     |
[00:13:24]     |
[00:13:24] 723 |         map: &'a hir::map::Map<'tcx>,
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:728:41
[00:13:24]     |
[00:13:24]     |
[00:13:24] 728 |         fn visit_item(&mut self, i: &'v hir::Item) {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:729:20
[00:13:24]     |
[00:13:24]     |
[00:13:24] 729 |             if let hir::ItemKind::Trait(..) = i.node {
[00:13:24]     |                    ^^^ Use of undeclared type or module `hir`
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:735:54
[00:13:24]     |
[00:13:24] 735 |         fn visit_trait_item(&mut self, _trait_item: &hir::TraitItem) {}
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:737:52
[00:13:24]     |
[00:13:24]     |
[00:13:24] 737 |         fn visit_impl_item(&mut self, _impl_item: &hir::ImplItem) {}
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:796:22
[00:13:24]     |
[00:13:24]     |
[00:13:24] 796 |         krate: &'tcx hir::Crate,
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:805:9
[00:13:24]     |
[00:13:24]     |
[00:13:24] 805 |         hir::intravisit::walk_crate(&mut finder, krate);
[00:13:24]     |         ^^^ Use of undeclared type or module `hir`
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:810:22
[00:13:24]     |
[00:13:24] 810 | impl<'a, 'tcx, 'gcx> hir::intravisit::Visitor<'tcx> for UsePlacementFinder<'a, 'tcx, 'gcx> {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:813:23
[00:13:24]     |
[00:13:24]     |
[00:13:24] 813 |         module: &'tcx hir::Mod,
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:821:13
[00:13:24]     |
[00:13:24]     |
[00:13:24] 821 |             hir::intravisit::walk_mod(self, module, node_id);
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:828:17
[00:13:24]     |
---
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:861:10
[00:13:24]     |
[00:13:24] 861 |     ) -> hir::intravisit::NestedVisitorMap<'this, 'tcx> {
[00:13:24] 
[00:13:24] error[E0433]: failed to resolve. Use of undeclared type or module `hir`
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:862:9
[00:13:24]     |
---
[00:13:24] 
[00:13:24] error[E0425]: cannot find value `ty_string` in this scope
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:315:73
[00:13:24]     |
[00:13:24] 315 |                             err.note(&format!("did you mean `{}::{}`?", ty_string, suggestion));
[00:13:24]     |                                                                         ^^^^^^^^^ did you mean `ty_str`?
[00:13:24] 
[00:13:24] error[E0412]: cannot find type `SelfSource` in this scope
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:654:37
[00:13:24]     |
[00:13:24] 654 |                             source: SelfSource) -> bool {
[00:13:24] 
[00:13:24] 
[00:13:24] error[E0425]: cannot find value `rcvr_expr` in this scope
[00:13:24]    --> src/librustc_typeck/check/method/suggest.rs:674:12
[00:13:24]     |
[00:13:24] 674 |         if rcvr_expr.is_none() {
[00:13:24] 
[00:13:24] 
[00:13:25] error: unused import: `TraitRefExpansionInfoDignosticBuilder`
[00:13:25]   --> src/librustc_typeck/astconv.rs:23:27
[00:13:25]    |
[00:13:25] 23 | use rustc::traits::{self, TraitRefExpansionInfoDignosticBuilder};
[00:13:25]    |
[00:13:25]    = note: `-D unused-imports` implied by `-D warnings`
[00:13:25] 
[00:13:25] error: unused import: `std::ops::Range`
[00:13:25] error: unused import: `std::ops::Range`
[00:13:25]   --> src/librustc_typeck/astconv.rs:42:5
[00:13:25]    |
[00:13:25] 42 | use std::ops::Range;
[00:13:25]    |     ^^^^^^^^^^^^^^^
[00:13:25] 
[00:13:25] error: unused import: `rustc::hir::map as hir_map`
[00:13:25]   --> src/librustc_typeck/check/method/suggest.rs:22:5
[00:13:25]    |
[00:13:25] 22 | use rustc::hir::map as hir_map;
[00:13:25] 
[00:13:25] error: aborting due to 33 previous errors
[00:13:25] 
[00:13:25] Some errors occurred: E0412, E0425, E0432, E0433.
---
travis_time:end:1401d45d:start=1544149680007383371,finish=1544149680012857956,duration=5474585
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:19bba0e4
$ 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:301c1f83
travis_time:start:301c1f83
$ 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:0b846854
$ 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

This comment has been minimized.

Contributor

bors commented Dec 7, 2018

鈽旓笍 The latest upstream changes (presumably #54271) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-highfive

This comment has been minimized.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:1b4595a0:start=1544150510421805175,finish=1544150513191922006,duration=2770116831
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
travis_time:start:test_ui
Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[00:46:17] 
[00:46:17] running 5127 tests
[00:46:20] ...............................................................F.................................... 100/5127
[00:46:23] .................................................................................................F.. 200/5127
[00:46:28] .................................................................................................... 400/5127
[00:46:32] .................................................................................................... 500/5127
[00:46:35] ..............................i..................................................................... 600/5127
[00:46:38] .................................................................................................... 700/5127
[00:46:38] .................................................................................................... 700/5127
[00:46:44] .................................................................................................... 800/5127
[00:46:48] .i...............i..........................................................................F....... 900/5127
[00:46:51] ........................iiiii..............F........................................................ 1000/5127
[00:46:54] ..................F................................................................................. 1100/5127
[00:46:57] .................................................................................................... 1200/5127
[00:46:59] ......................................................F............................................. 1300/5127
[00:47:04] .................................................................................................... 1500/5127
[00:47:07] ............................i....................................................................i.. 1600/5127
[00:47:10] .................................................................................................... 1700/5127
[00:47:13] ................................................................................................F... 1800/5127
[00:47:13] ................................................................................................F... 1800/5127
[00:47:17] .................................................................................................... 1900/5127
[00:47:20] ......................................i............................................................. 2000/5127
[00:47:23] .................................................................................................... 2100/5127
[00:47:28] ..........................................................F.F...........FF.......................... 2200/5127
[00:47:31] ........................................................................................F.........F. 2300/5127
[00:47:35] ....F.....................................F......................................................... 2400/5127
[00:47:39] .................................................................................................... 2500/5127
[00:47:42] ..F..............F..F..................................................F............................ 2600/5127
[00:47:50] .................................................................................................... 2800/5127
[00:47:50] .................................................................................................... 2800/5127
[00:47:53] .................................F..................................................F............... 2900/5127
[00:48:00] ..................................................................................i................. 3100/5127
[00:48:03] .................................................................................................... 3200/5127
[00:48:06] .............................................ii..i..ii.............................................. 3300/5127
[00:48:10] .................................................................................................... 3400/5127
---
[00:48:21] ..i................................................................................................. 3900/5127
[00:48:26] .................................................................................................... 4000/5127
[00:48:31] .................................................................................................... 4100/5127
[00:48:34] .................................................................................................... 4200/5127
[00:48:38] .................................................................................................Fi. 4300/5127
[00:48:43] .................................................................................................... 4400/5127
[00:48:47] ......F............................................................................................. 4500/5127
[00:48:54] ...................................................................................i................ 4700/5127
[00:48:54] ...................................................................................i................ 4700/5127
[00:48:57] ...............................F.................................................................... 4800/5127
[00:49:01] ..................................................F................................................. 4900/5127
[00:49:03] ..............................................................................................F..... 5000/5127
[00:49:07] ...........................
[00:49:07] failures:
[00:49:07] 
[00:49:07] ---- [ui] ui/associated-const/associated-const-no-item.rs stdout ----
[00:49:07] ---- [ui] ui/associated-const/associated-const-no-item.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no associated item named `ID` found for type `i32` in the current scope
[00:49:07] -   --> $DIR/associated-const-no-item.rs:16:23
[00:49:07] +   --> $DIR/associated-const-no-item.rs:16:16
[00:49:07] 3    |
[00:49:07] 4 LL | const X: i32 = <i32>::ID;
[00:49:07] -    |                |
[00:49:07] -    |                associated item not found in `i32`
[00:49:07] +    |                ^^^^^^^^^ associated item not found in `i32`
[00:49:07] 8    |
[00:49:07] 8    |
[00:49:07] 9    = help: items from traits can only be used if the trait is implemented and in scope
[00:49:07] 10    = note: the following trait defines an item `ID`, perhaps you need to implement it:
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-const/associated-const-no-item/associated-const-no-item.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args associated-const/associated-const-no-item.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-const/associated-const-no-item.rs" "--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/associated-const/associated-const-no-item/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/associated-const/associated-const-no-item/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no associated item named `ID` found for type `i32` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/associated-const/associated-const-no-item.rs","byte_start":517,"byte_end":526,"line_start":16,"line_end":16,"column_start":16,"column_end":25,"is_primary":true,"text":[{"text":"const X: i32 = <i32>::ID;","highlight_start":BACKTRACE=1` for a backtrace.
[00:49:07] ---- [ui] ui/bogus-tag.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 
[00:49:07] 1 error[E0599]: no variant named `hsl` found for type `color` in the current scope
[00:49:07] -   --> $DIR/bogus-tag.rs:18:14
[00:49:07] +   --> $DIR/bogus-tag.rs:18:7
[00:49:07] 3    |
[00:49:07] 4 LL | enum color { rgb(isize, isize, isize), rgba(isize, isize, isize, isize), }
[00:49:07] 5    | ---------- variant `hsl` not found here
[00:49:07] 6 ...
[00:49:07] 6 ...
[00:49:07] 7 LL |       color::hsl(h, s, l) => { println!("hsl"); }
[00:49:07] -    |       -------^^^--------- variant not found in `color`
[00:49:07] +    |       ^^^^^^^^^^^^^^^^^^^ variant not found in `color`
[00:49:07] 10 error: aborting due to previous error
[00:49:07] 11 
[00:49:07] 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/bogus-tag/bogus-tag.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args bogus-tag.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/bogus-tag.rs" "--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/bogus-tag/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-99]: no variant named `hsl` found for type `color` in the current scope\n  --> /checkout/src/test/ui/bogus-tag.rs:18:7\n   |\nLL | enum color { rgb(isize, isize, isize), rgba(isize, isize, isize, isize), }\n   | ---------- variant `hsl` not found here\n...\nLL |       color::hsl(h, s, l) => { println!(\"hsl\"); }\n   |       ^^^^^^^^^^^^^^^^^^^ variant not found in `color`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/bogus-tag.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/did_you_mean/bad-assoc-pat.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 23    |          ^^^^^^^^^^^^^^^^ help: try: `<(u8,)>::AssocItem`
[00:49:07] 24 
[00:49:07] 25 error[E0599]: no associated item named `AssocItem` found for type `[u8]` in the current scope
[00:49:07] +   --> $DIR/bad-assoc-pat.rs:13:9
[00:49:07] 27    |
[00:49:07] 27    |
[00:49:07] 28 LL |         [u8]::AssocItem => {}
[00:49:07] -    |         |
[00:49:07] -    |         associated item not found in `[u8]`
[00:49:07] +    |         ^^^^^^^^^^^^^^^ associated item not found in `[u8]`
[00:49:07] 32 
[00:49:07] 32 
[00:49:07] 33 error[E0599]: no associated item named `AssocItem` found for type `(u8, u8)` in the current scope
[00:49:07] +   --> $DIR/bad-assoc-pat.rs:16:9
[00:49:07] 35    |
[00:49:07] 35    |
[00:49:07] 36 LL |         (u8, u8)::AssocItem => {}
[00:49:07] -    |         |
[00:49:07] -    |         |
[00:49:07] -    |         associated item not found in `(u8, u8)`
[00:49:07] +    |         ^^^^^^^^^^^^^^^^^^^ associated item not found in `(u8, u8)`
[00:49:07] 40 
[00:49:07] 41 error[E0599]: no associated item named `AssocItem` found for type `_` in the current scope
[00:49:07] +   --> $DIR/bad-assoc-pat.rs:19:9
[00:49:07] 43    |
[00:49:07] 43    |
[00:49:07] 44 LL |         _::AssocItem => {}
[00:49:07] -    |         ---^^^^^^^^^
[00:49:07] -    |         associated item not found in `_`
[00:49:07] +    |         ^^^^^^^^^^^^ associated item not found in `_`
[00:49:07] 48 
[00:49:07] 48 
[00:49:07] 49 error[E0599]: no associated item named `AssocItem` found for type `(u8,)` in the current scope
[00:49:07] +   --> $DIR/bad-assoc-pat.rs:24:10
[00:49:07] 51    |
[00:49:07] 51    |
[00:49:07] 52 LL |         &(u8,)::AssocItem => {}
[00:49:07] -    |          |
[00:49:07] -    |          |
[00:49:07] -    |          associated item not found in `(u8,)`
[00:49:07] +    |          ^^^^^^^^^^^^^^^^ associated item not found in `(u8,)`
[00:49:07] 57 error: aborting due to 8 previous errors
[00:49:07] 58 
[00:49:07] 
[00:49:07] 
[0ans":[{"file_name":"/checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":1112,"byte_end":1128,"line_start":24,"line_end":24,"column_start":10,"column_end":26,"is_primary":true,"text":[{"text":"        &(u8,)::AssocItem => {}","highlight_start":10,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try","code":null,"level":"help","spans":[{"file_name":"/checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":1112,"byte_end":1128,"line_start":24,"line_end":24,"column_start":10,"column_end":26,"is_primary":true,"text":[{"text":"        &(u8,)::AssocItem => {}","highlight_start":10,"highlight_end":26}],"label":null,"suggested_replacement":"<(u8,)>::AssocItem","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error: missing angle brackets in associated item path\n  --> /checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs:24:10\n   |\nLL |         &(u8,)::AssocItem => {}\n   |          ^^^^^^^^^^^^^^^^ help: try: `<(u8,)>::AssocItem`\n\n"}
[00:49:07] {"message":"no associated item named `AssocItem` found for type `[u8]` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":503,"byte_end":518,"line_start":13,"line_end":13,"column_start":9,"column_end":24,"is_primary":true,"text":[{"text":"        [u8]::AssocItem => {}","highlight_start":9,"highlight_end":24}],"label":"associated item not found in `[u8]`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `AssocItem` found for type `[u8]` in the current scope\n  --> /checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs:13:9\n   |\nLL |         [u8]::AssocItem => {}\n   |         ^^^^^^^^^^^^^^^ associated item not found in `[u8]`\n\n"}
[00:49:07] {"message":"no associated item named `AssocItem` found for type `(u8, u8)` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":698,"byte_end":717,"line_start":16,"line_end":16,"column_start":9,"column_end":28,"is_primary":true,"text":[{"text":"        (u8, u8)::AssocItem => {}","highlight_start":9,"highlight_end":28}],"label":"associated item not found in `(u8, u8)`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `AssocItem` found for type `(u8, u8)` in the current scope\n  --> /checkout/src/test/ui/did_you_mfound for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs","byte_start":1112,"byte_end":1128,"line_start":24,"line_end":24,"column_start":10,"column_end":26,"is_primary":true,"text":[{"text":"        &(u8,)::AssocItem => {}","highlight_start":10,"highlight_end":26}],"label":"associated item not found in `(u8,)`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `AssocItem` found for type `(u8,)` in the current scope\n  --> /checkout/src/test/ui/did_you_mean/bad-assoc-pat.rs:24:10\n   |\nLL |         &(u8,)::AssocItem => {}\n   |          ^^^^^^^^^^^^^^^^ associated item not found in `(u8,)`\n\n"}
[00:49:07] {"message":"aborting due to 8 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 8 previous errors\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/did_you_mean/bad-assoc-pat.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/dont-suggest-private-trait-method.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no function or associated item named `new` found for type `T` in the currentwn-linux-gnu/test/ui/dont-suggest-private-trait-method/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no function or associated item named `new` found for type `T` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/dont-suggest-private-trait-method.rs","byte_start":467,"byte_end":476,"line_start":11,"line_end":11,"column_start":1,"column_end":10,"is_primary":false,"text":[{"text":"struct T;","highlight_start":1,"highlight_end":10}],"label":"function or associated item `new` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/dont-suggest-private-trait-method.rs","byte_start":494,"byte_end":500,"line_start":14,"line_end":14,"column_start":5,"column_end":11,"is_primary":true,"text":[{"text":"    T::new();","highlight_start":5,"highlight_end":11}],"label":"function or associated item not found in `T`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no function or associated item named `new` found for type `T` in the current scope\n  --> /checkout/src/test/ui/dont-suggest-private-trait-method.rs:14:5\n   |\nLL | struct T;\n   | --------- function or associated item `new` not found for this\n...\nLL |     T::new();\n   |     ^^^^^^ function or associated item not found in `T`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/dont-suggest-private-trait-method.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/empty/empty-struct-braces-expr.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 47    |               did you mean `XEmpty1 { /* fields */ }`?
[00:49:07] 48 
[00:49:07] 49 error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
[00:49:07] +   --> $DIR/empty-struct-braces-expr.rs:32:15
[00:49:07] 51    |
[00:49:07] 51    |
[00:49:07] 52 LL |     let xe3 = XE::Empty3; //~ ERROR no variant named `Empty3` found for type
[00:49:07] -    |               |
[00:49:07] -    |               |
[00:49:07] -    |               variant not found in `empty_struct::XE`
[00:49:07] +    |               ^^^^^^^^^^e or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n    pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n    a.I\n    //~^ ERROR expected value, found module `a`\n    // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":754,"byte_end":760,"line_start":26,"line_end":26,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":"    let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`","highlight_start":14,"highlight_end":20}],"label":"did you mean `XEmpty2`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":754,"byte_end":760,"line_start":26,"line_end":26,"column_start":14,"column_end":20,"is_primary":true,"text":[{"text":"    let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`","highlight_start":14,"highlight_end":20}],"label":"did you mean `Empty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected function, found struct `Empty1`\n  --> /checkout/src/test/ui/empty/empty-struct-braces-expr.rs:26:14\n   |\nLL |     let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`\n   |              ^^^^^^\n   |              |\n   |              did you mean `XEmpty2`?\n   |              did you mean `Empty1 { /* fields */ }`?\n\n"}
[00:49:07] {"message":"expected value, found struct variant `E::Empty3`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n    pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n    a.I\n    //~^ ERROR expected value, found module `a`\n    // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":828,"byte_end":837,"line_start":27,"line_end":27,"column_start":14,"column_end":23,"is_primary":true,"text":[{"text":"    let e3 = E::Empty3; //~ ERROR expected value, found struct variant `E::Empty3`","highlight_start":14,"highlight_end":23}],"label":"did you mean `E::Empty3 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found struct variant `E::Empty3`\n  --> /checkout/src/test/ui/empty/empty-struct-braces-expr.rs:27:14\n   |\nLL |     let e3 = E::Empty3; //~ ERROR expected value, found struct variant `E::Empty3`\n   |              ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?\n\n"}
[00:49:07] {"message":"expected function, found struct variant `E::Empty3`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\yte_end":1008,"line_start":30,"line_end":30,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":"    let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":"did you mean `XEmpty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected value, found struct `XEmpty1`\n  --> /checkout/src/test/ui/empty/empty-struct-braces-expr.rs:30:15\n   |\nLL |     let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`\n   |               ^^^^^^^\n   |               |\n   |               did you mean `XEmpty2`?\n   |               did you mean `XEmpty1 { /* fields */ }`?\n\n"}
[00:49:07] {"message":"expected function, found struct `XEmpty1`","code":{"code":"E0423","explanation":"\nAn identifier was used like a function name or a value was expected and the\nidentifier exists but it belongs to a different namespace.\n\nFor (an erroneous) example, here a `struct` variant name were used as a\nfunction:\n\n```compile_fail,E0423\nstruct Foo { a: bool };\n\nlet f = Foo();\n// error: expected function, found `Foo`\n// `Foo` is a struct name, but this expression uses it like a function name\n```\n\nPlease verify you didn't misspell the name of what you actually wanted to use\nhere. Example:\n\n```\nfn Foo() -> u32 { 0 }\n\nlet f = Foo(); // ok!\n```\n\nIt is common to forget the trailing `!` on macro invocations, which would also\nyield this error:\n\n```compile_fail,E0423\nprintln(\"\");\n// error: expected function, found macro `println`\n// did you mean `println!(...)`? (notice the trailing `!`)\n```\n\nAnother case where this error is emitted is when a value is expected, but\nsomething else is found:\n\n```compile_fail,E0423\npub mod a {\n    pub const I: i32 = 1;\n}\n\nfn h1() -> i32 {\n    a.I\n    //~^ ERROR expected value, found module `a`\n    // did you mean `a::I`?\n}\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":1073,"byte_end":1080,"line_start":31,"line_end":31,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":"    let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":"did you mean `XEmpty2`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":1073,"byte_end":1080,"line_start":31,"line_end":31,"column_start":15,"column_end":22,"is_primary":true,"text":[{"text":"    let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`","highlight_start":15,"highlight_end":22}],"label":"did you mean `XEmpty1 { /* fields */ }`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0423]: expected function, found struct `XEmpty1`\n  --> /checkout/src/test/ui/empty/empty-struct-braces-expr.rs:31:15\n   |\nLL |     let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`\n   |               ^^^^^^^\n   |               |\n   |               did you mean `XEmpty2`?\n   |               did you mean `XEmpty1 { /* fields */ }`?\n\n"}
[00:49:0doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/empty/empty-struct-braces-expr.rs","byte_start":1227,"byte_end":1237,"line_start":33,"line_end":33,"column_start":15,"column_end":25,"is_primary":true,"text":[{"text":"    let xe3 = XE::Empty3(); //~ ERROR no variant named `Empty3` found for type","highlight_start":15,"highlight_end":25}],"label":"variant not found in `empty_struct::XE`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"did you mean `empty_struct::XE::XEmpty3`?","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope\n  --> /checkout/src/test/ui/empty/empty-struct-braces-expr.rs:33:15\n   |\nLL |     let xe3 = XE::Empty3(); //~ ERROR no variant named `Empty3` found for type\n   |               ^^^^^^^^^^ variant not found in `empty_struct::XE`\n   |\n   = note: did you mean `empty_struct::XE::XEmpty3`?\n\n"}
[00:49:07] {"message":"aborting due to 8 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 8 previous errors\n\n"}
[00:49:07] {"message":"Some errors occurred: E0423, E0599.","code":null,"level":"","spans":[],"children":[],"rendered":"Some errors occurred: E0423, E0599.\n"}
[00:49:07] {"message":"For more information about an errorde: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/error-codes/E0599.rs" "--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/error-codes/E0599/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/error-codes/E0599/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no associated item named `NotEvenReal` found for type `Foo` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/error-codes/E0599.rs","byte_start":467,"byte_end":478,"line_start":11,"line_end":11,"column_start":1,"column_end":12,"is_primary":false,"text":[{"text":"struct Foo;","highlight_start":1,"highlight_end":12}],"label":"associated item `NotEvenReal` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/error-codes/E0599.rs","byte_start":506,"byte_end":524,"line_start":14,"line_end":14,"column_start":15,"column_end":33,"is_primary":true,"text":[{"text":"    || if let Foo::NotEvenReal() = Foo {}; //~ ERROR E0599","highlight_start":15,"highlight_end":33}],"label":"associated item not found in `Foo`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `NotEvenReal` found for type `Foo` in the current scope\n  --> /checkout/src/test/ui/error-codes/E0599.rs:14:15\n   |\nLL | struct Foo;\n   | ----------- associated item `NotEvenReal` not found for this\n...\nLL |     || if let Foo::NotEvenReal() = Foo {}; //~ ERROR E0599\n   |               ^^^^^^^^^^^^^^^^^^ associated item not found in `Foo`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/error-codes/E0599.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/invalid/invalid-path-in-const.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no associated item named `DOESNOTEXIST` found for type `u32` in the current scope
[00:49:07] -   --> $DIR/invalid-path-in-consre information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/invalid/invalid-path-in-const.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-22933-2.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no variant named `PIE` found for type `Delicious` in the current scope
[00:49:07] +   --> $DIR/issue-22933-2.rs:14:44
[00:49:07] 3    |
[00:49:07] 3    |
[00:49:07] 4 LL | enum Delicious {
[00:49:07] 5    | -------------- variant `PIE` not found here
[00:49:07] 6 ...
[00:49:07] 6 ...
[00:49:07] 7 LL |     ApplePie = Delicious::Apple as isize | Delicious::PIE as isize,
[00:49:07] -    |                                            |
[00:49:07] -    |                                            |
[00:49:07] -    |                                            variant not found in `Delicious`
[00:49:07] +    |                                            ^^^^^^^^^^^^^^ variant not found in `Delicious`
[00:49:07] 12 error: aborting due to previous error
[00:49:07] 13 
[00:49:07] 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-22933-2/issue-22933-2.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args issues/issue-22933-2.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-22933-2.rs" "--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-22933-2/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-22933-2/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no variant named `PIE` found for type `Delicious` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issues/issue-22933-2.rs","byte_start":467,"byte_end":481,"line_start":11,"line_end":11,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"enum Delicious {","highlight_start":1,"highlight_end":15}],"label":"variant `PIE` not found here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/issues/issue-22933-2.rs","byte_start":567,"byte_end":581,"line_start":14,"line_end":14,"column_start":44,"column_end":58,"is_primary":true,"text":[{"text":"    ApplePie = Delicious::Apple as isize | Delicious::PIE as isize,","highlight_start":44,"highlight_end":58}],"label":"variant not found in `Delicious`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no variant named `PIE` found for type `Delicious` in the current scope\n  --> /checkout/src/test/ui/issues/issue-22933-2.rs:14:44\n   |\nLL | enum Delicious {\n   | -------------- variant `PIE` not found here\n...\nLL |     ApplePie = Delicious::Apple as isize | Delicious::PIE as isize,\n   |                                            ^^^^^^^^^^^^^^ variant not found in `Delicious`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-22933-2.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-22933-3.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no associated item named `Mplain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-22933-3.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-23173.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no variant named `Homura` found for type `Token` in the current scope
[00:49:07] +   --> $DIR/issue-23173.rs:19:16
[00:49:07] 3    |
[00:49:07] 3    |
[00:49:07] 4 LL | enum Token { LeftParen, RightParen, Plus, Minus, /* etc */ }
[00:49:07] 5    | ---------- variant `Homura` not found here
[00:49:07] 6 ...
[00:49:07] 6 ...
[00:49:07] 7 LL |     use_token(&Token::Homura);
[00:49:07] -    |                |
[00:49:07] -    |                variant not found in `Token`
[00:49:07] +    |                ^^^^^^^^^^^^^ variant not found in `Token`
[00:49:07] 11 
[00:49:07] 11 
[00:49:07] 12 error[E0599]: no function or associated item named `method` found for type `Struct` in the current scope
[00:49:07] +   --> $DIR/issue-23173.rs:21:5
[00:49:07] 14    |
[00:49:07] 14    |
[00:49:07] 15 LL | struct Struct {
[00:49:07] 16    | ------------- function or associated item `method` not found for this
[00:49:07] 17 ...
[00:49:07] 17 ...
[00:49:07] 18 LL |     Struct::method();
[00:49:07] -    |     |
[00:49:07] -    |     function or associated item not found in `Struct`
[00:49:07] -    |     function or associated item not found in `Struct`
[00:49:07] +    |     ^^^^^^^^^^^^^^ function or associated item not found in `Struct`
[00:49:07] 22 
[00:49:07] 23 error[E0599]: no function or associated item named `method` found for type `Struct` in the current scope
[00:49:07] +   --> $DIR/issue-23173.rs:23:5
[00:49:07] 25    |
[00:49:07] 25    |
[00:49:07] 26 LL | struct Struct {
[00:49:07] 27    | ------------- function or associated item `method` not found for this
[00:49:07] 28 ...
[00:49:07] 28 ...
[00:49:07] 29 LL |     Struct::method;
[00:49:07] -    |     |
[00:49:07] -    |     function or associated item not found in `Struct`
[00:49:07] -    |     function or associated item not found in `Struct`
[00:49:07] +    |     ^^^^^^^^^^^^^^ function or associated item not found in `Struct`
[00:49:07] 33 
[00:49:07] 34 error[E0599]: no associated item named `Assoc` found for type `Struct` in the current scope
[00:49:07] +   --> $DIR/issue-23173.rs:25:5
[00:49:07] 36    |
[00:49:07] 36    |
[00:49:07] 37 LL | struct Struct {
[00:49:07] 38    | ------------- associated item `Assoc` not found for this
[00:49:07] 39 ...
[00:49:07] 39 ...
[00:49:07] 40 LL |     Struct::Assoc;
[00:49:07] -    |     |
[00:49:07] -    |     associated item not found in `Struct`
[00:49:07] +    |     ^^^^^^^^^^^^^ associated item not found in `Struct`
[00:49:07] 44 
[00:49:07] 44 
[00:49:07] 45 error: aborting due to 4 previous errors
[00:49:07] 46 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-23173/issue-23173.stderr
[00:49:07] To update references, rerun the tests us, Minus, /* etc */ }","highlight_start":1,"highlight_end":11}],"label":"variant `Homura` not found here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/issues/issue-23173.rs","byte_start":638,"byte_end":651,"line_start":19,"line_end":19,"column_start":16,"column_end":29,"is_primary":true,"text":[{"text":"    use_token(&Token::Homura);","highlight_start":16,"highlight_end":29}],"label":"variant not found in `Token`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no variant named `Homura` found for type `Token` in the current scope\n  --> /checkout/src/test/ui/issues/issue-23173.rs:19:16\n   |\nLL | enum Token { LeftParen, RightParen, Plus, Minus, /* etc */ }\n   | ---------- variant `Homura` not found here\n...\nLL |     use_token(&Token::Homura);\n   |                ^^^^^^^^^^^^^ variant not found in `Token`\n\n"}
[00:49:07] {"message":"no function or associated item named `method` found for type `Struct` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issues/issue-23173.rs","byte_start":528,"byte_end":541,"line_start":12,"line_end":12,"column_start":1,"column_end":14,"is_primary":false,"text":[{"text":"struct Struct {"truct Struct {","highlight_start":1,"highlight_end":14}],"label":"function or associated item `method` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/issues/issue-23173.rs","byte_start":797,"byte_end":811,"line_start":23,"line_end":23,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    Struct::method;","highlight_start":5,"highlight_end":19}],"label":"function or associated item not found in `Struct`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no function or associated item named `method` found for type `Struct` in the current scope\n  --> /checkout/src/test/ui/issues/issue-23173.rs:23:5\n   |\nLL | struct Struct {\n   | ------------- function or associated item `method` not found for this\n...\nLL |     Struct::method;\n   |     ^^^^^^^^^^^^^^ function or associated item not found in `Struct`\n\n"}
[00:49:07] {"message":"no associated item named `Assoc` found for type `Struct` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issues/issue-23173.rs","byte_start":528,"byte_end":541,"line_start":12,"line_end":12,"column_start":1,"column_end":14,"is_primary":false,"text":[{"text":"struct Struct {","highlight_start":1,"highlight_end":14}],"label":"associated item `Assoc` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/issues/issue-23173.rs","byte_start":893,"byte_end":906,"line_start":25,"line_end":25,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":"    Struct::Assoc;","highlight_start":5,"highlight_end":18}],"label":"associated item not found in `Struct`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `Assoc` found for type `Struct` in the current scope\n  --> /checkout/src/test/ui/issues/issue-23173.rs:25:5\n   |\nLL | struct Struct {\n   | ------------- associated item `Assoc` not found for this\n...\nLL |     Struct::Assoc;\n   |     ^^^^^^^^^^^^^ associated item not found in `Struct`\n\n"}
[00:49:07] {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-23173.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-23217.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07 found in `dyn std::ops::BitXor<_>`
[00:49:07] +    |                 ^^^^^^^^^^^^^ function or associated item not found in `dyn std::ops::BitXor<_>`
[00:49:07] 14    |
[00:49:07] 15    = help: did you mean `bitxor`?
[00:49:07] 
[00:49:07] 
[00:49:07] 21    |             ^^^^^^^^^^^^^ associated type `Output` must be specified
[00:49:07] 22 
[00:49:07] 23 error[E0599]: no function or associated item named `bitor` found for type `dyn std::ops::BitXor<_>` in the current scope
[00:49:07] +   --> $DIR/issue-28344.rs:18:13
[00:49:07] 25    |
[00:49:07] 25    |
[00:49:07] 26 LL |     let g = BitXor::bitor;
[00:49:07] -    |             |
[00:49:07] -    |             |
[00:49:07] -    |             function or associated item not found in `dyn std::ops::BitXor<_>`
[00:49:07] +    |             ^^^^^^^^^^^^^ function or associated item not found in `dyn std::ops::BitXor<_>`
[00:49:07] 30    |
[00:49:07] 31    = help: did you mean `bitxor`?
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-28344/issue-28344.stderr
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-28344/issue-28344.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args issues/issue-28344.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-28344.rs" "--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-28344/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-28344/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"the value of the associated type `Output` (from the trait `std::ops::BitXor`) must be specified","code":{"code":"E0191","explanation":"\nTrait objects need to have all associated types specified. Erroneous code\nexample:\n\n```compile_fail,E0191\ntrait Trait {\n    type Bar;\n}\n\ntype Foo = Trait; // error: the value of the associated type `Bar` (from\n                  //        the trait `Trait`) must be specified\n```\n\nPlease verify you specified all associated types of the trait and that you\nused the right trait. Example:\n\n```\ntrait Trait {\n    type Bar;\n}\n\ntype Foo = Trait<Bar=i32>; // ok!\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issues/issue-28344.rs","byte_start":518,"byte_end":531,"line_start":14,"line_end":14,"column_start":17,"column_end":30,"is_primary":true,"text":[{"text":"    let x: u8 = BitXor::bitor(0 as u8, 0 as u8);","highlight_start":17,"highlight_end":30}],"label":"associated type `Output` must be specified","suggested_replacement":null,"suggestion_:bitor(0 as u8, 0 as u8);\n   |                 ^^^^^^^^^^^^^ function or associated item not found in `dyn std::ops::BitXor<_>`\n   |\n   = help: did you mean `bitxor`?\n\n"}
[00:49:07] {"message":"the value of the associated type `Output` (from the trait `std::ops::BitXor`) must be specified","code":{"code":"E0191","explanation":"\nTrait objects need to have all associated types specified. Erroneous code\nexample:\n\n```compile_fail,E0191\ntrait Trait {\n    type Bar;\n}\n\ntype Foo = Trait; // error: the value of the associated type `Bar` (from\n                  //        the trait `Trait`) must be specified\n```\n\nPlease verify you specified all associated types of the trait and that you\nused the right trait. Example:\n\n```\ntrait Trait {\n    type Bar;\n}\n\ntype Foo = Trait<Bar=i32>; // ok!\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issues/issue-28344.rs","byte_start":643,"byte_end":656,"line_start":18,"line_end":18,"column_start":13,"column_end":26,"is_primary":true,"text":[{"text":"    let g = BitXor::bitor;","highlight_start":13,"highlight_end":26}],"label":"associated type `Output` must be specified","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0191]: the value of the associated type `Output` (from the trait `std::ops::BitXor`) must be specified\n  --> /checkout/src/test/ui/issues/issue-28344.rs:18:13\n   |\nLL |     let g = BitXor::bitor;\n   |             ^^^^^^^^^^^^^ associated type `Output` must be specified\n\n"}
[00:49:07] {"message":"no function or associated item named `bitor` found for type `dyn std::ops::Bage":"For more information about an error, try `rustc --explain E0191`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0191`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-28344.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-28586.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no associated item named `BYTES` found for type `usize` in the current scope
[00:49:07] +   --> $DIR/issue-28586.rs:14:19
[00:49:07] 3    |
[00:49:07] 3    |
[00:49:07] 4 LL | impl Foo for [u8; usize::BYTES] {}
[00:49:07] -    |                   |
[00:49:07] -    |                   associated item not found in `usize`
[00:49:07] +    |                   ^^^^^^^^^^^^ associated item not found in `usize`
[00:49:07] 8 
[00:49:07] 8 
[00:49:07] 9 error: aborting due to previous error
[00:49:07] 10 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-28586/issue-28586.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args issues/issue-28586.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/bui `usize` in the current scope\n  --> /checkout/src/test/ui/issues/issue-28586.rs:14:19\n   |\nLL | impl Foo for [u8; usize::BYTES] {}\n   |                   ^^^^^^^^^^^^ associated item not found in `usize`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-28586.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-28971.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no variant named `Baz` found for type `Foo` in the current scope
[00:49:07] +   --> $DIR/issue-28971.rs:19:13
[00:49:07] 3    |
[00:49:07] 3    |
[00:49:07] 4 LL | enum Foo {
[00:49:07] 5    | -------- variant `Baz` not found here
[00:49:07] 6 ...
[00:49:07] 6 ...
[00:49:07] 7 LL |             Foo::Baz(..) => (),
[00:49:07] -    |             -----^^^---- variant not found in `Foo`
[00:49:07] +    |             ^^^^^^^^^^^^ variant not found in `Foo`
[00:49:07] -    = help: did you mean `Bar`?
[00:49:07] -    = help: did you mean `Bar`?
[00:49:07] +    = note: did you mean `Foo::Bar`?
[00:49:07] 12 error: aborting due to previous error
[00:49:07] 13 
[00:49:07] 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-28971/issue-28971.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args issues/issue-28971.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-28971.rs" "--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-28971/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-28971/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no variant named `Baz` found for type `Foo` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level"unction or associated item named `new_undirected` found for type `issue_30123_aux::Graph<i32, i32>` in the current scope\n  --> /checkout/src/test/ui/issues/issue-30123.rs:17:14\n   |\nLL |     let ug = Graph::<i32, i32>::new_undirected();\n   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `issue_30123_aux::Graph<i32, i32>`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-30123.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-38919.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no associated item named `Item` found for type `T` in the current scope
[00:49:07] -   --> $DIR/issue-38919.rs:12:8
[00:49:07] +   --> $DIR/issue-38919.rs:12:5
[00:49:07] 3    |
[00:49:07] 4 LL |     T::Item; //~ ERROR no associated item named `Item` found for type `T` in the current scope
[00:49:07] -    |     ---^^^^
[00:49:07] -    |     associated item not found in `T`
[00:49:07] +    |     ^^^^^^^ associated item not found in `T`
[00:49:07] 8 
[00:49:07] 9 error: aborting due to previous error
[00:49:07] 9 error: aborting due to previous error
[00:49:07] 10 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-38919/issue-38919.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args issues/issue-38919.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-38919.rs" "--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-38919/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-38919/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no associated item named `Item` found for type `T` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/issues/issue-38919.rs","byte_start":495,"byte_end":502,"line_start":12,"line_end":12,"column_start":5,"column_end":12,"is_primary":true,"text":[{"text":"    T::Item; //~ ERROR no associated item named `Item` found for type `T` in the current scope","highlight_start":5,"highlight_end":12}],"label":"associated item not found in `T`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `Item` found for type `T` in the current scope\n  --> /checkout/src/test/ui/issues/issue-38919.rs:12:5\n   |\nLL |     T::Item; //~ ERROR no associated item named `Item` found for type `T` in the current scope\n   |     ^^^^^^^ associated item not found in `T`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/issues/issue-38919.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/issues/issue-39559.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no function or associated item named `dim` found for type `D` in the current scop        ^^^^^^ function or associated item not found in `D`\n   |\n   = help: items from traits can only be used if the trait is implemented and in scope\n   = note: the following trait defines an item `dim`, perhaps you need to implement it:\n           candidate #1: `Dim`\n\n"}
[00:49:07] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
---
[00:49:07] 29 error[E0599]: no function or associated item named `from_str` found for type `u32` in the current scope
[00:49:07] -   --> $DIR/trait-import-suggestions.rs:40:18
[00:49:07] +   --> $DIR/trait-import-suggestions.rs:40:13
[00:49:07] 31    |
[00:49:07] 32 LL |     let y = u32::from_str("33"); //~ ERROR no function or associated item named `from_str`
[00:49:07] -    |             |
[00:49:07] -    |             function or associated item not found in `u32`
[00:49:07] -    |             function or associated item not found in `u32`
[00:49:07] +    |             ^^^^^^^^^^^^^ function or associated item not found in `u32`
[00:49:07] 37    = help: items from traits can only be used if the trait is in scope
[00:49:07] 38 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
[00:49:07] 
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rust-2018/trait-import-suggestions/trait-import-suggestions.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args rust-2018/trait-import-suggestions.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/onsion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following trait is implemented but not in scope, perhaps add a `use` for it:\n`use crate::foo::foobar::Foobar;`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `foobar` found for type `u32` in the current scope\n  --> /checkout/src/test/ui/rust-2018/trait-import-suggestions.rs:32:11\n   |\nLL |         x.foobar(); //~ ERROR no method named `foobar`\n   |           ^^^^^^\n   |\n   = help: items from traits can only be used if the trait is in scope\n   = note: the following trait is implemented but not in scope, perhaps add a `use` for it:\n           `use crate::foo::foobar::Foobar;`\n\n"}
[00:49:07] {"message":"no method named `bar` found for type `u32` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/rust-2018/trait-import-suggestions.rs","byte_start":952,"byte_end":955,"line_start":38,"line_end":38,"column_start":7,"column_end":10,"is_primary":true,"text":[{"text":"    x.bar(); //~ ERROR no method named `bar`","highlight_start":7,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicabilit/ui/rust-2018/trait-import-suggestions.rs","byte_start":997,"byte_end":1000,"line_start":39,"line_end":39,"column_start":7,"column_end":10,"is_primary":true,"text":[{"text":"    x.baz(); //~ ERROR no method named `baz`","highlight_start":7,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no method named `baz` found for type `u32` in the current scope\n  --> /checkout/src/test/ui/rust-2018/trait-import-suggestions.rs:39:7\n   |\nLL |     x.baz(); //~ ERROR no method named `baz`\n   |       ^^^\n\n"}
[00:49:07] {"message":"no function or associated item named `from_str` found for type `u32` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/rust-2018/trait-import-suggestions.rs","byte_start":1048,"byte_end":1061,"line_start":40,"line_end":40,"column_start":13,"column_end":26,"is_primary":true,"text":[{"text":"    let y = u32::from_str(\"33\"); //~ ERROR no function or associated item named `from_str`","highlight_start":13,"highlight_end":26}],"label":"function or associated item not found in `u32`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following trait is implemented but not in scope, perhaps add a `use` for it:","code":null,"level":"help","spans":[{"file_name":"/checkout/src/test/ui/rust-2018/trait-import-suggestions.rs","byte_start":576,"byte_end":576,"line_start":15,"line_end":15,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"mod foo {","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use std::str::FromStr;\n\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no function or associated item named `from_str` found for type `u32` in the current scope\n  --> /checkout/src/test/ui/rust-2018/trait-import-suggestions.rs:40:13\n   |\nLL |     let y = u32::from_str(\"33\"); //~ ERROR no function or associated item named `from_str`\n   |             ^^^^^^^^^^^^^ function or associated item not found in `u32`\n   |\n   = help: items from traits can only be used if the trait is in scope\nhelp: the following trait is implemented but not in scope, perhaps add a `use` for it:\n   |\nLL | use std::str::FromStr;\n   |\n\n"}
[00:49:07] {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"}
[00:49:07] {"message":"For more information about this error, try `rustc --explain E0599`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0599`.\n"}
[00:49:07] --------------------------------:49:07] stdout:
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"no method named `a` found for type `S` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":515,"line_start":13,"line_end":13,"column_start":1,"column_end":10,"is_primary":false,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":10}],"label":"method `a` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":1449,"byte_end":1450,"line_start":77,"line_end":77,"column_start":7,"column_end":8,"is_primary":true,"text":[{"text":"    S.a(); //~ ERROR no method named `a` found for type `S` in the current scope","highlight_start":7,"highlight_end":8}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following trait defines an item `a`, perhaps you need to implement it:\ncandidate #1: `method::A`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `a` found for type `S` in the current scope\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:77:7\n   |\nLL | struct S;\n   | --------- method `a` not found for this\n...\nLL |     S.a(); //~ ERROR no method named `a` found for type `S` in the current scope\n   |       ^\n   |\n   = help: items from traits can only be used if the trait is implemented and in scope\n   = note: the following trait defines an item `a`, perhaps you need to implement it:\n           candidate #1: `method::A`\n\n"}
[00:49:07] {"message":"no method named `b` found for type `S` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":515,"line_start":13,"line_end":13,"column_start":1,"column_end":10,"is_primary":false,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":10}],"label":"method `b` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":1530,"byte_end":1531,"line_start":78,"line_end":78,"column_start":7,"column_end":8,"is_primary":true,"text":[{"text":"    S.b(); //~ ERROR no method named `b` found for type `S` in the current scope","highlight_start":7,"highlight_end":8}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following trait is implemented but not in scope, perhaps add a `use` for it:","code":null,"level":"help","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":506,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use method::B;\n\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `b` found for type `S` in the current scope\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:78:7\n   |\nLL | struct S;\n   | --------- method `b` not found for this\n...\nLL |     S.b(); //~ ERROR no method named `b` found for type `S` in the current scope\n   |       ^\n   |\n   = help: items from traits can only be used if the trait is in scope\nhelp: the following trait is implemented but not in scope, perhaps add a `use` for it:\n   |\nLL | use method::B;\n   |\n\n"}
[00:49:07] {"message":"method `a` is private","code":{"code":"E0624","explanation":"\nA private item was used outside of its scope.\n\nErroneous code example:\n\n```compile_fail,ted item `a` not found for this\n...\nLL |     S::a(&S);\n   |     ^^^^ function or associated item not found in `S`\n   |\n   = help: items from traits can only be used if the trait is implemented and in scope\n   = note: the following trait defines an item `a`, perhaps you need to implement it:\n           candidate #1: `method::A`\n\n"}
[00:49:07] {"message":"no function or associated item named `b` found for type `S` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":515,"line_start":13,"line_end":13,"column_start":1,"column_end":10,"is_primary":false,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":10}],"label":"function or associated item `b` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":1999,"byte_end":2003,"line_start":90,"line_end":90,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":"    S::b(&S);","highlight_start":5,"highlight_end":9}],"label":"function or associated item not found in `S`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following trait is implemented but not in scope, perhaps add a `use` for it:","code":null,"level":"help","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":506,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use method::B;\n\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no function or associated item named `b` found for type `S` in the current scope\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:90:5\n   |\nLL | struct S;\n   | --------- function or associated item `b` not found for this\n...\nLL |     S::b(&S);\n   |     ^^^^ function or associated item not found in `S`\n   |\n   = help: items from traits can only be used if the trait is in scope\nhelp: the following trait is implemented but not in scope, perhaps add a `use` for it:\n   |\nLL | use method::B;\n   |\n\n"}
[00:49:07] {"message":"method `a` is private","code":{"code":"E0624","explanation":"\nA private item was used outside of its scope.\n\nErroneous code example:\n\n```compile_fail,E0624\nmod inner {\n    pub struct Foo;\n\n    impl Foo {\n        fn method(&self) {}\n    }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // error: method `method` is private\n```\n\nTwo possibilities are available to solve this issue:\n\n1. Only use the item in the scope it has been defined:\n\n```\nmod innerout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":515,"line_start":13,"line_end":13,"column_start":1,"column_end":10,"is_primary":false,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":10}],"label":"associated item `A` not found for this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":2522,"byte_end":2526,"line_start":107,"line_end":107,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":"    S::A; //~ ERROR no associated item named `A` found for type `S` in the current scope","highlight_start":5,"highlight_end":9}],"label":"associated item not found in `S`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following trait defines an item `A`, perhaps you need to implement it:\ncandidate #1: `assoc_const::A`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0599]: no associated item named `A` found for type `S` in the current scope\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:107:5\n   |\nLL | struct S;\n   | --------- associated item `A` not found for this\n...\nLL |     S::A; //~ ERROR no associated item named `A` found for type `S` in the current scope\n   |     ^^^^ associated item not found in `S`\n   |\n   = help: items from traits can only be used if the trait is implemented and in scope\n   = for it:","code":null,"level":"help","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":506,"byte_end":506,"line_start":13,"line_end":13,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"struct S;","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"use assoc_const::B;\n\n","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no associated item named `B` found for type `S` in the current scope\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:108:5\n   |\nLL | struct S;\n   | --------- associated item `B` not found for this\n...\nLL |     S::B; //~ ERROR no associated item named `B` found for type `S` in the current scope\n   |     ^^^^ associated item not found in `S`\n   |\n   = help: items from traits can only be used if the trait is in scope\nhelp: the following trait is implemented but not in scope, perhaps add a `use` for it:\n   |\nLL | use assoc_const::B;\n   |\n\n"}
[00:49:07] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:503:22
[00:49:07] {"message":"associated constant `A` is private","code":{"code":"E0624","explanation":"\nA private item was used outside of its scope.\n\nErroneous code example:\n\n```compile_fail,E0624\nmod inner {\n    pub struct Foo;\n\n    impl Foo {\n        fn method(&self) {}\n    }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // error: method `method` is private\n```\n\nTwo possibilities are available to solve this issue:\n\n1. Only use the item in the scope it has been defined:\n\n```\nmod inner {\n    pub struct Foo;\n\n    impl Foo {\n        fn method(&self) {}\n    }\n\n    pub fn call_method(foo: &Foo) { // We create a public function.\n        foo.method(); // Which calls the item.\n    }\n}\n\nlet foo = inner::Foo;\ninner::call_method(&foo); // And since the function is public, we can call the\n                          // method through it.\n```\n\n2. Make the item public:\n\n```\nmod inner {\n    pub struct Foo;\n\n    impl Foo {\n        pub fn method(&self) {} // It's now public.\n    }\n}\n\nlet foo = inner::Foo;\nfoo.method(); // Ok!\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":2802,"byte_end":2806,"line_start":111,"line_end":111,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":"    C::A; //~ ERROR associated constant `A` is private","highlight_start":5,"highlight_end":9}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0624]: associated constant `A` is private\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:111:5\n   |\nLL |     C::A; //~ ERROR associated constant `A` is private\n   |     ^^^^\n\n"}
[00:49:07] {"message":"the trait `assoc_const::C` cannot be made into an object","code":{"code":"E0038","explanation":"\nTrait objects like `Box<Trait>` can only be constructed when certain\nrequirements are satisfied by the trait in question.\n\nTrait objects are a form of dynamic dispatch and use a dynamically sized type\nfor the inner type. So, for a given trait `Trait`, when `Trait` is treated as a\ntype, as in `Box<Trait>`, the inner type hods of\n`Trait`, we need to create such a table, for each different type fed to\n`foo()`. In this case this turns out to be (10 types implementing `Trait`)*(3\ntypes being fed to `foo()`) = 30 implementations!\n\nWith real world traits these numbers can grow drastically.\n\nTo fix this, it is suggested to use a `where Self: Sized` bound similar to the\nfix for the sub-error above if you do not intend to call the method with type\nparameters:\n\n```\ntrait Trait {\n    fn foo<T>(&self, on: T) where Self: Sized;\n    // more methods\n}\n```\n\nIf this is not an option, consider replacing the type parameter with another\ntrait object (e.g., if `T: OtherTrait`, use `on: Box<OtherTrait>`). If the\nnumber of types you intend to feed to this method is limited, consider manually\nlisting out the methods of different types.\n\n### Method has no receiver\n\nMethods that do not take a `self` parameter can't be called since there won't be\na way to get a pointer to the method table for them.\n\n```\ntrait Foo {\n    fn foo() -> u8;\n}\n```\n\nThis could be called as `<Foo as Foo>::foo()`, which would not be able to pick\nan implementation.\n\nAdding a `Self: Sized` bound to these methods will generally make this compile.\n\n```\ntrait Foo {\n    fn foo() -> u8 where Self: Sized;\n}\n```\n\n### The trait cannot contain associated constants\n\nJust like static functions, associated constants aren't stored on the method\ntable. If the trait or any subtrait contain an associated constant, they cannot\nbe made into an object.\n\n```compile_fail,E0038\ntrait Foo {\n    const X: i32;\n}\n\nimpl Foo {}\n```\n\nA simple workaround is to use a helper method instead:\n\n```\ntrait Foo {\n    fn x(&self) -> i32;\n}\n```\n\n### The trait cannot use `Self` as a type parameter in the supertrait listing\n\nThis is similar to the second sub-error, but subtler. It happens in situations\nlike the following:\n\n```compile_fail\ntrait Super<A> {}\n\ntrait Trait: Super<Self> {\n}\n\nstruct Foo;\n\nimpl Super<Foo> for Foo{}\n\nimpl Trait for Foo {}\n```\n\nHere, the supertrait might have methods as follows:\n\n```\ntrait Super<A> {\n    fn get_a(&self) -> A; // note that this is object safe!\n}\n```\n\nIf the trait `Foo` was deriving from something like `Super<String>` or\n`Super<T>` (where `Foo` itself is `Foo<T>`), this is okay, because given a type\n`get_a()` will definitely return an object of that type.\n\nHowever, if it derives from `Super<Self>`, even though `Super` is object safe,\nthe method `get_a()` would return an object of unknown type when called on the\nfunction. `Self` type parameters let us make object safe traits no longer safe,\nso they are forbidden when specifying supertraits.\n\nThere's no easy fix for this, generally code will need to be refactored so that\nyou no longer need to derive from `Super<Self>`.\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":2802,"byte_end":2806,"line_start":111,"line_end":111,"column_start":5,"column_end":9,"is_primary":true,"text":[{"text":"    C::A; //~ ERROR associated constant `A` is private","highlight_start":5,"highlight_end":9}],"label":"the trait `assoc_const::C` cannot be made into an object","suggested_replacement":null,"suggestion_applicability":null,"expansin```compile_fail,E0223\ntrait MyTrait {type X; }\n\nfn main() {\n    let foo: MyTrait::X;\n}\n```\n\nThe problem here is that we're attempting to take the type of X from MyTrait.\nUnfortunately, the type of X is not defined, because it's only made concrete in\nimplementations of the trait. A working version of this code might look like:\n\n```\ntrait MyTrait {type X; }\nstruct MyStruct;\n\nimpl MyTrait for MyStruct {\n    type X = u32;\n}\n\nfn main() {\n    let foo: <MyStruct as MyTrait>::X;\n}\n```\n\nThis syntax specifies that we want the X type from MyTrait, as made concrete in\nMyStruct. The reason that we cannot simply use `MyStruct::X` is that MyStruct\nmight implement two different traits with identically-named associated types.\nThis syntax allows disambiguation between the two.\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":3356,"byte_end":3360,"line_start":126,"line_end":126,"column_start":12,"column_end":16,"is_primary":true,"text":[{"text":"    let _: S::B; //~ ERROR ambiguous associated type","highlight_start":12,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"use fully-qualified syntax","code":null,"level":"help","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":3356,"byte_end":3360,"line_start":126,"line_end":126,"column_start":12,"column_end":16,"is_primary":true,"text":[{"text":"    let _: S::B; //~ ERROR ambiguous associated type","highlight_start":12,"highlight_end":16}],"label":null,"suggested_replacement":"<S as Trait>::B","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0223]: ambiguous associated type\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:126:12\n   |\nLL |     let _: S::B; //~ ERROR ambiguous associated type\n   |            ^^^^ help: use fully-qualified syntax: `<S as Trait>::B`\n\n"}
[00:49:07] {"message":"ambiguous associated type","code":{"code":"E0223","explanation":"\nAn attempt was made to retrieve an associated type, but the type was ambiguous.\nFor example:\n\n```compile_fail,E0223\ntrait MyTrait {type X; }\n\nfn main() {\n    let foo: MyTrait::X;\n}\n```\n\nThe problem here is that we're attempting to take the type of X from MyTrait.\nUnfortunately, the type of X is not defined, because it's only made concrete in\nimplementations of the trait. A working version of this code might look like:\n\n```\ntrait MyTrait {type X; }\nstruct MyStruct;\n\nimpl MyTrait for MyStruct {\n    type X = u32;\n}\n\nfn main() {\n    let foo: <MyStruct as MyTrait>::X;\n}\n```\n\nThis syntax specifies that we want the X type from MyTrait, as made concrete in\nMyStruct. The reason that we cannot simply use `MyStruct::X` is that MyStruct\nmight implement two different traits with identically-named associated types.\nThis syntax allows disambiguation between the two.\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":3409,"byte_end":3413,"line_start":127,"line_end":127,"column_start":12,"column_end":16,"is_primary":true,"text":[{"text":"    let _: S::C; //~ ERROR ambiguous associated type","highlight_start":12ssociated type `A` is private","code":null,"level":"error","spans":[{"file_name":"/checkout/src/test/ui/traits/trait-item-privacy.rs","byte_start":3751,"byte_end":3757,"line_start":138,"line_end":138,"column_start":9,"column_end":15,"is_primary":true,"text":[{"text":"        A = u8, //~ ERROR associated type `A` is private","highlight_start":9,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: associated type `A` is private\n  --> /checkout/src/test/ui/traits/trait-item-privacy.rs:138:9\n   |\nLL |         A = u8, //~ ERROR associated type `A` is private\n   |         ^^^^^^\n\n"}
[00:49:07] {"message":"aborting due to 15 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 15 previous errors\n\n"}
[00:49:07] {"message":"Some errors occurred: E0038, E0223, E0599, E0624.","code":null,"level":"","spans":[],"children":[],"rendered":"Some errors occurred: E0038, E0223, E0599, E0624.\n"}
[00:49:07] {"message":"For more information about an error, try `rustc --explain E0038`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0038`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/traits/trait-item-privacy.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/ufcs/ufcs-partially-resolved.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 187    |            ^^^^^^^^^^^^^^^^^  `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args ufcs/ufcs-partially-resolved.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
[00:49:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs" "--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/ufcs/ufcs-partially-resolved/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/ufcs/ufcs-partially-resolved/auxiliary" "-A" "unused"
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] ------------------------------------------
[00:49:07] stderr:
[00:49:07] stderr:
[00:49:07] ------------------------------------------
[00:49:07] {"message":"failed to resolve: not a module `Y`","code":{"code":"E0433","explanation":"\nAn undeclared type or module was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type or module `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2820,"byte_end":2821,"line_start":58,"line_end":58,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let _: <u8 as E::Y>::NN; //~ ERROR failed to resolve: not a module `Y`","highlight_start":22,"highlight_end":23}],"label":"not a module `Y`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0433]: failed to resolve: not a module `Y`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:58:22\n   |\nLL |     let _: <u8 as E::Y>::NN; //~ ERROR failed to resolve: not a module `Y`\n   |                      ^ not a module `Y`\n\n"}
[00:49:07] {"message":"failed to resolve: not a module `Y`","code":{"code":"E0433","explanation":"\nAn undeclared type or module was used.\n\nErroneous code example:\n\n```compile_fail,E0433\nlet map = HashMap::new();\n// error: failed to resolve: use of undeclared type or module `HashMap`\n```\n\nPlease verify you didn't misspell the type/module's name or that you didn't\nforget to import it:\n\n\n```\nuse std::collections::HashMap; // HashMap has been imported.\nlet map: HashMap<u32, u32> = HashMap::new(); // So it can be used!\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2979,"byte_end":2980,"line_start":60,"line_end":60,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":"    <u8 as E::Y>::NN; //~ ERROR failed to resolve: not a module `Y`","highlight_start":15,"highlight_end":16}],"label":"not a module `Y`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0433]:"    <u8 as A>::N; //~ ERROR cannot find method or associated constant `N` in `A`","highlight_start":16,"highlight_end":17}],"label":"not found in `A`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find method or associated constant `N` in `A`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:34:16\n   |\nLL |     <u8 as A>::N; //~ ERROR cannot find method or associated constant `N` in `A`\n   |                ^ not found in `A`\n\n"}
[00:49:07] {"message":"expected associated type, found variant `E::Y`","code":{"code":"E0575","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":1208,"byte_end":1220,"line_start":36,"line_end":36,"column_start":12,"column_end":24,"is_primary":true,"text":[{"text":"    let _: <u8 as E>::Y; //~ ERROR expected associated type, found variant `E::Y`","highlight_start":12,"highlight_end":24}],"label":"not a associated type","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0575]: expected associated type, found variant `E::Y`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:36:12\n   |\nLL |     let _: <u8 as E>::Y; //~ ERROR expected associated type, found variant `E::Y`\n   |            ^^^^^^^^^^^^ not a associated type\n\n"}
[00:49:07] {"message":"expected method or associated constant, found unit variant `E::Y`","code":{"code":"E0575","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":1308,"byte_end":1320,"line_start":38,"line_end":38,"column_start":5,"column_end":17,"is_primary":true,"text":[{"text":"    <u8 as E>::Y; //~ ERROR expected method or associated constant, found unit variant `E::Y`","highlight_start":5,"highlight_end":17}],"label":"not a method or associated constant","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0575]: expected method or associated constant, found unit variant `E::Y`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:38:5\n   |\nLL |     <u8 as E>::Y; //~ ERROR expected method or associated constant, found unit variant `E::Y`\n   |     ^^^^^^^^^^^^ not a method or associated constant\n\n"}
[00:49:07] {"message":"cannot find associated type `N` in trait `Tr`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":1422,"byte_end":1423,"line_start":40,"line_end":40,"column_start":24,"column_end":25,"is_primary":true,"text":[{"text":"    let _: <u8 as Tr>::N::NN; //~ ERROR cannot find associated type `N` in trait `Tr`","highlight_start":24,"highlight_end":25}],"label":"did you mean `Y`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find associated type `N` in trait `Tr`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:40:24\n   |\nLL |     let _: <u8 as Tr>::N::NN; //~ ERROR cannot find associated type `N` in trait `Tr`\n   |                        ^ did you mean `Y`?\n\n"}
[00:49:07] {"message":"cannot find associated type `N` in enum `E`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":1507,"byte_end":1508,"line_start":41,"line_end":41,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":"    let _: <u8 as E>::N::NN; //~ ERROR cannot find associated type `N` in enum `E`","highlight_start":23,"highlight_end":24}],"label":"not found in `E`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find associated type `N` in enum `E`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:41:23\n   |\nLL |     let _: <u8 as E>::N::NN; //~ ERROR cannot find associated type `N` in enum `E`\n   |                       ^ not found in `E`\n\n"}
[00:49:07] {"message":"cannot find associated type `N` in `A`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":1590,"byte_end":1591,"line_start":42,"line_end":42,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":"    let _: <u8 as A>::N::NN; //~ ERROR cannot find associated type `N` in `A`","highlight_start":23,"highlight_end":24}],"label":"not found in `A`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find associated type `N` in `A`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:42:23\n   |\nLL |     let _: <u8 as A>::N::NN; //~ ERROR cannot find associated type `N` in `A`\n   |                   12\n   |\nLL |     let _: <u8 as E>::Y::NN; //~ ERROR expected associated type, found variant `E::Y`\n   |            ^^^^^^^^^^^^^^^^ not a associated type\n\n"}
[00:49:07] {"message":"expected associated type, found variant `E::Y`","code":{"code":"E0575","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2122,"byte_end":2138,"line_start":49,"line_end":49,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    <u8 as E>::Y::NN; //~ ERROR expected associated type, found variant `E::Y`","highlight_start":5,"highlight_end":21}],"label":"not a associated type","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0575]: expected associated type, found variant `E::Y`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:49:5\n   |\nLL |     <u8 as E>::Y::NN; //~ ERROR expected associated type, found variant `E::Y`\n   |     ^^^^^^^^^^^^^^^^ not a associated type\n\n"}
[00:49:07] {"message":"cannot find associated type `NN` in `Tr::N`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2224,"byte_end":2226,"line_start":51,"line_end":51,"column_start":27,"column_end":29,"is_primary":true,"text":[{"text":"    let _: <u8 as Tr::N>::NN; //~ ERROR cannot find associated type `NN` in `Tr::N`","highlight_start":27,"highlight_end":29}],"label":"not found in `Tr::N`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find associated type `NN` in `Tr::N`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:51:27\n   |\nLL |     let _: <u8 as Tr::N>::NN; //~ ERROR cannot find associated type `NN` in `Tr::N`\n   |                           ^^ not found in `Tr::N`\n\n"}
[00:49:07] {"message":"cannot find associated type `NN` in `E::N`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2307,"byte_end":2309,"line_start":52,"line_end":52,"column_start":26,"column_end":28,"is_primary":true,"text":[{"text":"    let _: <u8 as E::N>::NN; //~ ERROR cannot find associated type `NN` in `E::N`","highlight_start":26,"highlight_end":28}],"label":"not found in `E::N`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find associated type `NN` in `E::N`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:52:26\n   |\nLL |     let _: <u8 as E::N>::NN; //~ ERROR cannot find associated type `NN` in `E::N`\n   |                          ^^ not found in `E::N`\n\n"}
[00:49:07] {"message":"cannot find associated type `NN` in `A::N`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2389,"byte_end":2391,"line_start":53,"line_end":53,"column_start":26,"column_end":28,"is_primary":true,"text":[{"text":"    let _: <u8 as A::N>::NN; //~ ERROR cannot find associated type `NN` in `A::N`","highlight_start":26,"highlight_end":28}],"label":"not found in `A::N`","suggested_rep E::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `E::N`","highlight_start":19,"highlight_end":21}],"label":"not found in `E::N`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find method or associated constant `NN` in `E::N`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:55:19\n   |\nLL |     <u8 as E::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `E::N`\n   |                   ^^ not found in `E::N`\n\n"}
[00:49:07] {"message":"cannot find method or associated constant `NN` in `A::N`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":2644,"byte_end":2646,"line_start":56,"line_end":56,"column_start":19,"column_end":21,"is_primary":true,"text":[{"text":"    <u8 as A::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `A::N`","highlight_start":19,"highlight_end":21}],"label":"not found in `A::N`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0576]: cannot find method or associated constant `NN` in `A::N`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:56:19\n   |\nLL |     <u8 as A::N>::NN; //~ ERROR cannot find method or associated constant `NN` in `A::N`\n   |                   ^^ not found in `A::N`\n\n"}
[00:49:07] {"message":"cannot find associated type `NN` in `Tr::Y`","code":{"code":"E0576","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partiallciated type, found method `Dr::Z`","code":{"code":"E0575","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":3057,"byte_end":3058,"line_start":62,"line_end":62,"column_start":24,"column_end":25,"is_primary":false,"text":[{"text":"    let _: <u8 as Dr>::Z; //~ ERROR expected associated type, found method `Dr::Z`","highlight_start":24,"highlight_end":25}],"label":"did you mean `X`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":3045,"byte_end":3058,"line_start":62,"line_end":62,"column_start":12,"column_end":25,"is_primary":true,"text":[{"text":"    let _: <u8 as Dr>::Z; //~ ERROR expected associated type, found method `Dr::Z`","highlight_start":12,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0575]: expected associated type, found method `Dr::Z`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:62:12\n   |\nLL |     let _: <u8 as Dr>::Z; //~ ERROR expected associated type, found method `Dr::Z`\n   |            ^^^^^^^^^^^^-\n   |                        |\n   |                        did you mean `X`?\n\n"}
[00:49:07] {"message":"expected method or associated constant, found associated type `Dr::X`","code":{"code":"E0575","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":3133,"byte_end":3134,"line_start":63,"line_end":63,"column_start":17,"column_end":18,"is_primary":false,"text":[{"text":"    <u8 as Dr>::X; //~ ERROR expected method or associated constant, found associated type `Dr::X`","highlight_start":17,"highlight_end":18}],"label":"did you mean `Z`?","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":3121,"byte_end":3134,"line_start":63,"line_end":63,"column_start":5,"column_end":18,"is_primary":true,"text":[{"text":"    <u8 as Dr>::X; //~ ERROR expected method or associated constant, found associated type `Dr::X`","highlight_start":5,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"can't use a type alias as a constructor","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0575]: expected method or associated constant, found associated type `Dr::X`\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:63:5\n   |\nLL |     <u8 as Dr>::X; //~ ERROR expected method or associated constant, found associated type `Dr::X`\n   |     ^^^^^^^^^^^^-\n   |                 |\n   |                 did you mean `Z`?\n   |\n   = note: can't use a type alias as a constructor\n\n"}
[00:49:07] {"message":"expected associated type, found method `Dr::Z`","code":{"code":"E0575","explanation":null},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":3239,"byte_end":3240,"line_start":64,"line_end":64,"column_start":24,"column_end":25,"is_primary":false,"text":[{"text":"    let _: <u8 as Dr>::Z::N; e` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs","byte_start":3306,"byte_end":3322,"line_start":65,"line_end":65,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    <u8 as Dr>::X::N; //~ ERROR no associated item named `N` found for type `<u8 as Dr>::X`","highlight_start":5,"highlight_end":21}],"label":"associated item not found in `<u8 as Dr>::X`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no associated item named `N` found for type `<u8 as Dr>::X` in the current scope\n  --> /checkout/src/test/ui/ufcs/ufcs-partially-resolved.rs:65:5\n   |\nLL |     <u8 as Dr>::X::N; //~ ERROR no associated item named `N` found for type `<u8 as Dr>::X`\n   |     ^^^^^^^^^^^^^^^^ associated item not found in `<u8 as Dr>::X`\n\n"}
[00:49:07] {"message":"aborting due to 32 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 32 previous errors\n\n"}
[00:49:07] {"message":"Some errors occurred: E0223, E0433, E0575, E0576, E0599.","code":null,"level":"","spans":[],"children":[],"rendered":"Some errors occurred: E0223, E0433, E0575, E0576, E0599.\n"}
[00:49:07] {"message":"For more information about an error, try `rustc --explain E0223`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0223`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/ufcs/ufcs-partially-resolved.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
[00:49:07] 
[00:49:07] ---- [ui] ui/unspecified-self-in-trait-ref.rs stdout ----
[00:49:07] diff of stderr:
[00:49:07] 
[00:49:07] 1 error[E0599]: no function or associated item named `lol` found for type `dyn Foo<_>` in the current scope
[00:49:07] +   --> $DIR/unspecified-self-in-trait-ref.rs:20:13
[00:49:07] 3    |
[00:49:07] 3    |
[00:49:07] 4 LL |     let a = Foo::lol();
[00:49:07] -    |             |
[00:49:07] -    |             |
[00:49:07] -    |             function or associated item not found in `dyn Foo<_>`
[00:49:07] +    |             ^^^^^^^^ function or associated item not found in `dyn Foo<_>`
[00:49:07] 8 
[00:49:07] 9 error[E0599]: no function or associated item named `lol` found for type `dyn Foo<_>` in the current scope
[00:49:07] +   --> $DIR/unspecified-self-in-trait-ref.rs:22:13
[00:49:07] 11    |
[00:49:07] 11    |
[00:49:07] 12 LL |     let b = Foo::<_>::lol();
[00:49:07] -    |             |
[00:49:07] -    |             |
[00:49:07] -    |             function or associated item not found in `dyn Foo<_>`
[00:49:07] +    |             ^^^^^^^^^^^^^ function or associated item not found in `dyn Foo<_>`
[00:49:07] 16 
[00:49:07] 17 error[E0599]: no function or associated item named `lol` found for type `dyn Bar<_, _>` in the current scope
[00:49:07] +   --> $DIR/unspecified-self-in-trait-ref.rs:24:13
[00:49:07] 19    |
[00:49:07] 19    |
[00:49:07] 20 LL |     let c = Bar::lol();
[00:49:07] -    |             |
[00:49:07] -    |             |
[00:49:07] -    |             function or associated item not found in `dyn Bar<_, _>`
[00:49:07] +    |             ^^^^^^^^ function or associated item not found in `dyn Bar<_, _>`
[00:49:07] 24 
[00:49:07] 25 error[E0599]: no function or associated item named `lol` found for type `dyn Bar<usize, _>` in the current scope
[00:49:07] +   --> $DIR/unspecified-self-in-trait-ref.rs:26:13
[00:49:07] 27    |
[00:49:07] 27    |
[00:49:07] 28 LL |     let d = Bar::<usize, _>::lol();
[00:49:07] -    |             |
[00:49:07] -    |             |
[00:49:07] -    |             function or associated item not found in `dyn Bar<usize, _>`
[00:49:07] +    |             ^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `dyn Bar<usize, _>`
[00:49:07] 32 
[00:49:07] 33 error[E0393]: the type parameter `A` must be explicitly specified
[00:49:07] 
[00:49:07] 
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] The actual stderr differed from the expected stderr.
[00:49:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/unspecified-self-in-trait-ref/unspecified-self-in-trait-ref.stderr
[00:49:07] To update references, rerun the tests and pass the `--bless` flag
[00:49:07] To only update this specific test, also pass `--test-args unspecified-self-in-trait-ref.rs`
[00:49:07] error: 1 errors occurred comparing output.
[00:49:07] status: exit code: 1
[00:49:07] status: exit code: 1
 Bar<_, _>` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/unspecified-self-in-trait-ref.rs","byte_start":749,"byte_end":757,"line_start":24,"line_end":24,"column_start":13,"column_end":21,"is_primary":true,"text":[{"text":"    let c = Bar::lol();","highlight_start":13,"highlight_end":21}],"label":"function or associated item not found in `dyn Bar<_, _>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no function or associated item named `lol` found for type `dyn Bar<_, _>` in the current scope\n  --> /checkout/src/test/ui/unspecified-self-in-trait-ref.rs:24:13\n   |\nLL |     let c = Bar::lol();\n   |             ^^^^^^^^ function or associated item not found in `dyn Bar<_, _>`\n\n"}
[00:49:07] {"message":"no function or associated item named `lol` found for type `dyn Bar<usize, _>` in the current scope","code":{"code":"E0599","explanation":"\nThis error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n               //        in the current scope\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/unspecified-self-in-trait-ref.rs","byte_start":825,"byte_end":845,"line_start":26,"line_end":26,"column_start":13,"column_end":33,"is_primary":true,"text":[{"text":"    let d = Bar::<usize, _>::lol();","highlight_start":13,"highlight_end":33}],"label":"function or associated item not found in `dyn Bar<usize, _>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no function or associated item named `lol` found for type `dyn Bar<usize, _>` in the current scope\n  --> /checkout/src/test/ui/unspecified-self-in-trait-ref.rs:26:13\n   |\nLL |     let d = Bar::<usize, _>::lol();\n   |             ^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `dyn Bar<usize, _>`\n\n"}
[00:49:07] {"message":"the type parameter `A` must be explicitly specified","code":{"code":"E0393","explanation":"\nA type parameter which references `Self` in its default value was not specified.\nExample of erroneous code:\n\n```compile_fail,E0393\ntrait A<T=Self> {}\n\nfn together_we_will_rule_the_galaxy(son: &A) {}\n// error: the type parameter `T` must be explicitly specified in an\n//        object type because its default value `Self` references the\n//        type `Self`\n```\n\nA trait object is defined over a single, fully-defined trait. With a regular\ndefault parameter, this parameter can just be substituted in. However, if the\ndefault parameter is `Self`, the trait changes for each concrete type; i.e.\n`i32` will be expected to implement `A<i32>`, `bool` will be expected to\nimplement `A<bool>`, etc... These types will not share an implementation of a\nfully-definull,"level":"","spans":[],"children":[],"rendered":"Some errors occurred: E0393, E0599.\n"}
[00:49:07] {"message":"For more information about an error, try `rustc --explain E0393`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0393`.\n"}
[00:49:07] ------------------------------------------
[00:49:07] 
[00:49:07] thread '[ui] ui/unspecified-self-in-trait-ref.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3284:9
[00:49:07] 
---
[00:49:07] 
[00:49:07] 
[00:49:07] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:49:07] Build completed unsuccessfully in 0:03:58
[00:49:07] Makefile:58: recipe for target 'check' failed
[00:49:07] make: *** [check] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:00448f5f
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Dec  7 03:31:09 UTC 2018
---
travis_fold:end:after_failure.1
travis_fold:start:after_failure.2
travis_time:start:08f1d906
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
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:1b054897
$ 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)

@alexreg alexreg force-pushed the alexreg:cosmetic-1 branch from b26b7ac to fa5eedd Dec 7, 2018

@rust-highfive

This comment was marked as resolved.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:1dd45344:start=1544206054859696424,finish=1544206057651895664,duration=2792199240
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
travis_time:start:test_codegen
Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[00:52:31] 
[00:52:31] running 120 tests
[00:52:34] i..ii...iii...iiii....i...i..........i..iii.............i.....i.....ii...i..i.ii..............i...ii 100/120
[00:52:34] ..ii.i.....iiii.....
[00:52:34] 
[00:52:34]  finished in 3.385
[00:52:34] travis_fold:end:test_codegen

---
travis_time:start:test_debuginfo
Check compiletest suite=debuginfo mode=debuginfo-both (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[00:52:48] 
[00:52:48] running 118 tests
[00:53:11] .iiiii...i.....i..i...i..i.i..i.i..i.....i..i....i..........iiii.........i.i....i...i.......ii.i.i.i 100/118
[00:53:15] ......iii.i.....ii
[00:53:15] 
[00:53:15]  finished in 26.731
[00:53:15] travis_fold:end:test_debuginfo

---
[01:22:30] 
[01:22:30] 12 3 | no
[01:22:30] 13   | ^^ not found in this scope
[01:22:30] 14 
[01:22:30] - thread '$DIR/failed-doctest-output.rs - OtherStruct (line 27)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:327:13
[01:22:30] + thread '$DIR/failed-doctest-output.rs - OtherStruct (line 27)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:326:13
[01:22:30] 17 
[01:22:30] 17 
[01:22:30] 18 ---- $DIR/failed-doctest-output.rs - SomeStruct (line 21) stdout ----
[01:22:30] 
[01:22:30] 21 thread 'main' panicked at 'oh no', $DIR/failed-doctest-output.rs:3:1
[01:22:30] 23 
[01:22:30] - ', src/librustdoc/test.rs:362:17
[01:22:30] + ', src/librustdoc/test.rs:361:17
[01:22:30] 25 
[01:22:30] 25 
[01:22:30] 26 
[01:22:30] 27 failures:
[01:22:30] 
[01:22:30] 
[01:22:30] The actual stdout differed from the expected stdout.
[01:22:30] Actual stdout saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/failed-doctest-output/failed-doctest-output.stdout
[01:22:30] To update references, rerun the tests and pass the `--bless` flag
[01:22:30] To only update this specific test, also pass `--test-args failed-doctest-output.rs`
[01:22:30] error: 1 errors occurred comparing output.
[01:22:30] status: exit code: 101
[01:22:30] status: exit code: 101
[01:22:30] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "/checkout/src/test/rustdoc-ui/failed-doctest-output.rs" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/failed-doctest-output/a" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--test" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/rustdoc-ui/failed-doctest-output/auxiliary"
[01:22:30] ------------------------------------------
[01:22:30] 
[01:22:30] running 2 tests
[01:22:30] test /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - OtherStruct (line 27) ... FAILED
[01:22:30] test /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - OtherStruct (line 27) ... FAILED
[01:22:30] test /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - SomeStruct (line 21) ... FAILED
[01:22:30] failures:
[01:22:30] 
[01:22:30] ---- /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - OtherStruct (line 27) stdout ----
[01:22:30] ---- /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - OtherStruct (line 27) stdout ----
[01:22:30] error[E0425]: cannot find value `no` in this scope
[01:22:30]   |
[01:22:30] 3 | no
[01:22:30]   | ^^ not found in this scope
[01:22:30] 
[01:22:30] 
[01:22:30] thread '/checkout/src/test/rustdoc-ui/failed-doctest-output.rs - OtherStruct (line 27)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:326:13
[01:22:30] note: Run with `RUST_BACKTRACE=1` for a backtrace.
[01:22:30] 
[01:22:30] ---- /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - SomeStruct (line 21) stdout ----
[01:22:30] thread '/checkout/src/test/rustdoc-ui/failed-doctest-output.rs - SomeStruct (line 21)' panicked at 'test executable failed:
[01:22:30] 
[01:22:30] thread 'main' panicked at 'oh no', /checkout/src/test/rustdoc-ui/failed-doctest-output.rs:3:1
[01:22:30] 
[01:22:30] ', src/librustdoc/test.rs:361:17
[01:22:30] 
[01:22:30] 
[01:22:30] 
[01:22:30] failures:
[01:22:30]     /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - OtherStruct (line 27)
[01:22:30]     /checkout/src/test/rustdoc-ui/failed-doctest-output.rs - SomeStruct (line 21)
[01:22:30] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
[01:22:30] 
[01:22:30] 
[01:22:30] ------------------------------------------
---
[01:22:30] test result: FAILED. 9 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
[01:22:30] 
[01:22:30] 
[01:22:30] 
[01:22:30] 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" "--rustdoc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "--src-base" "/checkout/src/test/rustdoc-ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/rustdoc-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" "-Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-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"
[01:22:30] 
[01:22:30] 
[01:22:30] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:22:30] Build completed unsuccessfully in 0:40:16
[01:22:30] Build completed unsuccessfully in 0:40:16
[01:22:30] Makefile:58: recipe for target 'check' failed
[01:22:30] make: *** [check] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:049aefae
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Dec  7 19:30:16 UTC 2018

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)

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 7, 2018

@TimNN Why does @rust-highfive no longer hide CI log comments for out-of-date commits?

@bors

This comment has been minimized.

Contributor

bors commented Dec 7, 2018

鈽旓笍 The latest upstream changes (presumably #56502) made this pull request unmergeable. Please resolve the merge conflicts.

@alexreg alexreg force-pushed the alexreg:cosmetic-1 branch from c47c87e to 99fd42f Dec 7, 2018

@Centril

This comment has been minimized.

Contributor

Centril commented Dec 7, 2018

@bors r+ p=1

Let's get this done quickly so we avoid rebasing over and over again.

@bors

This comment has been minimized.

Contributor

bors commented Dec 7, 2018

馃搶 Commit 99fd42f has been approved by Centril

@rust-highfive

This comment has been minimized.

Collaborator

rust-highfive commented Dec 7, 2018

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.
travis_time:end:0645fb2c:start=1544225124740862255,finish=1544225127469504875,duration=2728642620
$ 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
Setting environment variables from .travis.yml
$ export IMAGE=x86_64-gnu-llvm-5.0
---
[00:05:17]    Compiling rustc_errors v0.0.0 (/checkout/src/librustc_errors)
[00:06:35]    Compiling syntax_ext v0.0.0 (/checkout/src/libsyntax_ext)
[00:12:09]    Compiling rustc_mir v0.0.0 (/checkout/src/librustc_mir)
[00:12:09]    Compiling rustc_typeck v0.0.0 (/checkout/src/librustc_typeck)
[00:12:09] error: missing `fn`, `type`, or `const` for impl-item declaration
[00:12:09]    --> src/librustc_typeck/check/method/suggest.rs:733:10
[00:12:09] 733 |           }
[00:12:09]     |  __________^
[00:12:09]     |  __________^
[00:12:09] 734 | |         tcx.hir().krate().visit_all_item_likes(&mut Visitor {
[00:12:09]     | |________^ missing `fn`, `type`, or `const`
[00:12:09] 
[00:12:09] error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `)`
[00:12:09]    --> src/librustc_typeck/check/method/suggest.rs:737:10
[00:12:09] 737 |         });
[00:12:09]     |          ^ expected one of 11 possible tokens here
[00:12:09] 
[00:12:09] 
[00:12:09] error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `let`
[00:12:09]    --> src/librustc_typeck/check/method/suggest.rs:740:9
[00:12:09] 737 |         });
[00:12:09] 737 |         });
[00:12:09]     |            - expected one of 11 possible tokens here
[00:12:09] ...
[00:12:09] 740 |         let mut external_mods = FxHashSet::default();
[00:12:09]     |         ^^^ unexpected token
[00:12:09] 
[00:12:09] error: expected pattern, found keyword `for`
[00:12:09]    --> src/librustc_typeck/check/method/suggest.rs:750:17
[00:12:09]     |
[00:12:09] 750 |                 for child in tcx.item_children(def_id).iter() {
[00:12:09] 
[00:12:09] error: expected expression, found reserved identifier `_`
[00:12:09]    --> src/librustc_typeck/check/method/suggest.rs:754:13
[00:12:09]     |
[00:12:09]     |
[00:12:09] 754 |             _ => {}
[00:12:09]     |             ^ expected expression
[00:12:09] 
[00:12:10] error[E0407]: method `handle_external_def` is not a member of trait `itemlikevisit::ItemLikeVisitor`
[00:12:10]    --> src/librustc_typeck/check/method/suggest.rs:741:9
[00:12:10] 741 | /         fn handle_external_def(tcx: TyCtxt,
[00:12:10] 742 | |                                traits: &mut Vec<DefId>,
[00:12:10] 742 | |                                traits: &mut Vec<DefId>,
[00:12:10] 743 | |                                external_mods: &mut FxHashSet<DefId>,
[00:12:10] 744 | |                                def: Def) {
[00:12:10] 754 | |             _ => {}
[00:12:10] 755 | |         }
[00:12:10] 755 | |         }
[00:12:10]     | |_________^ not a member of trait `itemlikevisit::ItemLikeVisitor`
[00:12:10] 
[00:12:10] error[E0425]: cannot find function `handle_external_def` in this scope
[00:12:10]    --> src/librustc_typeck/check/method/suggest.rs:762:9
[00:12:10]     |
[00:12:10] 762 |         handle_external_def(tcx, &mut traits, &mut external_mods, Def::Mod(def_id));
[00:12:10] 
[00:12:10] error[E0425]: cannot find value `external_mods` in this scope
[00:12:10]    --> src/librustc_typeck/check/method/suggest.rs:762:52
[00:12:10]     |
[00:12:10]     |
[00:12:10] 762 |         handle_external_def(tcx, &mut traits, &mut external_mods, Def::Mod(def_id));
[00:12:10] 
[00:12:10] 
[00:12:11] error[E0046]: not all trait items implemented, missing: `visit_trait_item`, `visit_impl_item`
[00:12:11]    --> src/librustc_typeck/check/method/suggest.rs:727:5
[00:12:11]     |
[00:12:11] 727 |     impl<'v, 'a, 'tcx> itemlikevisit::ItemLikeVisitor<'v> for Visitor<'a, 'tcx> {
[00:12:11]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `visit_trait_item`, `visit_impl_item` in implementation
[00:12:11]     |
[00:12:11]     = note: `visit_trait_item` from trait: `fn(&mut Self, &'hir rustc::hir::TraitItem)`
[00:12:11]     = note: `visit_impl_item` from trait: `fn(&mut Self, &'hir rustc::hir::ImplItem)`
[00:12:11] error: aborting due to 9 previous errors
[00:12:11] 
[00:12:11] Some errors occurred: E0046, E0407, E0425.
[00:12:11] For more information about an error, try `rustc --explain E0046`.
[00:12:11] For more information about an error, try `rustc --explain E0046`.
[00:12:11] error: Could not compile `rustc_typeck`.
[00:12:11] warning: build failed, waiting for other jobs to finish...
[00:15:06] error: build failed
[00:15:06] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" "" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:15:06] expected success, got: exit code: 101
[00:15:06] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:15:06] Build completed unsuccessfully in 0:11:49
[00:15:06] Makefile:28: recipe for target 'all' failed
[00:15:06] make: *** [all] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0451cf4e
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Dec  7 23:40:43 UTC 2018

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

This comment has been minimized.

Contributor

Centril commented Dec 7, 2018

@bors delegate+

@bors

This comment has been minimized.

Contributor

bors commented Dec 7, 2018

鉁岋笍 @alexreg can now approve this pull request

@rust-highfive

This comment has been minimized.

Collaborator

rust-highfive commented Dec 8, 2018

The job x86_64-gnu-nopt 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.
[01:08:49] 
[01:08:49] ---- [ui (nll)] ui/consts/const-eval/dont_promote_unstable_const_fn.rs stdout ----
[01:08:49] diff of stderr:
[01:08:49] 
[01:08:49] 4 LL | const fn bar() -> u32 { foo() } //~ ERROR `foo` is not yet stable as a const fn
[01:08:49] 6    |
[01:08:49] 6    |
[01:08:49] -    = help: in Nightly builds, add `#![feature(foo)]` to the crate attributes to enable
[01:08:49] +    = help: add `#![feature(foo)]` to the crate attributes to enable
[01:08:49] 8 
[01:08:49] 9 error[E0716]: temporary value dropped while borrowed
[01:08:49] 10   --> $DIR/dont_promote_unstable_const_fn.rs:28:28
[01:08:49] 
[01:08:49] The actual stderr differed from the expected stderr.
[01:08:49] The actual stderr differed from the expected stderr.
[01:08:49] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/dont_promote_unstable_const_fn.nll/dont_promote_unstable_const_fn.nll.stderr
[01:08:49] To update references, rerun the tests and pass the `--bless` flag
[01:08:49] To only update this specific test, also pass `--test-args consts/const-eval/dont_promote_unstable_const_fn.rs`
[01:08:49] error: 1 errors occurred comparing output.
[01:08:49] status: exit code: 1
[01:08:49] status: exit code: 1
[01:08:49] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs" "--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/consts/const-eval/dont_promote_unstable_const_fn.nll/a" "-Zborrowck=migrate" "-Ztwo-phase-borrows" "-Crpath" "-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/consts/const-eval/dont_promote_unstable_const_fn.nll/auxiliary" "-A" "unused"
[01:08:49] ------------------------------------------
[01:08:49] 
[01:08:49] ------------------------------------------
[01:08:49] stderr:
[01:08:49] stderr:
[01:08:49] ------------------------------------------
[01:08:49] {"message":"`foo` is not yet stable as a const fn","code":null,"level":"error","spans":[{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":867,"byte_end":872,"line_start":25,"line_end":25,"column_start":25,"column_end":30,"is_primary":true,"text":[{"text":"const fn bar() -> u32 { foo() } //~ ERROR `foo` is not yet stable as a const fn","highlight_start":25,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"add `#![feature(foo)]` to the crate attributes to enable","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error: `foo` is not yet stable as a const fn\n  --> /checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs:25:25\n   |\nLL | const fn bar() -> u32 { foo() } //~ ERROR `foo` is not yet stable as a const fn\n   |                         ^^^^^\n   |\n   = help: add `#![feature(foo)]` to the crate attributes to enable\n\n"}
[01:08:49] {"message":"temporary value dropped while borrowed","code":{"code":"E0716","explanation":"\nThis error indicates that a temporary value is being dropped\nwhile a borrow is still in active use.\n\nErroneous code example:\n\n```compile_fail,E0716\n# #![feature(nll)]\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet p = bar(&foo());\n         // ------ creates a temporary\nlet q = *p;\n```\n\nHere, the expression `&foo()` is borrowing the expression\n`foo()`. As `foo()` is call to a function, and not the name of\na variable, this creates a **temporary** -- that temporary stores\nthe return value from `foo()` so that it can be borrowed.\nSo you might imagine that `let p = bar(&foo())` is equivalent\nto this:\n\n```compile_fail,E0597\n# fn foo() -> i32 { 22 }\n# fn bar(x: &i32) -> &i32 { x }\nlet p = {\n  let tmp = foo(); // the temporary\n  bar(&tmp)\n}; // <-- tmp is freed as we exit this block\nlet q = p;\n```\n\nWhenever a temporary is created, it is automatically dropped (freed)\naccording to fixed rules. Ordinarily, the temporary is dropped\nat the end of the enclosing statement -- in this case, after the `let`.\nThis is illustrated in the example above by showing that `tmp` would\nbe freed as we exit the block.\n\nTo fix this problem, you need to create a local variable\nto store the value in rather than relying on a temporary.\nFor example, you might change the original program to\nthe following:\n\n```\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet value = foo(); // dropped at the end of the enclosing block\nlet p = bar(&value);\nlet q = *p;\n```\n\nBy introducing the explicit `let value`, we allocate storage\nthat will last until the end of the enclosing block (when `value`\ngoes out of scope). When we borrow `&value`, we are borrowing a\nlocal variable that already exists, and hence no temporary is created.\n\nTemporaries are not always dropped at the end of the enclosing\nstatement. In simple cases where the `&` expression is immediately\nstored into a variable, the compiler will automatically extend\nthe lifetime of the temporary until the end of the enclosinb\nblock. Therefore, an alternative way to fix the original\nprogram is to write `let tmp = &foo()` and not `let tmp = foo()`:\n\n```\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet value = &foo();\nlet p = bar(value);\nlet q = *p;\n```\n\nHere, we are still borrowing `foo()`, but as the borrow is assigned\ndirectly into a variable, the temporary will not be dropped until\nthe end of the enclosing block. Similar rules apply when temporaries\nare stored into aggregate structures like a tuple or struct:\n\n```\n// Here, two temporaries are created, but\n// as they are stored directly into `value`,\n// they are not dropped until the end of the\n// enclosing block.\nfn foo() -> i32 { 22 }\nlet value = (&foo(), &foo());\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":960,"byte_end":965,"line_start":28,"line_end":28,"column_start":28,"column_end":33,"is_primary":true,"text":[{"text":"    let _: &'static u32 = &foo(); //~ ERROR does not live long enough","highlight_start":28,"highlight_end":33}],"label":"creates a temporary which is freed while still in use","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1003,"byte_end":1004,"line_start":29,"line_end":29,"column_start":1,"column_end":2,"is_primary":false,"text":[{"text":"}","highlight_start":1,"highlight_end":2}],"label":"temporary value is freed at the end of this statement","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":944,"byte_end":956,"line_start":28,"line_end":28,"column_start":12,"column_end":24,"is_primary":false,"text":[{"text":"    let _: &'static u32 = &foo(); //~ ERROR does not live long enough","highlight_start":12,"highlight_end":24}],"label":"type annotation requires that borrow lasts for `'static`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0716]: temporary value dropped while borrowed\n  --> /checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs:28:28\n   |\nLL |     let _: &'static u32 = &foo(); //~ ERROR does not live long enough\n   |            ------------    ^^^^^ creates a temporary which is freed while still in use\n   |            |\n   |            type annotation requires that borrow lasts for `'static`\nLL | }\n   | - temporary value is freed at the end of this statement\n\n"}
[01:08:49] {"message":"temporary value dropped while borrowed","code":{"code":"E0716","explanation":"\nThis error indicates that a temporary value is being dropped\nwhile a borrow is still in active use.\n\nErroneous code example:\n\n```compile_fail,E0716\n# #![feature(nll)]\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet p = bar(&foo());\n         // ------ creates a temporary\nlet q = *p;\n```\n\nHere, the expression `&foo()` is borrowing the expression\n`foo()`. As `foo()` is call to a function, and not the name of\na variable, this creates a **temporary** -- that temporary stores\nthe return value from `foo()` so that it can be borrowed.\nSo you might imagine that `let p = bar(&foo())` is equivalent\nto this:\n\n```compile_fail,E0597\n# fn foo() -> i32 { 22 }\n# fn bar(x: &i32) -> &i32 { x }\nlet p = {\n  let tmp = foo(); // the temporary\n  bar(&tmp)\n}; // <-- tmp is freed as we exit this block\nlet q = p;\n```\n\nWhenever a temporary is created, it is automatically dropped (freed)\naccording to fixed rules. Ordinarily, the temporary is dropped\nat the end of the enclosing statement -- in this case, after the `let`.\nThis is illustrated in the example above by showing that `tmp` would\nbe freed as we exit the block.\n\nTo fix this problem, you need to create a local variable\nto store the value in rather than relying on a temporary.\nFor example, you might change the original program to\nthe following:\n\n```\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet value = foo(); // dropped at the end of the enclosing block\nlet p = bar(&value);\nlet q = *p;\n```\n\nBy introducing the explicit `let value`, we allocate storage\nthat will last until the end of the enclosing block (when `value`\ngoes out of scope). When we borrow `&value`, we are borrowing a\nlocal variable that already exists, and hence no temporary is created.\n\nTemporaries are not always dropped at the end of the enclosing\nstatement. In simple cases where the `&` expression is immediately\nstored into a variable, the compiler will automatically extend\nthe lifetime of the temporary until the end of the enclosinb\nblock. Therefore, an alternative way to fix the original\nprogram is to write `let tmp = &foo()` and not `let tmp = foo()`:\n\n```\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet value = &foo();\nlet p = bar(value);\nlet q = *p;\n```\n\nHere, we are still borrowing `foo()`, but as the borrow is assigned\ndirectly into a variable, the temporary will not be dropped until\nthe end of the enclosing block. Similar rules apply when temporaries\nare stored into aggregate structures like a tuple or struct:\n\n```\n// Here, two temporaries are created, but\n// as they are stored directly into `value`,\n// they are not dropped until the end of the\n// enclosing block.\nfn foo() -> i32 { 22 }\nlet value = (&foo(), &foo());\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1045,"byte_end":1050,"line_start":32,"line_end":32,"column_start":28,"column_end":33,"is_primary":true,"text":[{"text":"    let _: &'static u32 = &meh(); //~ ERROR does not live long enough","highlight_start":28,"highlight_end":33}],"label":"creates a temporary which is freed while still in use","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1208,"byte_end":1209,"line_start":35,"line_end":35,"column_start":1,"column_end":2,"is_primary":false,"text":[{"text":"}","highlight_start":1,"highlight_end":2}],"label":"temporary value is freed at the end of this statement","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1029,"byte_end":1041,"line_start":32,"line_end":32,"column_start":12,"column_end":24,"is_primary":false,"text":[{"text":"    let _: &'static u32 = &meh(); //~ ERROR does not live long enough","highlight_start":12,"highlight_end":24}],"label":"type annotation requires that borrow lasts for `'static`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0716]: temporary value dropped while borrowed\n  --> /checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs:32:28\n   |\nLL |     let _: &'static u32 = &meh(); //~ ERROR does not live long enough\n   |            ------------    ^^^^^ creates a temporary which is freed while still in use\n   |            |\n   |            type annotation requires that borrow lasts for `'static`\n...\nLL | }\n   | - temporary value is freed at the end of this statement\n\n"}
[01:08:49] {"message":"temporary value dropped while borrowed","code":{"code":"E0716","explanation":"\nThis error indicates that a temporary value is being dropped\nwhile a borrow is still in active use.\n\nErroneous code example:\n\n```compile_fail,E0716\n# #![feature(nll)]\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet p = bar(&foo());\n         // ------ creates a temporary\nlet q = *p;\n```\n\nHere, the expression `&foo()` is borrowing the expression\n`foo()`. As `foo()` is call to a function, and not the name of\na variable, this creates a **temporary** -- that temporary stores\nthe return value from `foo()` so that it can be borrowed.\nSo you might imagine that `let p = bar(&foo())` is equivalent\nto this:\n\n```compile_fail,E0597\n# fn foo() -> i32 { 22 }\n# fn bar(x: &i32) -> &i32 { x }\nlet p = {\n  let tmp = foo(); // the temporary\n  bar(&tmp)\n}; // <-- tmp is freed as we exit this block\nlet q = p;\n```\n\nWhenever a temporary is created, it is automatically dropped (freed)\naccording to fixed rules. Ordinarily, the temporary is dropped\nat the end of the enclosing statement -- in this case, after the `let`.\nThis is illustrated in the example above by showing that `tmp` would\nbe freed as we exit the block.\n\nTo fix this problem, you need to create a local variable\nto store the value in rather than relying on a temporary.\nFor example, you might change the original program to\nthe following:\n\n```\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet value = foo(); // dropped at the end of the enclosing block\nlet p = bar(&value);\nlet q = *p;\n```\n\nBy introducing the explicit `let value`, we allocate storage\nthat will last until the end of the enclosing block (when `value`\ngoes out of scope). When we borrow `&value`, we are borrowing a\nlocal variable that already exists, and hence no temporary is created.\n\nTemporaries are not always dropped at the end of the enclosing\nstatement. In simple cases where the `&` expression is immediately\nstored into a variable, the compiler will automatically extend\nthe lifetime of the temporary until the end of the enclosinb\nblock. Therefore, an alternative way to fix the original\nprogram is to write `let tmp = &foo()` and not `let tmp = foo()`:\n\n```\nfn foo() -> i32 { 22 }\nfn bar(x: &i32) -> &i32 { x }\nlet value = &foo();\nlet p = bar(value);\nlet q = *p;\n```\n\nHere, we are still borrowing `foo()`, but as the borrow is assigned\ndirectly into a variable, the temporary will not be dropped until\nthe end of the enclosing block. Similar rules apply when temporaries\nare stored into aggregate structures like a tuple or struct:\n\n```\n// Here, two temporaries are created, but\n// as they are stored directly into `value`,\n// they are not dropped until the end of the\n// enclosing block.\nfn foo() -> i32 { 22 }\nlet value = (&foo(), &foo());\n```\n"},"level":"error","spans":[{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1113,"byte_end":1165,"line_start":33,"line_end":33,"column_start":26,"column_end":78,"is_primary":true,"text":[{"text":"    let x: &'static _ = &std::time::Duration::from_millis(42).subsec_millis();","highlight_start":26,"highlight_end":78}],"label":"creates a temporary which is freed while still in use","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1208,"byte_end":1209,"line_start":35,"line_end":35,"column_start":1,"column_end":2,"is_primary":false,"text":[{"text":"}","highlight_start":1,"highlight_end":2}],"label":"temporary value is freed at the end of this statement","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"/checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs","byte_start":1099,"byte_end":1109,"line_start":33,"line_end":33,"column_start":12,"column_end":22,"is_primary":false,"text":[{"text":"    let x: &'static _ = &std::time::Duration::from_millis(42).subsec_millis();","highlight_start":12,"highlight_end":22}],"label":"type annotation requires that borrow lasts for `'static`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0716]: temporary value dropped while borrowed\n  --> /checkout/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs:33:26\n   |\nLL |     let x: &'static _ = &std::time::Duration::from_millis(42).subsec_millis();\n   |            ----------    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use\n   |            |\n   |            type annotation requires that borrow lasts for `'static`\nLL |     //~^ ERROR does not live long enough\nLL | }\n   | - temporary value is freed at the end of this statement\n\n"}
[01:08:49] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:503:22
[01:08:49] {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"}
[01:08:49] make: *** [check] Error 1
[01:08:49] {"message":"For more information about this error, try `rustc --explain E0716`.","code":null,"level":"","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0716`.\n"}
[01:08:49] ------------------------------------------
[01:08:49] 
[01:08:49] thread '[ui (nll)] ui/consts/const-eval/dont_promote_unstable_const_fn.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3252:9
[01:08:49] note: Run with `RUST_BACKTRACE=1` for a backtrace.
---
[01:08:49] test result: FAILED. 5041 passed; 1 failed; 85 ignored; 0 measured; 0 filtered out
[01:08:49] 
[01:08:49] 
[01:08:49] 
[01:08:49] 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" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--host-rustcflags" "-Crpath -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -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" "--llvm-version" "8.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always" "--compare-mode" "nll"
[01:08:49] 
[01:08:49] 
[01:08:49] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:08:49] Build completed unsuccessfully in 0:07:38
[01:08:49] Build completed unsuccessfully in 0:07:38
[01:08:49] Makefile:58: recipe for target 'check' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:206242d7
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Sat Dec  8 02:58:14 UTC 2018
---
travis_time:end:07d715c0:start=1544237896506891224,finish=1544237896514299367,duration=7408143
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:06ace6d8
$ 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:015d1158
travis_time:start:015d1158
$ 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:032c1c6e
$ 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)

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 8, 2018

Aghh, nll stderr files...

@bors r+ p=1

@bors

This comment has been minimized.

Contributor

bors commented Dec 8, 2018

馃搶 Commit 003c5b7 has been approved by alexreg

@bors

This comment has been minimized.

Contributor

bors commented Dec 8, 2018

鈱涳笍 Testing commit 003c5b7 with merge 059e6a6...

bors added a commit that referenced this pull request Dec 8, 2018

Auto merge of #56578 - alexreg:cosmetic-1, r=alexreg
Various minor/cosmetic improvements to code

r? @Centril 馃槃
@bors

This comment has been minimized.

Contributor

bors commented Dec 8, 2018

鈽锔 Test successful - status-appveyor, status-travis
Approved by: alexreg
Pushing 059e6a6 to master...

@scalexm

This comment has been minimized.

Member

scalexm commented Dec 8, 2018

I'm not sure I understand the added value of this PR, apart from forcing everyone to rebase, and I could not find any discussion about it prior to it being merged.

I agree one should always feel free to fix typos or spelling / grammatical errors, but I'm not sure we should somehow "impose" a writing style or whatever.

For example, I like to write the comma before the Latin locution "i.e." because I believe this is correct English and moreover it mimics the usage in my own language, but I don't care if someone else likes another usage. The same goes for abbreviating the Latin locution "nota bene". Everyone has their writing style :)

I think this PR will be stale in a few weeks because people will probably stick to their own writing style. So what will be the next steps? Are we opening a PR once a month to fix people comments? Or will we impose PR authors to fix their comments before any PR can be merged?

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 8, 2018

@scalexm I personally would like to see a writing style agreed upon. I adopted a comma after Latin abbreviations because it is the U.S. English convention, and such conventions are used everywhere else. (Note, I'm actually British.) I also consider it more logical, because "e.g." and "i.e." are essentially abbreviated Latin translations of the phrases "for example" and "that is". It is necessary in grammatically-correct English to include the comma:

  • For example, this is a sentence.
  • That is, the comma is required.
  • Note, one cannot dispense with the comma.

You make a fair point about the codebase diverging in style, however, which is why I feel a consensus on writing style, punctuation, and whatnot would be great at this point. Reviewers could then uphold it.

P.S. There's no requirement for any formal process on a PR like this, so I'm pretty sure no rules were broken. I dispute that it doesn't add value, though like I said above, it adds more value if people then stick to certain writing guidelines, and they're furthermore enforced.

@scalexm

This comment has been minimized.

Member

scalexm commented Dec 9, 2018

@alexreg That鈥檚 very fine but since it is a personal opinion, I鈥檇 like to see it discussed somewhere before imposing anything to the codebase, on the internals for example.

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 9, 2018

I don't think there's any requirement to discuss it, as long as someone approves the PR... deciding on style guidelines is another matter. Do you want to create a thread for that, or should I?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment