-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Remove some feature flag usage from libsyntax #24487
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors-servo: r+ |
📌 Commit c499fee has been approved by |
Fixed the tidy issue and eliminated a few other feature flags. |
pub struct Printer<'a> { | ||
pub out: Box<io::Write+'a>, | ||
pub struct Printer<W> { | ||
pub out: W, |
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.
In the past we've had some pretty bad code bloat problems by having a totally generic pretty printer, so I'm curious what instigated this change?
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 was trying to make it easy to get to the underlying Vec
so I could get rid of the reference to TraitObject
and the transmute, but I can try a different approach.
@alexcrichton: turned out I could have saved myself a bunch of time trying to get rid of ... I think serde might have gotten me addicted to type parameters... |
☔ The latest upstream changes (presumably #23985) made this pull request unmergeable. Please resolve the merge conflicts. |
⌛ Testing commit 51a2935 with merge 7805349... |
💔 Test failed - auto-linux-64-nopt-t |
|
Replace Path::exists with stable metadata call.
@alexcrichton: I included a few more commits that haven't been reviewed. I don't think you've seen the last 4 yet. |
Looks good to me! Could this hold off on the last commit for now though? Duplicating that kind of code is a bit unfortunate and there's still other features in use by libsyntax so we can hold off on the duplication as long as possible (hopefully!) |
@alexcrichton: Sure no problem. I'll remove that patch for now. |
This removes the usage of `#[feature(into_cow, slice_patterns, box_syntax, box_patterns, quote, unsafe_destructor)]` from being used in libsyntax. My main desire for this is that it brings me one step closer to letting [syntex](https://github.com/erickt/rust-syntex) compile with stable rust. Hopefully this doesn't inconvenience rust development.
This removes the usage of
#[feature(into_cow, slice_patterns, box_syntax, box_patterns, quote, unsafe_destructor)]
from being used in libsyntax. My main desire for this is that it brings me one step closer to letting syntex compile with stable rust. Hopefully this doesn't inconvenience rust development.