New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RFC 2338, "Type alias enum variants" #56225

Open
wants to merge 14 commits into
base: master
from

Conversation

Projects
None yet
9 participants
@alexreg
Contributor

alexreg commented Nov 26, 2018

This PR implements RFC 2338, allowing one to write code like the following.

#![feature(type_alias_enum_variants)]

enum Foo {
    Bar(i32),
    Baz { i: i32 },
}

type Alias = Foo;

fn main() {
    let t = Alias::Bar(0);
    let t = Alias::Baz { i: 0 };
    match t {
        Alias::Bar(_i) => {}
        Alias::Baz { i: _i } => {}
    }
}

Since Self can be considered a type alias in this context, it also enables using Self::Variant as both a constructor and pattern.

Fixes issues #56199 and #56611.

N.B., after discussing the syntax for type arguments on enum variants with @petrochenkov and @eddyb (there are also a few comments on the tracking issue), the consensus seems to be treat the syntax as follows, which ought to be backwards-compatible.

Option::<u8>::None; // OK
Option::None::<u8>; // OK, but lint in near future (hard error next edition?)
Alias::<u8>::None; // OK
Alias::None::<u8>; // Error

I do not know if this will need an FCP, but let's start one if so.

@alexreg

This comment has been minimized.

Contributor

alexreg commented Nov 26, 2018

The tricky part of handling type parameters is still to be done, but basic cases are working already. Any advice on this expanding on your previous comment would be appreciated, @petrochenkov. (Hope you don't mind I r?ed you, as well.)

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Nov 26, 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:0ed17820:start=1543205886301110705,finish=1543205939631521956,duration=53330411251
$ 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:tidy
tidy check
[00:03:39] * 568 error codes
[00:03:39] * highest error code: E0721
[00:03:40] Expected a gate test for the feature 'type_alias_enum_variants'.
[00:03:40] Hint: create a failing test file named 'feature-gate-type_alias_enum_variants.rs'
[00:03:40]       in the 'ui' test suite, with its failures due to
[00:03:40]       missing usage of #![feature(type_alias_enum_variants)].
[00:03:40] Hint: If you already have such a test and don't want to rename it,
[00:03:40]       you can also add a // gate-test-type_alias_enum_variants line to the test file.
[00:03:40] tidy error: Found 1 features without a gate test.
[00:03:40] some tidy checks failed
[00:03:40] 
[00:03:40] 
[00:03:40] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:03:40] 
[00:03:40] 
[00:03:40] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:03:40] Build completed unsuccessfully in 0:00:55
[00:03:40] Build completed unsuccessfully in 0:00:55
[00:03:40] Makefile:79: recipe for target 'tidy' failed
[00:03:40] make: *** [tidy] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0dd58282
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Mon Nov 26 04:22:48 UTC 2018
---
travis_time:end:1d587f9c:start=1543206169243430844,finish=1543206169249593907,duration=6163063
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:1b37b25e
$ 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:1af3b320
travis_time:start:1af3b320
$ 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:0993e4de
$ 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)

Show resolved Hide resolved src/librustc/hir/def.rs Outdated
@petrochenkov

This comment has been minimized.

Contributor

petrochenkov commented Nov 26, 2018

Everything about generic arguments should be in instantiate_value_path (at least for values).
Can't say more, last time I looked at that code a couple of years ago and it was rewritten since then at least twice, IIRC (by eddyb and varkor).

@alexreg alexreg force-pushed the alexreg:type_alias_enum_variants branch from c9d9926 to 45f338d Nov 30, 2018

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Nov 30, 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:02b7e4cd:start=1543541323834607666,finish=1543541326111413113,duration=2276805447
$ 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:02:55] travis_fold:start:tidy
travis_time:start:tidy
tidy check
[00:02:55] tidy error: /checkout/src/librustc_typeck/check/mod.rs:5025: line longer than 100 chars
[00:02:55] tidy error: /checkout/src/librustc_typeck/check/mod.rs:5270: line longer than 100 chars
[00:02:56] tidy error: Found 1 features without a gate test.
[00:02:56] Expected a gate test for the feature 'type_alias_enum_variants'.
[00:02:56] Hint: create a failing test file named 'feature-gate-type_alias_enum_variants.rs'
[00:02:56]       in the 'ui' test suite, with its failures due to
[00:02:56]       missing usage of #![feature(type_alias_enum_variants)].
[00:02:56] Hint: If you already have such a test and don't want to rename it,
[00:02:56]       you can also add a // gate-test-type_alias_enum_variants line to the test file.
[00:02:56] some tidy checks failed
[00:02:56] 
[00:02:56] 
[00:02:56] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:02:56] 
[00:02:56] 
[00:02:56] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:02:56] Build completed unsuccessfully in 0:00:54
[00:02:56] Build completed unsuccessfully in 0:00:54
[00:02:56] Makefile:79: recipe for target 'tidy' failed
[00:02:56] make: *** [tidy] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:02b5abb1
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Nov 30 01:31:51 UTC 2018
---
travis_time:end:095bfc1c:start=1543541512232132914,finish=1543541512236782853,duration=4649939
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:076594fe
$ 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:1c13899c
travis_time:start:1c13899c
$ 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:26a33126
$ 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:type_alias_enum_variants branch from 45f338d to dc46591 Nov 30, 2018

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Nov 30, 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:1154c89e:start=1543545696024028996,finish=1543545698790359536,duration=2766330540
$ 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/aa/e5/ebd5896ad5ae353d23bea05ebb8edd3d49f1471784f6afa12a9cf11710de/awscli-1.16.67-py2.py3-none-any.whl (1.4MB)
    0% |▎                               | 10kB 17.7MB/s eta 0:00:01
    1% |▌                               | 20kB 1.8MB/s eta 0:00:01
    2% |▊                               | 30kB 2.1MB/s eta 0:00:01
    2% |█                               | 40kB 2.0MB/s eta 0:00:01
---
travis_time:start:tidy
tidy check
[00:03:10] * 568 error codes
[00:03:10] * highest error code: E0721
[00:03:11] tidy error: /checkout/src/test/ui/feature-gates/feature-gate-type_alias_enum_variants.rs:11: The file is already marked as gate test through its name, no need for a 'gate-test-type_alias_enum_variants' comment
[00:03:11] tidy error: /checkout/src/test/ui/feature-gates/feature-gate-type_alias_enum_variants.rs:11: The file is already marked as gate test through its name, no need for a 'gate-test-type_alias_enum_variants' comment
[00:03:11] some tidy checks failed
[00:03:11] 
[00:03:11] 
[00:03:11] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:03:11] 
[00:03:11] 
[00:03:11] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:03:11] Build completed unsuccessfully in 0:00:57
[00:03:11] Build completed unsuccessfully in 0:00:57
[00:03:11] Makefile:79: recipe for target 'tidy' failed
[00:03:11] make: *** [tidy] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:103b94da
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Fri Nov 30 02:44:59 UTC 2018
---
travis_time:end:055ae1ca:start=1543545899831816988,finish=1543545899836994697,duration=5177709
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:003ab5f4
$ 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:0b0ebe64
travis_time:start:0b0ebe64
$ 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:33dd2029
$ 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:type_alias_enum_variants branch from dc46591 to f19488f Nov 30, 2018

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Nov 30, 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:0408c502:start=1543547825000242044,finish=1543547827566320076,duration=2566078032
$ 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/aa/e5/ebd5896ad5ae353d23bea05ebb8edd3d49f1471784f6afa12a9cf11710de/awscli-1.16.67-py2.py3-none-any.whl (1.4MB)
    0% |▎                               | 10kB 8.9MB/s eta 0:00:01
    1% |▌                               | 20kB 1.8MB/s eta 0:00:01
    2% |▊                               | 30kB 2.1MB/s eta 0:00:01
    2% |█                               | 40kB 1.8MB/s eta 0:00:01
