-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
regression: parsing change in allow()? #117058
Comments
searched nightlies: from nightly-2023-08-01 to nightly-2023-10-10 bisected with cargo-bisect-rustc v0.6.6Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc 2023-08-01 --end 2023-10-10 --access github --regress error this bisection may look pretty nonsensical, but I did manually confirm that nightly-2023-09-14 worked and nightly-2023-09-16 didn't. I am surprised that this ever parsed, and given that there's only a single random repo that regressed, and the regressing code is a mistake, I don't think this is a problematic regression. @matthewjasper anyways. |
Agreed that we don't necessarily need a fix, but we should try to make sure that this is indeed limited to this one case (i.e., it's not some broader incompatibility that may have gone uncaught in Crater) |
The change here is that AST validation is now checking that the attribute is valid. Some other cases: fn allow_if() {
#[allow(two-words)]
if true {} else {}
#[allow(two-words)]
(1);
#[allow(two-words)]
match 1 { _ => {} }
#[allow(two-words)]
while false {}
} Marking as needs-test, with the new behavior being correct |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#117081 (fix typos in comments) - rust-lang#117091 (`OptWithInfcx` naming nits, trait bound simplifications) - rust-lang#117092 (Add regression test for rust-lang#117058) - rust-lang#117093 (Update books) - rust-lang#117105 (remove change-id assertion in bootstrap test) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#117092 - matthewjasper:attribute-validation, r=compiler-errors Add regression test for rust-lang#117058 The new behavior in nightly is correct, so add a test that it stays this way. Closes rust-lang#117058
https://crater-reports.s3.amazonaws.com/beta-1.74-4/beta-2023-10-21/gh/ken-matsui.diagonal-loop/log.txt
The text was updated successfully, but these errors were encountered: