-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Add regression test for #22471 #24979
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r- |
I'm sorry I messed up the rollup PR! The weird thing is: When I run
locally, the test passes, but it fails when I run
However, when I run the exact same command that the test runner claims to compile the test with, compilation works without errors. Compiling with another (nightly f9e53c7 2015-04-24) locally installed version of rustc works fine too. Perhaps there is something I still don't understand about the testing system, but I thought if a test compiles fine using the just compiled rustc and using an older version, too, the test should be good to go. |
No problem. Put an |
Ok, I added the |
It runs the test through the prettifier ( |
Ah, I see! In this particular case it turns type Foo<T> where T: Copy = Box<T>; into type Foo<T> = Box<T> where T: Copy; The latter fails with
while the former compiles fine. Isn't that a bug in the prettifier if it transforms working code into non-compiling? |
Yes, please file it! :) |
Ok. 😃 |
This can be merged now, as #25092 has landed. |
Closes #22471.