---
[00:21:15]    Compiling stable_deref_trait v1.1.0
[00:21:15]    Compiling rand_core v0.2.1
[00:21:15]    Compiling rustc-rayon-core v0.1.1
[00:21:15]    Compiling libc v0.2.43
ib/x86_64-unknown-linux-gnu/lib/libunwind-584b8113874b42c3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-88a48eb7d5a16ae0.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c728c691d18361d6.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1ca652ba5902d152.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-1c47d1a187b30d76.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
[00:21:15]   = note: /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$alloc..vec..Vec$LT$T$GT$$GT$::extend_from_slice::ha7e542bbf5e10fdc':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN33_$LT$alloc..vec..Vec$LT$T$GT$$GT$17extend_from_slice17ha7e542bbf5e10fdcE+0x12e): undefined reference to `_$LT$core..fmt..Arguments$LT$$u27$_$GT$$u20$as$u20$core..fmt..Display$GT$::fmt::he1a17a68be2f6b5d'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN33_$LT$alloc..vec..Vec$LT$T$GT$$GT$17extend_from_slice17ha7e542bbf5e10fdcE+0x181): undefined reference to `core::panicking::panic_fmt::he6c7d588bf78de99'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.u20$core..fmt..Debug$GT$3fmt17ha4be7ff5e9cbef15E+0xe): undefined reference to `core::fmt::Formatter::debug_lower_hex::hd2b272bcb8bc51be'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17ha4be7ff5e9cbef15E+0x24): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..LowerHex$u20$for$u20$u8$GT$::fmt::h29588aa313160977'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17ha4be7ff5e9cbef15E+0x2c): undefined reference to `core::fmt::Formatter::debug_upper_hex::hc14f616a42fb70d7'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17ha4be7ff5e9cbef15E+0x42): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..UpperHex$u20$for$u20$u8$GT$::fmt::h29064cf495da70cf'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17ha4be7ff5e9cbef15E+0x4a): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$u8$GT$::fmt::h80f7d3989720d268'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$::fmt::hafa5e5297f420104':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN42_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$3fmt17hafa5e5297f420104E+0xe): undefined reference to `core::fmt::Formatter::debug_lower_hex::hd2b272bcb8bc51be'
[00:21:15]           std.eiiv7ur74_$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$3fmt17hc226ed4534571bc6E+0x11): undefined reference to `_$LT$str$u20$as$u20$core..fmt..Display$GT$::fmt::hea592fa2680dabb1'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::hfda85e44f23213ab':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN44_$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$3fmt17hfda85e44f23213abE+0x4): undefined reference to `_$LT$core..panic..Location$LT$$u27$_$GT$$u20$as$u20$core..fmt..Display$GT$::fmt::h74849afc1dfc845a'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$$RF$T$u20$as$u20$core..fmt..UpperHex$GT$::fmt::h3b6e3fbbbd8f85b2':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN45_$LT$$RF$T$u20$as$u20$core..fmt..UpperHex$GT$3fmt17h3b6e3fbbbd8f85b2E+0x4): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..UpperHex$u20$for$u20$u8$GT$::fmt::h29064cf495da70cf'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `core::fmt::Write::write_fmt::h7a3bb55a5bb0888a':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core3fmt5Write9write_fmt17h7a3bb55a5bb0888aE+0x35): undefined reference to nknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `core::result::unwrap_failed::h4d82df2468ae1426':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17h4d82df2468ae1426E+0x8d): undefined reference to `core::panicking::panic_fmt::he6c7d588bf78de99'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `core::result::unwrap_failed::h6558f369055cb286':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17h6558f369055cb286E+0x3a): undefined reference to `_$LT$core..cell..BorrowError$u20$as$u20$core..fmt..Debug$GT$::fmt::hdee32b0dd9c02e74'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17h6558f369055cb286E+0x8d): undefined reference to `core::panicking::panic_fmt::he6c7d588bf78de99'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `core::result::unwrap_failed::h920340af4b4bb757':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17h920340af4b4bb757E+0x3a): undefined reference to `_$LT$core..cell..BorrowMutError$u20$as$u20$core..fmt..Debug$GT$::fmt::h6e3f42e4a0445cdf'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17h920340af4b4bb757E+0x8d): undefined reference to `core::panicking::panic_fmt::he6c7d588bf78de99'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `core::result::unwrap_failed::ha76ba1c1b20d5db1':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17ha76ba1c1b20d5db1E+0x85): undefined reference to `core::panicking::panic_fmt::he6c7d588bf78de99'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `core::result::unwrap_failed::hb7275424b8a1b1d7':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17hb7275424b8a1b1d7E+0x37): undefined reference to `_$LT$core..str..Utf8Error$u20$as$u20$core..fmt..Debug$GT$::fmt::h549d2697c2878777'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN4core6result13unwrap_failed17hb7275424b8a1b1d7E+0x8a): undefined reference to `core::panicking::panic_fmt::he6c7d588bf78de99'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$$BP$const$u20$T$u20$as$u20$core..fmt..Debug$GT$::fmt::h0a9f1f1be3a6b122':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN52_$LT$$BP$const$u20$T$u20$as$u20$core..fmt..Debug$GT$3fmt17h0a9f1f1be3a6b122E+0x20): undefined refe..iterator..Iterator$GT$8position28_$u7b$$u7b$closure$u7d$$u7d$17hd1dd061dccbff085E+0xd1): undefined reference to `core::str::pattern::StrSearcher::new::h855ade58b61b2d6d'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN91_$LT$core..slice..Iter$LT$$u27$a$C$$u20$T$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$8position28_$u7b$$u7b$closure$u7d$$u7d$17hd1dd061dccbff085E+0x160): undefined reference to `core::str::from_utf8::hafb11bf27fe2b330'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN91_$LT$core..slice..Iter$LT$$u27$a$C$$u20$T$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$8position28_$u7b$$u7b$closure$u7d$$u7d$17hd1dd061dccbff085E+0x193): undefined reference to `core::str::pattern::StrSearcher::new::h855ade58b61b2d6d'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$_$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h73784f3df04d47b2':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN96_$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$_$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$9write_fmt17h73784f3df04d47b2E+0x38): undefined reference to `core::fmt::write::h02970fed5b305c80'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$_$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h78f86bf54cc61bf8':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN96_$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$_$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$9write_fmt17h78f86bf54cc61bf8E+0x38): undefined reference to `core::fmt::write::h02970fed5b305c80'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$_$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::ha9652a9fc8308973':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN96_$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$_$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$9write_fmt17ha9652a9fc8308973E+0x38): undefined reference to `core::fmt::write::h02970fed5b305c80'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..thread..local..AccessError$u20$as$u20$core..fmt..Debug$GT$::fmt::h498e22fd85abb0f3':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN68_$LT$std..thread..local..AccessError$u20$as$u20$core..fmt..Debug$GT$3fmt17h498e22fd85abb0f3E+0x18): undefined reference to `core::fmt::Formatter::debug_struct::h230626fdf1bba9c8'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN68_$LT$std..thread..local..AccessError$u20$as$u20$core..fmt..Debug$GT$3fmt17h498e22fd85abb0f3E+0x20): undefined reference to `core::fmt::builders::DebugStruct::finish::h5e22021409428cd1'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::thread::park::h27502b4f15421def':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std6thread4park17h27502b4f15421defE+0x3b8): undefined reference to `_$LT$core..fmt..Arguments$LT$$u27$_$GT$$u20$as$u20$core..fmt..Display$GT$::fmt::he1a17a68be2f6b5d'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::thread::Thread::new::hb1c9ecd9796bcc4f':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std6thread6Thread3new17hb1c9ecd9796bcc4fE+0x3f): undefined reference to `alloc::string::_$LT$impl$u20$core..convert..From$LT$alloc..string..String$GT$$u20$for$u20$alloc..vec..Vec$LT$u8$GT$$GT$::from::hbe743ffa74a9f75e'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..error..$LT$impl$u20$core..convert..From$LT$alloc..string..String$GT$$u20$for$u20$alloc..boxed..Box$LT$$LP$dyn$u20$std..error..Error$u20$$u2b$$u20$core..marker..Send$u20$$u2b$$u20$core..marker..Sync$u20$$u2b$$u20$$u27$static$RP$$GT$$GT$..from..StringError$u20$as$u20$core..fmt..Display$GT$::fmt::h98fae58959c5d27d':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN298_$LT$std..error..$LT$impl$u20$core..convert..From$LT$alloc..string..String$GT$$u20$for$u20$alloc..boxed..Box$LT$$LP$dyn$u20$std..error..Error$u20$$u2b$$u20$core..marker..Send$u20$$u2b$$u20$core..marker..Sync$u20$$u2b$$u20$$u27$static$RP$$GT$$GT$..from..StringError$u20$as$u20$core..fmt..Display$GT$3fmt17h98fae58959c5d27dE+0x15): undefined reference to `_$LT$str$u20$as$u20$core..fmt..Display$GT$::fmt::hea592fa2680dabb1'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..io..error..Error$u20$as$u20$core..fmt..Display$GT$::fmt::hf77ea7f237e7300a':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN60_$LT$std..io..error..Error$u20$as$u20$core..fmt..Display$GT$3fmt17hf77ea7f237e7300aE+0x9a): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$i32$GT$::fmt::hfd498735861d9445'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN60_$LT$std..io..error..Error$u20$as$u20$core..fmt..Display$GT$3fmt17hf77ea7f237e7300aE+0xe9): undefined reference to `core::fmt::Formatter::write_fmt::h6f11d484b09c7f61'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN60_$LT$std..io..error..Error$u20$as$u20$core..fmt..Display$GT$3fmt17hf77ea7f237e7300aE+0x264): undefined reference to `core::fmt::Formatter::write_fmt::h6f11d484b09c7f61'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::io::impls::_$LT$impl$u20$std..io..Write$u20$for$u20$$RF$$u27$a$u20$mut$u20$W$GT$::write_fmt::h8b59510d4c9a1393':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std2io5impls69_$LT$impl$u20$std..io..Write$u20$for$u20$$RF$$u27$a$u20$mut$u20$W$GT$9write_fmt17h8b59510d4c9a1393E+0x43): undefined reference to `core::fmt::write::h02970fed5b305c80'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$::write_fmt::h38b0899c1b4323fe':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN57_$LT$std..io..stdio..Stdout$u20$as$u20$std..io..Write$GT$9write_fmt17h38b0899c1b4323feE+0x60): undefined reference to `core::fmt::write::h02970fed5b305c80'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::sys_common::backtrace::_print::he2b9311336610c3e':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print17he2b9311336610c3eE+0xb43): undefined reference to `core::str::from_utf8::hafb11bf27fe2b330'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print17he2b9311336610c3eE+0xbe1): undefined reference to `core::str::from_utf8::hafb11bf27fe2b330'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::sys_common::backtrace::_print::_$u7b$$u7b$closure$u7d$$u7d$::h78496d3c4c3b2c5e':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print28_$u7b$$u7b$closure$u7d$$u7d$17h78496d3c4c3b2c5eE+0x86): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$usize$GT$::fmt::h47ff7d27711c51aa'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print28_$u7b$$u7b$closure$u7d$$u7d$17h78496d3c4c3b2c5eE+0xed): undefined reference to `core::fmt::ArgumentV1::from_usize::h4dcc39b172b77041'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print28_$u7b$$u7b$closure$u7d$$u7d$17h78496d3c4c3b2c5eE+0x101): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$usize$GT$::fmt::h47ff7d27711c51aa'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print28_$u7b$$u7b$closure$u7d$$u7d$17h78496d3c4c3b2c5eE+0x1c5): undefined reference to `core::str::pattern::StrSearcher::new::h855ade58b61b2d6d'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print28_$u7b$$u7b$closure$u7d$$u7d$17h78496d3c4c3b2c5eE+0x934): undefined reference to `core::str::pattern::StrSearcher::new::h855ade58b61b2d6d'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace6_print28_$u7b$$u7b$closure$u7d$$u7d$17h78496d3c4c3b2c5eE+0xced): undefined reference to `core::num::_$LT$impl$u20$core..str..FromStr$u20$for$u20$usize$GT$::from_str::h78d5d7bc98b59ed5'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::sys_common::backtrace::output_fileline::h83af0ffd9eea9c84':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace15output_fileline17h83af0ffd9eea9c84E+0x65): undefined reference to `core::fmt::ArgumentV1::from_usize::h4dcc39b172b77041'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace15output_fileline17h83af0ffd9eea9c84E+0x147): undefined reference to `core::str::from_utf8::hafb11bf27fe2b330'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace15output_fileline17h83af0ffd9eea9c84E+0x254): undefined reference to `core::str::from_utf8::hafb11bf27fe2b330'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace15output_fileline17h83af0ffd9eea9c84E+0x298): undefined reference to `_$LT$char$u20$as$u20$core..fmt..Display$GT$::fmt::he4f5d9dfc404557f'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace15output_fileline17h83af0ffd9eea9c84E+0x2c7): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$::fmt::h6af7b01ffdef6ea4'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std10sys_common9backtrace15output_fileline17h83af0ffd9eea9c84E+0x386): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$::fmt::h6af7b01ffdef6ea4'
[b/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::alloc::default_alloc_error_hook::h2466791f947add78':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std5alloc24default_alloc_error_hook17h2466791f947add78E+0x13): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$usize$GT$::fmt::h47ff7d27711c51aa'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::panicking::default_hook::h4e87a4285a6d2b5e':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std9panicking12default_hook17h4e87a4285a6d2b5eE+0x129): undefined reference to `core::panic::PanicInfo::location::heb30fcdf153ac405'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std9panicking12default_hook17h4e87a4285a6d2b5eE+0x13f): undefined reference to `core::panic::PanicInfo::payload::h558d5d2e885cc6e9'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std9panicking12default_hook17h4e87a4285a6d2b5eE+0x172): undefined reference to `core::panic::PanicInfo::payload::h558d5d2e885cc6e9'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::panicking::begin_panic_fmt::h1e90c7363ce9c2f5':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std9panicking15begin_panic_fmt17h1e90c7363ce9c2f5E+0x1f): undefined reference to `core::pan-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::panicking::continue_panic_fmt::PanicPayload::fill::h19c76248ac85ca1c':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std9panicking18continue_panic_fmt12PanicPayload4fill17h19c76248ac85ca1cE+0x60): undefined reference to `core::fmt::write::h02970fed5b305c80'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::panicking::rust_panic_with_hook::h9da917b1cce4e4ec':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std9panicking20rust_panic_with_hook17h9da917b1cce4e4ecE+0xe2): undefined reference to `core::panic::Location::internal_constructor::h90b4a938e85c628a'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `rust_panic':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text.rust_panic+0x29): undefined reference to `core::fmt::num::_$LT$impl$u20$core..fmt..Display$u20$for$u20$u32$GT$::fmt::h6af7b01ffdef6ea4'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..error..$LT$impl$u20$core..convert..From$LT$alloc..string..String$GT$$u20$for$u20$alloc..boxed..Box$LT$$LP$dyn$u20$std..error..Error$u20$$u2b$$u20$core..marker..Send$u20$$u2b$$u20$core..markerdefined reference to `_$LT$unwind..libunwind.._Unwind_Reason_Code$u20$as$u20$core..fmt..Debug$GT$::fmt::h5549883cf1e95d1a'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN91_$LT$std..sys..unix..backtrace..tracing..imp..UnwindError$u20$as$u20$core..fmt..Display$GT$3fmt17hbd5a86ada07d80dcE+0x89): undefined reference to `core::fmt::Formatter::write_fmt::h6f11d484b09c7f61'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `std::sys::unix::os::error_string::hffeeccfeb7fb8411':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN3std3sys4unix2os12error_string17hffeeccfeb7fb8411E+0xa6): undefined reference to `core::str::from_utf8::hafb11bf27fe2b330'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..sys..unix..os_str..Slice$u20$as$u20$core..fmt..Debug$GT$::fmt::hf5d7370eb28a9da0':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN66_$LT$std..sys..unix..os_str..Slice$u20$as$u20$core..fmt..Debug$GT$3fmt17hf5d7370eb28a9da0E+0x27): undefined reference to `core::fmt::Formatter::write_str::h4e75c39014ef8a4e'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN66_$LT$std..sys..unix..os_str..Slice$u20$as$u20$core..fmt..Debug$GT$3fmt17hf5d7370eb28a9da0E+0x3c): undefined reference to `core::str::lossy::Utf8Lossy::from_bytes::h9519a6f695e6b5a5'
[00:21:15]           std.egu.0:(.text._ZN66_$LT$std..sys..unix..os_str..Slice$u20$as$u20$core..fmt..Debug$GT$3fmt17hf5d7370eb28a9da0E+0x32c): undefined reference to `_$LT$core..str..lossy..Utf8LossyChunksIter$LT$$u27$a$GT$$u20$as$u20$core..iter..iterator..Iterator$GT$::next::h0d32e11d1952fb22'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN66_$LT$std..sys..unix..os_str..Slice$u20$as$u20$core..fmt..Debug$GT$3fmt17hf5d7370eb28a9da0E+0x34e): undefined reference to `core::fmt::Formatter::write_str::h4e75c39014ef8a4e'
[00:21:15]           /checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c2d90d418ff63bd7.rlib(std-c2d90d418ff63bd7.std.eiiv7ur7-cgu.0.rcgu.o): In function `_$LT$std..sys..unix..backtrace..tracing..imp..UnwindError$u20$as$u20$core..fmt..Debug$GT$::fmt::h75ced160e5eec281':
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN89_$LT$std..sys..unix..backtrace..tracing..imp..UnwindError$u20$as$u20$core..fmt..Debug$GT$3fmt17h75ced160e5eec281E+0x1f): undefined reference to `core::fmt::Formatter::debug_tuple::h712f6b8d88d0700d'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN89_$LT$std..sys..unix..backtrace..tracing..imp..UnwindError$u20$as$u20$core..fmt..Debug$GT$3fmt17h75ced160e5eec281E+0x38): undefined reference to `core::fmt::builders::DebugTuple::field::hc41dfa79e8114b63'
[00:21:15]           std.eiiv7ur7-cgu.0:(.text._ZN89_$LT$std..sys..unix..backtrace..tracing..imp..UnwindError$u20$as$u20$core..fmt..Debug$GT$3fmt17h75ced160e5eec281E+0x40): undefined reference to `core::fmt::builders::DebugTuple::finish::h255d55747f24187f'
[00:21:15]           
[00:21:15] 
[00:21:15] error: aborting due to previous error
[00:21:15] 
---
travis_time:end:0792a04a:start=1543549114599639030,finish=1543549114604903278,duration=5264248
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:33df3abe
$ 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:1b3ac056
travis_time:start:1b3ac056
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true

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:type_alias_enum_variants branch from f19488f to f75e0a4 Nov 30, 2018

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Nov 30, 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:0abdab18:start=1543599199125516414,finish=1543599201583208281,duration=2457691867
$ 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
---
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[00:19:47]    Compiling getopts v0.2.17
[00:19:47]    Compiling proc_macro v0.0.0 (/checkout/src/libproc_macro)
[00:19:47]    Compiling term v0.0.0 (/checkout/src/libterm)
[00:19:49] error[E0599]: no method named `encode` found for type `<std::collections::Bound<T> as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49] ...
[00:19:49] ...
[00:19:49] 201 | / rpc_encode_decode!(
[00:19:49] 202 | |     enum Bound<T> {
[00:19:49] 203 | |         Included(x),
[00:19:49] 204 | |         Excluded(x),
[00:19:49] 205 | |         Unbounded,
[00:19:49] 207 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<std::option::Option<T> as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49] ...
[00:19:49] ...
[00:19:49] 209 | / rpc_encode_decode!(
[00:19:49] 210 | |     enum Option<T> {
[00:19:49] 212 | |         Some(x),
[00:19:49] 213 | |     }
[00:19:49] 214 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<std::result::Result<T, E> as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49] ...
[00:19:49] ...
[00:19:49] 216 | / rpc_encode_decode!(
[00:19:49] 217 | |     enum Result<T, E> {
[00:19:49] 218 | |         Ok(x),
[00:19:49] 219 | |         Err(e),
[00:19:49] 221 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::TokenStream as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::TokenStreamBuilder as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::TokenStreamIter as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Group as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Punct as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Ident as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Literal as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::SourceFile as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::MultiSpan as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Diagnostic as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Span as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::api_tags::Method as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                 #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                             -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                         <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `bridge::<impl bridge::rpc::Encode<S> for Delimiter>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:351:1
[00:19:49]     |
[00:19:49] 351 | / rpc_encode_decode!(
[00:19:49] 352 | |     enum Delimiter {
[00:19:49] 353 | |         Parenthesis,
[00:19:49] ...   |
[00:19:49] 357 | |     }
[00:19:49] 358 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `bridge::<impl bridge::rpc::Encode<S> for diagnostic::Level>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:359:1
[00:19:49]     |
[00:19:49] 359 | / rpc_encode_decode!(
[00:19:49] 360 | |     enum Level {
[00:19:49] 362 | |         Warning,
[00:19:49] ...   |
[00:19:49] 365 | |     }
[00:19:49] 366 | | );
[00:19:49] 366 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `bridge::<impl bridge::rpc::Encode<S> for Spacing>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:368:1
[00:19:49]     |
[00:19:49] 368 | / rpc_encode_decode!(
[00:19:49] 369 | |     enum Spacing {
[00:19:49] 370 | |         Alone,
[00:19:49] 371 | |         Joint,
[00:19:49] 373 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] 
[00:19:49] error[E0599]: no method named `encode` found for type `<bridge::TokenTree<G, P, I, L> as bridge::rpc::Encode<S>>::encode::Tag` in the current scope
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:92:41
[00:19:49]     |
[00:19:49] 86  |                   #[repr(u8)] enum Tag { $($variant),* }
[00:19:49]     |                               -------- method `encode` not found for this
[00:19:49] ...
[00:19:49] 92  |                           <Tag>::$variant.encode(w, s);
[00:19:49]     | 
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:406:1
[00:19:49]     |
[00:19:49] 406 | / rpc_encode_decode!(
[00:19:49] 407 | |     enum TokenTree<G, P, I, L> {
[00:19:49] 408 | |         Group(tt),
[00:19:49] 409 | |         Punct(tt),
[00:19:49] 412 | |     }
[00:19:49] 413 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     |
[00:19:49]     = help: items from traits can only be used if the trait is implemented and in scope
[00:19:49]     = note: the following trait defines an item `encode`, perhaps you need to implement it:
[00:19:49]             candidate #1: `bridge::rpc::Encode`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                       $(<Tag>::$variant => {
[00:19:49]     |                         ^^^^^^^^^^^^^^^ expected u8, found enum `<std::collections::Bound<T> as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] ...
[00:19:49] 201 | / rpc_encode_decode!(
[00:19:49] 202 | |     enum Bound<T> {
[00:19:49] 203 | |         Included(x),
[00:19:49] 204 | |         Excluded(x),
[00:19:49] 205 | |         Unbounded,
[00:19:49] 207 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<std::collections::Bound<T> as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                       $(<Tag>::$variant => {
[00:19:49]     |                         ^^^^^^^^^^^^^^^ expected u8, found enum `<std::option::Option<T> as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] ...
[00:19:49] 209 | / rpc_encode_decode!(
[00:19:49] 210 | |     enum Option<T> {
[00:19:49] 212 | |         Some(x),
[00:19:49] 213 | |     }
[00:19:49] 214 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<std::option::Option<T> as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                       $(<Tag>::$variant => {
[00:19:49]     |                         ^^^^^^^^^^^^^^^ expected u8, found enum `<std::result::Result<T, E> as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] ...
[00:19:49] 216 | / rpc_encode_decode!(
[00:19:49] 217 | |     enum Result<T, E> {
[00:19:49] 218 | |         Ok(x),
[00:19:49] 219 | |         Err(e),
[00:19:49] 221 | | );
[00:19:49]     | |__- in this macro invocation
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<std::result::Result<T, E> as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                     $(<Tag>::$variant => {
[00:19:49]     |                       ^^^^^^^^^^^^^^^ expected u8, found enum `<bridge::api_tags::TokenStream as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<bridge::api_tags::TokenStream as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                     $(<Tag>::$variant => {
[00:19:49]     |                       ^^^^^^^^^^^^^^^ expected u8, found enum `<bridge::api_tags::TokenStreamBuilder as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<bridge::api_tags::TokenStreamBuilder as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                     $(<Tag>::$variant => {
[00:19:49]     |                       ^^^^^^^^^^^^^^^ expected u8, found enum `<bridge::api_tags::TokenStreamIter as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<bridge::api_tags::TokenStreamIter as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                     $(<Tag>::$variant => {
[00:19:49]     |                       ^^^^^^^^^^^^^^^ expected u8, found enum `<bridge::api_tags::Group as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<bridge::api_tags::Group as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49] error[E0308]: mismatched types
[00:19:49] error[E0308]: mismatched types
[00:19:49]    --> src/libproc_macro/bridge/rpc.rs:110:23
[00:19:49]     |
[00:19:49] 110 |                     $(<Tag>::$variant => {
[00:19:49]     |                       ^^^^^^^^^^^^^^^ expected u8, found enum `<bridge::api_tags::Punct as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
[00:19:49]     | 
[00:19:49]    ::: src/libproc_macro/bridge/mod.rs:254:5
[00:19:49]     |
[00:19:49] 254 |     with_api!(self, self, declare_tags);
[00:19:49]     |
[00:19:49]     = note: expected type `u8`
[00:19:49]     = note: expected type `u8`
[00:19:49]                found type `<bridge::api_tags::Punct as bridge::rpc::DecodeMut<'a, '_, S>>::decode::Tag`
---
153284 ./src/tools/clang
149728 ./obj/build/bootstrap/debug/incremental
146748 ./.git
134136 ./obj/build/bootstrap/debug/incremental/bootstrap-1plb86h2refwc
134132 ./obj/build/bootstrap/debug/incremental/bootstrap-1plb86h2refwc/s-f75rq7ao59-sxl4qz-2xn3crcwe77k0
131136 ./.git/modules/src
115344 ./src/llvm/test/CodeGen
107892 ./obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends
107420 ./src/tools/lldb

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 Nov 30, 2018

☔️ The latest upstream changes (presumably #56381) made this pull request unmergeable. Please resolve the merge conflicts.

@alexreg alexreg force-pushed the alexreg:type_alias_enum_variants branch 2 times, most recently from 7bb6ccd to 36b6e33 Dec 1, 2018

@rust-highfive

This comment was marked as outdated.

Collaborator

rust-highfive commented Dec 2, 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:274b2e9e:start=1543715596673757385,finish=1543715599757516777,duration=3083759392
$ 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

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 2, 2018

Big push coming up... I should be able to finish this tomorrow.

@alexreg alexreg force-pushed the alexreg:type_alias_enum_variants branch from 36b6e33 to b3f6ace Dec 3, 2018

// Everything but the penultimate segment should have no
// parameters at all.
let enum_def_id = self.tcx.parent_def_id(def_id).unwrap();
(enum_def_id, last - 1)

This comment has been minimized.

@petrochenkov

petrochenkov Dec 14, 2018

Contributor

What happens when you write module::<Args>::Variant rather than Enum::<Args>::Variant?

This comment has been minimized.

@alexreg

alexreg Dec 15, 2018

Contributor
error[E0425]: cannot find value `Variant` in module `Foo`

Looks good to me.

This comment has been minimized.

@petrochenkov

petrochenkov Dec 15, 2018

Contributor

No, that's an error from resolve, I mean the situation when variant name is actually present in the module, like std::prelude::v1::<Args>::None.

This comment has been minimized.

@alexreg

alexreg Dec 15, 2018

Contributor

Ah okay.

@petrochenkov

This comment has been minimized.

Contributor

petrochenkov commented Dec 14, 2018

r? @varkor
Could you review the generic arguments stuff in instantiate_value_path/def_ids_for_path_segments.

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 15, 2018

@varkor Indeed, your input would be much appreciated here. Everything seems to be working well except that type parameters within aliases aren't inferred properly.

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 15, 2018

@petrochenkov

Could you also add tests for these cases (I think they are going to ICE right now):

First two ICE, third errors.

error: internal compiler error: src/librustc_mir/hair/cx/expr.rs:956: def `VariantCtor(DefId(0/1:9 ~ type_alias_enum_variants_panic[317d]::Enum[0]::Variant[0]), Fictive)` not yet implemented
 --> src/test/ui/type-alias-enum-variants-panic.rs:7:5
  |
7 |     Alias::Variant;
  |     ^^^^^^^^^^^^^^

thread 'main' panicked at 'Box<Any>', src/librustc_errors/lib.rs:538:9

For let Alias::Variant = panic!();:

error: internal compiler error: src/librustc_typeck/check/_match.rs:771: unexpected pattern definition: VariantCtor(DefId(0/1:9 ~ type_alias_enum_variants_panic[317d]::Enum[0]::Variant[0]), Fictive)

thread 'main' panicked at 'Box<Any>', src/librustc_errors/lib.rs:600:9

For let Alias::Variant(..) = panic!();:

error[E0164]: expected tuple struct/variant, found struct variant `<Alias>::Variant`
 --> src/test/ui/type-alias-enum-variants-panic.rs:9:9
  |
9 |     let Alias::Variant(..) = panic!();
  |         ^^^^^^^^^^^^^^^^^^ not a tuple variant or struct

error: aborting due to previous error
@petrochenkov

This comment has been minimized.

Contributor

petrochenkov commented Dec 15, 2018

@alexreg
Apparently you forgot to push, because the comments marked as resolved don't actually look resolved.

@alexreg alexreg force-pushed the alexreg:type_alias_enum_variants branch from b53b2b3 to 0ca8dbd Dec 15, 2018

@rust-highfive

This comment was marked as resolved.

Collaborator

rust-highfive commented Dec 15, 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:0a6ff9c0:start=1544886757227398298,finish=1544886759492291722,duration=2264893424
$ 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:03:01] travis_fold:start:tidy
travis_time:start:tidy
tidy check
[00:03:02] tidy error: /checkout/src/test/run-pass/enum-variant-generic-args.rs:44: trailing whitespace
[00:03:02] tidy error: /checkout/src/librustc/traits/object_safety.rs:331: line longer than 100 chars
[00:03:02] tidy error: /checkout/src/librustc/traits/object_safety.rs:509: line longer than 100 chars
[00:03:03] some tidy checks failed
[00:03:03] 
[00:03:03] 
[00:03:03] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:03:03] 
[00:03:03] 
[00:03:03] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:03:03] Build completed unsuccessfully in 0:00:45
[00:03:03] Build completed unsuccessfully in 0:00:45
[00:03:03] Makefile:79: recipe for target 'tidy' failed
[00:03:03] make: *** [tidy] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:0dc482c3
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Sat Dec 15 15:15:51 UTC 2018
---
travis_time:end:1ee47b6e:start=1544886951901883547,finish=1544886951907522840,duration=5639293
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:030d80a6
$ 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:0fc1f1b5
travis_time:start:0fc1f1b5
$ 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:00a63f5a
$ 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:type_alias_enum_variants branch from 0ca8dbd to 97be251 Dec 15, 2018

@alexreg

This comment has been minimized.

Contributor

alexreg commented Dec 15, 2018

@petrochenkov Pushed now. CI results should be available soon, but you can see the failures from my above comments anyway... let me know your thoughts.

@rust-highfive

This comment has been minimized.

Collaborator

rust-highfive commented Dec 15, 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:0df8fbbe:start=1544890039133304943,finish=1544890041613195604,duration=2479890661
$ 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:41:51] .................................................................................................... 500/5180
[00:41:54] ..............................i..................................................................... 600/5180
[00:41:58] .................................................................................................... 700/5180
[00:42:03] .................................................................................................... 800/5180
[00:42:07] .i...............i.................................................................................. 900/5180
[00:42:10] ........................iiiii....................................................................... 1000/5180
[00:42:13] ............................F....................................................................... 1100/5180
[00:42:17] .................................................................................................... 1300/5180
[00:42:19] .................................................................................................... 1400/5180
[00:42:21] .................................................................................................... 1500/5180
[00:42:24] .............................i....................................................................i. 1600/5180
---
[00:44:02] .................................................................................................... 4500/5180
[00:44:05] .................................................................................................... 4600/5180
[00:44:08] .................................................................................................... 4700/5180
[00:44:11] .................................i.................................................................. 4800/5180
[00:44:14] ................................................F................................................... 4900/5180
[00:44:19] .................................................................................................... 5100/5180
[00:44:19] .................................................................................................... 5100/5180
sting" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/enum-variant-generic-args/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/enum-variant-generic-args/auxiliary" "-A" "unused"
[00:44:22]     Error {
[00:44:22]         line_num: 50,
[00:44:22]         kind: Some(
[00:44:22]             Error
[00:44:22]             Error
[00:44:22]         ),
[00:44:22]         msg: "50:5: 50:31: expected function, found struct variant `Enum::SVariant` [E0423]"
[00:44:22]     Error {
[00:44:22]         line_num: 19,
[00:44:22]         kind: Some(
[00:44:22]             Error
[00:44:22]             Error
[00:44:22]         ),
[00:44:22]         msg: "19:9: 19:29: expected function, found enum variant `<Self>::SVariant::<()>` [E0618]"
[00:44:22]     Error {
[00:44:22]         line_num: 21,
[00:44:22]         kind: Some(
[00:44:22]             Error
[00:44:22]             Error
[00:44:22]         ),
[00:44:22]         msg: "21:9: 21:29: expected function, found enum variant `<Self<()>>::SVariant` [E0618]"
[00:44:22]     Error {
[00:44:22]         line_num: 23,
[00:44:22]         kind: Some(
[00:44:22]             Error
[00:44:22]             Error
[00:44:22]         ),
[00:44:22]         msg: "23:9: 23:35: expected function, found enum variant `<Self<()>>::SVariant::<()>` [E0618]"
[00:44:22]     Error {
[00:44:22]         line_num: 53,
[00:44:22]         kind: Some(
[00:44:22]             Error

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 16, 2018

☔️ The latest upstream changes (presumably #56875) made this pull request unmergeable. Please resolve the merge conflicts.

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