Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Repetition for unquotation #34

Merged
merged 2 commits into from
Apr 3, 2016

Conversation

pczarn
Copy link

@pczarn pczarn commented Mar 8, 2016

No description provided.

@pczarn pczarn force-pushed the sequence-repetition branch 3 times, most recently from ed06b85 to 8920300 Compare March 8, 2016 11:57
@pczarn pczarn force-pushed the sequence-repetition branch from 8920300 to 761674e Compare March 8, 2016 12:54
);

assert_eq!(pprust::expr_to_string(&expr), "(1 + 2, 2 * 3)");
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples are here, in tests.

@pczarn
Copy link
Author

pczarn commented Mar 9, 2016

For now, I'd like to add repetition to quasi, not to rustc's libsyntax, because prototyping is easier with aster and in a small repository.

@pczarn
Copy link
Author

pczarn commented Mar 18, 2016

@erickt could you review and merge?

@pczarn
Copy link
Author

pczarn commented Mar 24, 2016

/cc rust-lang/rust#24224 "syntax: Repeating fragments in quasiquotation"


let unit = ();

quote_expr!(&cx,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you test the value here? I'm guessing it's assert_eq!(pprust::expr_to_string(&expr), "()"); but it'd be nice to be sure.

edit: oops, I didn't see it was a #[should_panic], nevermind.

@erickt erickt merged commit 5619054 into serde-deprecated:master Apr 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants