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
you can check if there's a test in src/tests/ui that has a // compile-flags comment with -Z unpretty=hir in it. If there is, just add the above test line to it and run tests with ./x.py test --stage 1 src/test/ui --test-args name-of-the-test --bless.
Activity
Pulkit07 commentedon May 9, 2019
Hi, I will like to work on this issue.
oli-obk commentedon May 9, 2019
awesome!
Most likely all that is required is to remove
rust/src/librustc/hir/print.rs
Line 649 in d58cb93
you can check if there's a test in
src/tests/uithat has a// compile-flagscomment with-Z unpretty=hirin it. If there is, just add the above test line to it and run tests with./x.py test --stage 1 src/test/ui --test-args name-of-the-test --bless.If there is no such test, add such a test ;)
alexreg commentedon May 9, 2019
I think I fixed this in one of my PRs, but not sure when it will merge, so go for it. :-)
Pulkit07 commentedon May 10, 2019
While adding test, I am getting following error message:
unexpected error: '8:5: 8:43: existential types are unstable [E0658]'The existing test can be seen here: https://github.com/rust-lang/rust/pull/60694/files#diff-b122eeedc759d82eab86eafd6445ce8e
oli-obk commentedon May 10, 2019
you need to add
#![feature(existential_types)]to the testPulkit07 commentedon May 10, 2019
Added that, many thanks!
Fix HIR printing of existential type rust-lang#60662
Rollup merge of rust-lang#60694 - Pulkit07:issue60662, r=alexreg
Auto merge of #60767 - Centril:rollup-4cbsb73, r=Centril