-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc
doesn't output anything but exits with 101 and doesn't emit any files
#52913
Comments
If I set breakpoints on
It hits the first two but not the third, seemingly pointing to |
The silent exit is a regression. From godbolt,
|
cc @rust-lang/compiler -- it'd be good to find out why we stopped providing any output at all here |
I'm worried it might be one of my parser changes to provide better diagnostics... I would probably check for any odd looking |
rust/src/libsyntax/parse/parser.rs Line 1349 in 11f812a
rust/src/libsyntax/parse/parser.rs Lines 4940 to 4963 in 11f812a
|
It's not the parsing itself, it's that in 1.24 the feature was introduced: #45904. |
@estebank do you think you see what the problem is? |
Calling P-high but we don't yet have an obvious assignee. Still, seems bad that there is no diagnostic output at all! Not a good look. |
The core issue is reported in #47206. However, the example here also demonstrates that |
I've made #53235 to address the surface problem, which is that you can trigger this on stable, without declaring the |
Narrowing it down a little more: rust/src/librustc_typeck/astconv.rs Lines 1157 to 1163 in 1aa6c23
path.def is Def::Err at this point when the where clauses are defined, so something's going wrong before that point.
|
Feature gate where clauses on associated type impls Fixes rust-lang#52913. This doesn't address the core problem, which is tracked by rust-lang#47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.
Feature gate where clauses on associated type impls Fixes rust-lang#52913. This doesn't address the core problem, which is tracked by rust-lang#47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.
Feature gate where clauses on associated type impls Fixes rust-lang#52913. This doesn't address the core problem, which is tracked by rust-lang#47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.
Compiling this code results in no output by
rustc
. Butrustc
exits with 101 and does not produce any artifacts. (On Playground)The error happens with:
rustc 1.27.1 (5f2b325f6 2018-07-07)
,rustc 1.27.2 (58cc626de 2018-07-18)
, andrustc 1.29.0-nightly (874dec25e 2018-07-21)
The text was updated successfully, but these errors were encountered: