-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix quote tests #24718
Fix quote tests #24718
Conversation
|
||
#![feature(quote)] | ||
#![feature(quote, rustc_private)] | ||
|
||
extern crate syntax; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @rprichard that these tests which link to syntax
should be in compile-fail-fulldeps to ensure that the dependencies work out correctly during builds.
Thanks! |
|
||
fn check_pp<T>(expr: T, f: |pprust::ps, T|, expect: str) { | ||
panic!(); | ||
quote_expr!(&cx, let x isize = 20;).and_then(|expr| { //~ ERROR expected end-of-string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexcrichton do you have any thoughts on how this can be made to fail in the expected way? it currently compiles without issue and then crashes at runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I know very little about the quasiquoter so I'm not sure :(
8ac3341
to
a8b2382
Compare
OK, I think this should be good to merge after #24537 goes in. |
Apparently it won't, because @rprichard's branch is marked rollup.
|
@bors: rollup muahahaha |
Sniped from @rprichard's work in rust-lang#24537. r? @alexcrichton
This fails, but 874e093 might fix it. Please check locally. |
not quite - |
Sniped from @rprichard's work in rust-lang#24537. r? @alexcrichton
Sniped from @rprichard's work in rust-lang#24537. r? @alexcrichton
yeah, this caused the rollup to fail http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4686/steps/test/logs/stdio |
@bors: r- |
Re-enables the test.
Re-enables the test.
Ugh, the expected error message had a superfluous colon. Should be good now. |
This passes locally now! |
@bors: r=alexcrichton |
📌 Commit beb373b has been approved by |
I feel we should leave the test disabled until we've figured out a way to enable it that doesn't have missing dependencies. Presumably this change will break parallel |
@rprichard I'm trying to induce this failure: |
Sure, I'll take a stab at it. |
⌛ Testing commit beb373b with merge da62384... |
Sniped from @rprichard's work in #24537. r? @alexcrichton
Here's a commit adding I was able to reproduce a failure with
|
Nice, thanks! Since this PR is already building, do you think we could
|
I could go either way. We might want to avoid having a span of time where I verified that
|
In any case, I removed my |
@rprichard mind opening that PR or do you want me to? |
I'll open the PR. I verified that |
I needed to add a line to |
This commit gets `make check-stage1` working again after #24718. cc @tamird r? @alexcrichton
Sniped from @rprichard's work in #24537. r? @alexcrichton