-
Notifications
You must be signed in to change notification settings - Fork 299
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 TryFrom impls for path, scheme, uri and authority #308
Conversation
Are the traits actually stable yet? |
Ok. This is actually rather confusing. I got a clippy notification that they were stable and had removed all the feature attributes from my projects over the last 2 weeks. But now, after your comment is the first time, I'm actually looking through the rust changelog -- couldn't find it, and rust-lang/rust#58015 rust-lang/rust#33417 seems to indicate it may not have. Hmm. |
Ok. Just tracked it down: rust-lang/rust#58302 |
Thanks for the PR. We will have to wait until Also, currently, the |
Sounds good. I probably had mistaken the clippy nightly build for a stable one. @carllerche also, a quick stab at the process:
|
Unfortunately, the |
Ah. I'd have thought to simply leave |
There's now a 0.2.x branch to start making these changes, and #317 to track the complete replacement of Would you like to continue this PR? |
Sure. This is definitely something I'd like to see. Is this planned to be backward compatible with older versions of rustc still? Or is it post |
I had just assumed that we couldn't really support both, as there'd be conflicts, but maybe it works? I haven't really thought about that... |
Since it's not a breaking change in rustc and just an addition, I think we can - but will just have to done with config flags, and build.rs gates - Just moving ahead is probably much easier with a nicer codebase. Personally, I don't really see much benefit to jumping through hoops to support older rustc. |
Yea, we're already needing a new rustc version for other breaking changes, so cleaner seems best. I suppose if there's a not-too-hard way that we can support it via deprecation, that'd be nice for users upgrading, but deprecation and changing trait bounds is hard to do in Rust. |
@prasannavl I'm just catching up on this issue, but this is something I wanted for a bit in |
So sorry, this has been held up so long. Couldn't make time. @davidbarsky, I had done some partial bits - was planning on finishing this the coming weekend. However, if you'd like to take this up before, that would be great! :) |
@prasannavl No worries! I don't want to trample over your work, hence me asking! |
@davidbarsky - I'm afraid I couldn't put much time into it. So created a new PR on the 0.2.x branch with a small change set containing just the bits here so it's unblocked for further work. Think we can close this? @weifenbachja - would you mind reviewing this at #333? I don't think I have the necessary rights to add reviewers there. |
No description provided.