-
Notifications
You must be signed in to change notification settings - Fork 13.3k
manually test converting a bunch of crates to rust 2018 preview #51180
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
Comments
crates that work:
crates that don't work:
|
The instructions should include didn't work:
Build works, but tests fail to compile with two errors:
For the first error, we have a For the second error, we have a |
Failing: https://github.com/AdamNiederer/faster/commits/rust-2018-migration
It looks like |
Clippy (branch here) builds and passes tests after changing deprecated rustfmt annotation. |
Wow, thanks all =) I updated the issue with notes and filed bugs where appropriate. One point I wanted to make: the transition is not meant to necessarily be perfect, since it is known that there will be edge cases — especially around |
ipnetwork works fine! |
hlua doesn't migrate:
|
I decided "go big or go home", went big, and ... won the game. I dunno where this metaphor is going. Anyway, Cargo works! I'm going to test some more crates and update this comment as they compile.
thanks has... problems: https://gist.github.com/steveklabnik/31e1f5b576aa2ed13e5a671c48d03cc0 |
UUID works! |
Thanks everyone for the feedback here; we've filed some issues to track them and will be working to fix the outstanding bugs. |
What is this?
This is a meta issue for tracking manual testing of "upgrading" crates to Rust 2018 preview. We're hoping to kick the tires for a lot of crates. There's a list below, but feel free to test your own additions and leave comments.
How to test a crate
The steps are described here in the transition guide, but here is a cheat sheet:
rustup update nightly
cargo install cargo-fix --git https://github.com/rust-lang-nursery/rustfix
cargo +nightly build
src/lib.rs
and add#![feature(rust_2018_preview)]
cargo +nightly build
rust-2018-migration
):git commit -a -m 'add rust_2018_preview feature'
cargo +nightly fix --prepare-for 2018
cargo +nightly build
git commit -a -m 'run rustfix
Cargo.toml
:cargo-features = ["edition"]
package.edition = "2018"
cargo +nightly build
git commit -a -m 'upgraded to new edition
If all of this works, great! Leave a comment below, including a link to the commit or branch with the changes.
If you encounter an error due to the migration, leave a comment below with a link to the commit and the error!
Crate listing
#[cfg(test)]
code fails, filed some kind of #[cfg] story for rustfix #51208faster
fails to migrate #51211The text was updated successfully, but these errors were encountered: