Skip to content

Convert to inline diagnostics in rustc_borrowck#152107

Open
JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
JonathanBrouwer:convert_borrowck
Open

Convert to inline diagnostics in rustc_borrowck#152107
JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
JonathanBrouwer:convert_borrowck

Conversation

@JonathanBrouwer
Copy link
Contributor

@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 4, 2026
.is_some()
{
diag.span_note(bound.span, fluent::borrowck_limitations_implies_static);
diag.span_note(bound.span, inline_fluent!("due to a current limitation of the type system, this implies a `'static` lifetime"));
Copy link
Member

Choose a reason for hiding this comment

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

a slight downside in inlining the fluent message is sometimes we're using them more than once, like here and at line 702.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah this one should be fixable, just gotta make a const out of it. Done :)

@lqd
Copy link
Member

lqd commented Feb 4, 2026

I'll also take this one, r? me

@rustbot rustbot assigned lqd and unassigned jdonszelmann Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants