This short snippet crashes the nightly compiler: enum Foo { Bar(usize), } fn main() { let i = Foo::Bar; assert_eq!(Foo::Bar, i); } Crashes with: error: internal compiler error: src/librustc_typeck/check/mod.rs:825: can't type-check body of DefId(0/1:10 ~ lib[317d]::Foo[0]::Bar[0]::{{constructor}}[0]) --> src/lib.rs:2:3 | 2 | Bar(usize), | ^^^^^^^^^^ thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:570:9 rustc 1.35.0-nightly (70f130954 2019-04-16) running on x86_64-apple-darwin Seems to work on stable on the playground (don't have stable locally).
Activity
hellow554 commentedon Apr 18, 2019
Backtrace
hellow554 commentedon Apr 18, 2019
Bug was introduced between e4c66af...aa99abe (2019-04-13 and 2019-04-014)
Bisecting shows that 464473a created the regression. CC #59798 @rchaser53
rchaser53 commentedon Apr 18, 2019
Sorry, I will try to fix it.
I will send the PR to fix this issue after 1-2h.
pnkfelix commentedon Apr 18, 2019
triage: P-high. (Unnominating since there doesn't seem to be much else to discuss)
Auto merge of #60073 - rchaser53:issue-60049, r=estebank