Skip to content

Comments

mGCA: improve ogca diagnostic message #152952

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
zedddie:improve-diag
Feb 25, 2026
Merged

mGCA: improve ogca diagnostic message #152952
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
zedddie:improve-diag

Conversation

@zedddie
Copy link
Contributor

@zedddie zedddie commented Feb 22, 2026

r? BoxyUwU

@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2026

HIR ty lowering was modified

cc @fmease

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 22, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2026

BoxyUwU is currently at their maximum review capacity.
They may take a while to respond.

Comment on lines +423 to +427
pub(crate) is_ogca: bool,
#[help(
"consider factoring the expression into a `type const` item and use it as the const argument instead"
)]
pub(crate) help_ogca: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does merging these two fields not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, fluent parsing reqire item inside structure, and when there is #[help] macro associated with it, it doesn't recognize it as argument anymore and give ICE as it cant find arg

@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 24, 2026

thx for working on this

@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 24, 2026

@rustbot author

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 24, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 24, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 24, 2026
@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 24, 2026

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 24, 2026

📌 Commit 2b3a2da has been approved by BoxyUwU

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 24, 2026
rust-bors bot pushed a commit that referenced this pull request Feb 25, 2026
Rollup of 12 pull requests

Successful merges:

 - #149169 (ptr::replace: make calls on ZST null ptr not UB)
 - #150562 (Fix doc link used in suggestion for pinning self)
 - #152418 (`BTreeMap::merge` optimized)
 - #152679 (rustc_expand: improve diagnostics for non-repeatable metavars)
 - #152952 (mGCA: improve ogca diagnostic message )
 - #152977 (Fix relative path handling for --extern-html-root-url)
 - #153017 (Implement debuginfo for unsafe binder types)
 - #152868 (delete some very old trivial `Box` tests)
 - #152922 (rustc_public: Make fields that shouldn't be exposed visible only in `rustc_public`)
 - #153032 (Fix attribute parser and kind names.)
 - #153051 (Migration of `LintDiagnostic` - part 3)
 - #153060 (Give a better error when updating a submodule fails)
@rust-bors rust-bors bot merged commit cc8a33a into rust-lang:main Feb 25, 2026
11 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 25, 2026
rust-timer added a commit that referenced this pull request Feb 25, 2026
Rollup merge of #152952 - zedddie:improve-diag, r=BoxyUwU

mGCA: improve ogca diagnostic message

r? BoxyUwU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants