-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 very simple edition check to tidy. #63087
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @Centril |
Code looks good, I think; did you verify locally that e.g. removing Also cc @Mark-Simulacrum. |
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 would put this check into a separate file; this file is sort of vestigial (we don't generally use extern crate in 2018) and I think it's plausible we'll eventually just delete it, so it'd be good to have this check in a separate pass. cc #62036
r? @Mark-Simulacrum for better precision reviewership... ;) |
Did a local run, and found that this didn't work as expected. There's a bug in So i moved out the code to a separate module. Got this result:
Do we want to ignore or change some of them? |
The ones which are local, i.e., not in submodules, let's fix in this PR and ignore the others via a whitelist in tidy, we can fix them at a later point. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Is it possible to set the edition through rustbuild, or at least workspaces instead? It's certainly possible to do at |
Doesn't that mess with the ability to |
@Centril |
I've I'm also a bit "philosophically" inclined towards crates that are standalone and |
Cargo seems to not support setting the edition key in workspaces (rust-lang/cargo#5784) but I haven't actually tested. I think for the most part since I'm currently using
However, even if I was to migrate to Ideally here we'd probably fix the Cargo feature request but that needs buy-in from the Cargo team (and time). |
@Mark-Simulacrum ready for review again modulo the one comment by @petrochenkov above. |
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.
r=me modulo last nit
Could you squash the changes into one commit? Feel free to approve after doing so @bors delegate+ |
✌️ @crlf0710 can now approve this pull request |
@bors r+ |
📌 Commit 870efe3 has been approved by |
@bors r- r=Mark-Simulacrum rollup |
📌 Commit 870efe3 has been approved by |
Add very simple edition check to tidy. Fixes rust-lang#58099.
Add very simple edition check to tidy. Fixes rust-lang#58099.
Add very simple edition check to tidy. Fixes rust-lang#58099.
Add very simple edition check to tidy. Fixes rust-lang#58099.
Rollup of 12 pull requests Successful merges: - #61965 (Remove mentions of removed `offset_to` method from `align_offset` docs) - #62928 (Syntax: Recover on `for ( $pat in $expr ) $block`) - #63000 (Impl Debug for Chars) - #63083 (Make generic parameters always use modern hygiene) - #63087 (Add very simple edition check to tidy.) - #63093 (Properly check the defining scope of existential types) - #63096 (Add tests for some `existential_type` ICEs) - #63099 (vxworks: Remove Linux-specific comments.) - #63106 (ci: Skip installing SWIG/xz on OSX ) - #63108 (Add links to None in Option doc) - #63109 (std: Fix a failing `fs` test on Windows) - #63111 (Add syntactic and semantic tests for rest patterns, i.e. `..`) Failed merges: r? @ghost
Fixes #58099.