-
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
Explain why non_snake_case
is skipped for binary crates and cleanup tests
#130599
Conversation
rustbot has assigned @petrochenkov. Use |
@bors rollup=iffy (this might bounce due to unsupported crate types for specific targets, but it's probably better to ignore when necessary instead of just running this for |
I notice that this also gets rid of two extra I don't object to that, but I just want to double-check that it was intentional. |
I dropped those versions because AFAICT when the check for executable crate type is skipped, the different ways to set crate types/names are indistinguishable to the check as part of a late lint pass. I can add them back in if you think those should be retained. |
Nah, if there's no reason to think the extra variants will be useful then it seems fine to get rid of them. |
r=me with #130599 (comment) answered. |
@bors r+ |
This comment was marked as outdated.
This comment was marked as outdated.
…r=petrochenkov Explain why `non_snake_case` is skipped for binary crates and cleanup tests - Explain `non_snake_case` lint is skipped for bin crate names because binaries are not intended to be distributed or consumed like library crates (rust-lang#45127). - Coalesce the bunch of tests into a single one but with revisions, which is easier to compare the differences for `non_snake_case` behavior with respect to crate types. Follow-up to rust-lang#121749 with some more comments and test cleanup. cc `@saethlin` who bumped into one of the tests and was confused why it was `only-x86_64-unknown-linux-gnu`.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
aebc28e
to
9ae1fb4
Compare
@bors try |
…r=<try> Explain why `non_snake_case` is skipped for binary crates and cleanup tests - Explain `non_snake_case` lint is skipped for bin crate names because binaries are not intended to be distributed or consumed like library crates (rust-lang#45127). - Coalesce the bunch of tests into a single one but with revisions, which is easier to compare the differences for `non_snake_case` behavior with respect to crate types. Follow-up to rust-lang#121749 with some more comments and test cleanup. cc `@saethlin` who bumped into one of the tests and was confused why it was `only-x86_64-unknown-linux-gnu`. try-job: dist-i586-gnu-i586-i686-musl
☀️ Try build successful - checks-actions |
Changes since last review:
@rustbot ready |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f48c99a): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -2.5%, secondary 2.0%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary 1.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 769.225s -> 768.677s (-0.07%) |
non_snake_case
lint is skipped for bin crate names because binaries are not intended to be distributed or consumed like library crates (Don't enforce snake_case for binary names #45127).non_snake_case
behavior with respect to crate types.Follow-up to #121749 with some more comments and test cleanup.
cc @saethlin who bumped into one of the tests and was confused why it was
only-x86_64-unknown-linux-gnu
.try-job: dist-i586-gnu-i586-i686-musl