Emit error when using path-segment keyword as cfg pred#146978
Emit error when using path-segment keyword as cfg pred#146978bors merged 1 commit intorust-lang:mainfrom
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
|
Filed #148910 |
|
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.
|
@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 |
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
|
I will request retry after cargo updated |
This comment was marked as resolved.
This comment was marked as resolved.
This comment has been minimized.
This comment has been minimized.
|
This PR was rebased onto a different main 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. |
This comment has been minimized.
This comment has been minimized.
|
Still need to update some tests failing on CI. |
|
@rustbot ready |
|
@bors r+ |
View all comments
Fixes #146968
Emit error
CfgPredicateIdentifierif the word is path-segment keyword.Detailed change description - #146978 (comment).
r? petrochenkov