-
Notifications
You must be signed in to change notification settings - Fork 14k
Emit error when using path-segment keyword as cfg pred #146978
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
base: main
Are you sure you want to change the base?
Conversation
|
Some changes occurred in compiler/rustc_attr_parsing |
|
Could you
After that we should be able to run crater on this. |
|
Reminder, once the PR becomes ready for a review, use |
505d13f to
b2be57d
Compare
This comment has been minimized.
This comment has been minimized.
|
|
@rustbot ready |
|
@petrochenkov I found rust/compiler/rustc_session/src/parse.rs Lines 318 to 329 in a2db928
and the comment of rust/compiler/rustc_errors/src/emitter.rs Lines 537 to 562 in 8155734
|
|
I have debug the logic in |
|
Ah, ok, "fatal emitter" means "fatal-only emitter". In any case, the behavior is not correct. |
This comment has been minimized.
This comment has been minimized.
956aa91 to
97cd2c7
Compare
This comment has been minimized.
This comment has been minimized.
97cd2c7 to
a7d6090
Compare
This comment has been minimized.
This comment has been minimized.
a7d6090 to
c8bc460
Compare
This comment has been minimized.
This comment has been minimized.
cc53ca4 to
9c2ed4c
Compare
|
💔 Test failed - checks-actions |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
This comment was marked as outdated.
This comment was marked as outdated.
|
@bors retry |
|
Filed #148910 |
…g-pred, r=petrochenkov Emit error when using path-segment keyword as cfg pred Fixes rust-lang#146968 Emit error `CfgPredicateIdentifier` if the word is path-segment keyword. Detailed change description - rust-lang#146978 (comment). r? petrochenkov
…g-pred, r=petrochenkov Emit error when using path-segment keyword as cfg pred Fixes rust-lang#146968 Emit error `CfgPredicateIdentifier` if the word is path-segment keyword. Detailed change description - rust-lang#146978 (comment). r? petrochenkov
…g-pred, r=petrochenkov Emit error when using path-segment keyword as cfg pred Fixes rust-lang#146968 Emit error `CfgPredicateIdentifier` if the word is path-segment keyword. Detailed change description - rust-lang#146978 (comment). r? petrochenkov
Rollup of 14 pull requests Successful merges: - #146978 (Emit error when using path-segment keyword as cfg pred) - #148543 (Correctly link to associated trait items in reexports) - #148808 (Some resolve cleanups) - #148812 (coverage: Associate hole spans with expansion tree nodes ) - #148826 (CStr docs: Fix CStr vs &CStr confusion) - #148850 (Implement `Read::read_array`) - #148867 (Refactor `Box::take`) - #148870 (Remove unused LLVMModuleRef argument) - #148878 (error when ABI does not support guaranteed tail calls) - #148901 (Disable rustdoc-test-builder test partially for SGX target.) - #148902 (add missing s390x target feature to std detect test) - #148904 (waffle: stop watching codegen ssa) - #148906 (Expose fmt::Arguments::from_str as unstable.) - #148907 (add assembly test for infinite recursion with `become`) r? `@ghost` `@rustbot` modify labels: rollup
…etrochenkov Emit error when using path-segment keyword as cfg pred Fixes #146968 Emit error `CfgPredicateIdentifier` if the word is path-segment keyword. Detailed change description - #146978 (comment). r? petrochenkov
|
Possibly failed in rollup: #148927 (comment) @bors r- |
|
@bors try jobs=x86_64-gnu-aux |
This comment has been minimized.
This comment has been minimized.
…try> Emit error when using path-segment keyword as cfg pred try-job: x86_64-gnu-aux
|
@bors retry |
|
seems test failed in https://github.com/rust-lang/cargo/blob/2d4fa139552ebdd5f091a1401ed03f7dc62cb43f/tests/testsuite/cfg.rs#L783-L819 I'll fix it later |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for 097ec3c failed: CI. Failed jobs:
|
Fixes #146968
Emit error
CfgPredicateIdentifierif the word is path-segment keyword.Detailed change description - #146978 (comment).
r? petrochenkov