Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Making the example use 2018 behaviour the default.
Here are the changes working in the playground (note 2018 selected):
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=931cef3284f7178eb62554da4a2c035b
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=aaf7f7a741bae6f15de710a16a7340ed
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=619ddc6c95a9a02bd94fd9e19d22c445
Other top 20 crates are updating as well so this is to fall in line. Didn't mention 2015 compatibility as this has largely been ignored elsewhere (except in log crate), with the assumption that anyone on older versions of Rust will know the extern crate syntax.
Having the default 2018 changes in means less friction for new Rustaceans, a lot of whom will only have adopted it post 2018 introduction.
FYI, I can update to include some sort of nod to 2015 if there is a need from the maintainers 👍
Lastly, I noticed docs.rs will still use older syntax. Not sure whether this should be addressed as well. Let me know on merge and I can look into it.