-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Disallow shebang in --cfg
and --check-cfg
arguments
#146211
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
Conversation
|
Okay, so process-wise I'm not quite sure how to proceed. An MCP is overkill and a T-compiler FCP is also slightly overkill. I did add relnotes for formality. I'm inclined to just approve this unilaterally which I've done a few times for minor T-lang breaking changes over the years (notably only ones which were obviously not affecting real users and which were quite clearly bugs) (most recently in RUST-145604). Re. crater, it's not worth testing (esp. because of the high infra costs) and the beta crater runs would be sufficient in covering that. |
r=me with nitpicks addressed |
2983825
to
d224d3a
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
@bors r+ |
Honestly I'd say just do this, shebang was never intended to be supported in |
Disallow shebang in `--cfg` and `--check-cfg` arguments This PR is similar to rust-lang#146130, where we disallowed frontmatter in `--cfg` and `--check-cfg` arguments. While fixing the other one we also discovered that shebang `#!/usr/bin/shebang` are currently also allowed in `--cfg` and `--check-cfg` arguments. Allowing shebang in them (which are just ignored) was never intended, this PR fixes that by not stripping shebang for `--cfg` and `--check-cfg` arguments. This is technically a breaking-change, although I don't expect anyone to actually rely on this unintended behavior. Fixes rust-lang#146130 (comment) r? fmease
Disallow shebang in `--cfg` and `--check-cfg` arguments This PR is similar to rust-lang#146130, where we disallowed frontmatter in `--cfg` and `--check-cfg` arguments. While fixing the other one we also discovered that shebang `#!/usr/bin/shebang` are currently also allowed in `--cfg` and `--check-cfg` arguments. Allowing shebang in them (which are just ignored) was never intended, this PR fixes that by not stripping shebang for `--cfg` and `--check-cfg` arguments. This is technically a breaking-change, although I don't expect anyone to actually rely on this unintended behavior. Fixes rust-lang#146130 (comment) r? fmease
Rollup of 3 pull requests Successful merges: - #127316 (move pinned version from tracing_core to tracing) - #144801 (Suggest bounds in more cases, accounting for type parameters referenced in predicate) - #146211 (Disallow shebang in `--cfg` and `--check-cfg` arguments) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 5 pull requests Successful merges: - #127316 (move pinned version from tracing_core to tracing) - #144801 (Suggest bounds in more cases, accounting for type parameters referenced in predicate) - #146211 (Disallow shebang in `--cfg` and `--check-cfg` arguments) - #146263 (Fix `bump-stage0` build failure, and check-build `bump-stage0` in CI) - #146266 (miri std tests: skip all of sys::) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146211 - Urgau:cfg-disallow-shebang, r=fmease Disallow shebang in `--cfg` and `--check-cfg` arguments This PR is similar to #146130, where we disallowed frontmatter in `--cfg` and `--check-cfg` arguments. While fixing the other one we also discovered that shebang `#!/usr/bin/shebang` are currently also allowed in `--cfg` and `--check-cfg` arguments. Allowing shebang in them (which are just ignored) was never intended, this PR fixes that by not stripping shebang for `--cfg` and `--check-cfg` arguments. This is technically a breaking-change, although I don't expect anyone to actually rely on this unintended behavior. Fixes #146130 (comment) r? fmease
This PR is similar to #146130, where we disallowed frontmatter in
--cfg
and--check-cfg
arguments. While fixing the other one we also discovered that shebang#!/usr/bin/shebang
are currently also allowed in--cfg
and--check-cfg
arguments.Allowing shebang in them (which are just ignored) was never intended, this PR fixes that by not stripping shebang for
--cfg
and--check-cfg
arguments.This is technically a breaking-change, although I don't expect anyone to actually rely on this unintended behavior.
Fixes #146130 (comment)
r? fmease