You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustc doesn't output anything but exits with 101 and doesn't emit any files #52913
error: expected `=`, found `where`
--> <source>:6:14
|
6 | type Out where T: Clone = T;
| ^^^^^
error[E0046]: not all trait items implemented, missing: `Out`
--> <source>:5:1
|
2 | type Out;
| --------- `Out` from trait
...
5 | / impl<T> Foo for Box<T> {
6 | | type Out where T: Clone = T;
7 | | }
| |_^ missing `Out` in implementation
error: aborting due to 2 previous errors
exit code = 101
1.24.0–1.25.0
error: cannot continue compilation due to previous error
I've made #53235 to address the surface problem, which is that you can trigger this on stable, without declaring the generic_associated_types feature. I thought it was better to fix that part of the problem straight away.
Activity
shepmaster commentedon Jul 31, 2018
If I set breakpoints on
rustc::middle::stability::check_unstable_api_usagerustc_typeck::check_craterustc_passes::rvalue_promotion::check_crateIt hits the first two but not the third, seemingly pointing to
rustc_typeck::check_cratereturning anErr.kennytm commentedon Aug 1, 2018
The silent exit is a regression. From godbolt,
1.23.0
exit code = 101
1.24.0–1.25.0
exit code = 101
1.26.0–1.28.0(beta)
No message, exit code = 101
1.29.0(nightly)
No message, exit code = 1
Mark-Simulacrum commentedon Aug 1, 2018
cc @rust-lang/compiler -- it'd be good to find out why we stopped providing any output at all here
estebank commentedon Aug 1, 2018
I'm worried it might be one of my parser changes to provide better diagnostics... I would probably check for any odd looking
err.cancel().estebank commentedon Aug 1, 2018
rust/src/libsyntax/parse/parser.rs
Line 1349 in 11f812a
rust/src/libsyntax/parse/parser.rs
Lines 4940 to 4963 in 11f812a
estebank commentedon Aug 1, 2018
It's not the parsing itself, it's that in 1.24 the feature was introduced: #45904.
nikomatsakis commentedon Aug 9, 2018
@estebank do you think you see what the problem is?
nikomatsakis commentedon Aug 9, 2018
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.
varkor commentedon Aug 9, 2018
The core issue is reported in #47206. However, the example here also demonstrates that
whereclauses aren't being feature gated properly.varkor commentedon Aug 9, 2018
I've made #53235 to address the surface problem, which is that you can trigger this on stable, without declaring the
generic_associated_typesfeature. I thought it was better to fix that part of the problem straight away.varkor commentedon Aug 9, 2018
Narrowing it down a little more:
rust/src/librustc_typeck/astconv.rs
Lines 1157 to 1163 in 1aa6c23
path.defisDef::Errat this point when thewhereclauses are defined, so something's going wrong before that point.Rollup merge of rust-lang#53235 - varkor:gat_impl_where, r=estebank