-
Notifications
You must be signed in to change notification settings - Fork 14.1k
contracts: fix lowering final declaration without trailing semicolon #149722
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
contracts: fix lowering final declaration without trailing semicolon #149722
Conversation
This comment has been minimized.
This comment has been minimized.
5d50b54 to
0743e5a
Compare
This comment has been minimized.
This comment has been minimized.
0743e5a to
5db6d3a
Compare
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.
Yeah, please #![expect(incomplete_features)] for this test, otherwise looks good.
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
Lowering for contract delcarations incorrectly handled the final declaration statement when it didn't end in a semicolon. This change fixes the issue.
5db6d3a to
d54fee8
Compare
|
@rustbot ready |
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.
|
@bors r+ rollup |
…warning-in-tests, r=Kivooeo,jieyouxu contracts: clean up feature flag warning duplicated across tests There is no need for every contracts test to assert the same warning for using the `contracts` feature flag, as such use `#![expect(incomplete_features)]` in the tests, and add one test to specifically check for the warning. Making this change has been discussed in the comments of rust-lang#149722. Contracts tracking issue: rust-lang#128044 r? Kivooeo
Rollup of 8 pull requests Successful merges: - #148935 (Fix division syntax in doc comments) - #149207 (Add `ilog10` result range hints) - #149676 (Tidying up tests/ui/issues tests [3/N]) - #149710 (Move ambient gdb discovery from compiletest to bootstrap) - #149714 (Check associated type where-clauses for lifetimes) - #149722 (contracts: fix lowering final declaration without trailing semicolon) - #149736 (contracts: clean up feature flag warning duplicated across tests) - #149739 (mailmap: add binarycat) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #149736 - dawidl022:contracts/chore/cleanup-warning-in-tests, r=Kivooeo,jieyouxu contracts: clean up feature flag warning duplicated across tests There is no need for every contracts test to assert the same warning for using the `contracts` feature flag, as such use `#![expect(incomplete_features)]` in the tests, and add one test to specifically check for the warning. Making this change has been discussed in the comments of #149722. Contracts tracking issue: #128044 r? Kivooeo
Rollup merge of #149722 - dawidl022:contracts/fix/parsing-compound-statements, r=jieyouxu contracts: fix lowering final declaration without trailing semicolon Lowering for contract delcarations introduced in #144444 incorrectly handled the final declaration statement when it didn't end in a semicolon. This change fixes the issue. See the included regression test for the minimal reproducible example. Contracts tracking issue: #128044
Lowering for contract delcarations introduced in #144444 incorrectly handled the final declaration statement when it didn't end in a semicolon. This change fixes the issue.
See the included regression test for the minimal reproducible example.
Contracts tracking issue: #128044