Skip to content

Fix long type on diagnostics for conditionally implemented traits - #161818

Merged
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
lsunsi:issue161439
Aug 27, 2026
Merged

Fix long type on diagnostics for conditionally implemented traits#161818
rust-bors[bot] merged 3 commits into
rust-lang:mainfrom
lsunsi:issue161439

Conversation

@lsunsi

@lsunsi lsunsi commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #161439.

This PR adds a short_string where it seemed to be missing according to the issue and the code surroundings.
The test for it used for base the test from #158494, but with different compiler flags.

Thanks @philss @brunojabs

@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 Aug 26, 2026
@rustbot

rustbot commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 75 candidates
  • Random selection from 18 candidates

@JonathanBrouwer JonathanBrouwer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rust-bors

rust-bors Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1908058 has been approved by JonathanBrouwer

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-review Status: Awaiting review from the assignee but also interested parties. labels Aug 26, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 26, 2026
Fix long type on diagnostics for conditionally implemented traits

Fixes rust-lang#161439.

This PR adds a short_string where it seemed to be missing according to the issue and the code surroundings.
The test for it used for base the test from rust-lang#158494, but with different compiler flags.

Thanks @philss @brunojabs
@JonathanBrouwer

Copy link
Copy Markdown
Member

Oh just remembered I wanted to say thanks for the good commits! First committing the test and then the changes that fix the problem with the test diff is so nice when reviewing

@lsunsi

lsunsi commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

@JonathanBrouwer Thanks for mentioning, I'll keep up this structure on the next PRs!

rust-bors Bot pushed a commit that referenced this pull request Aug 26, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #160651 (mir: validate `Move` call arguments are locals or box derefs)
 - #161736 (Tidy: show todo reason when lint fails (and fix the lint's tidy allow statement which was weird and broken...))
 - #161052 (Add regression test for generic inference)
 - #161818 (Fix long type on diagnostics for conditionally implemented traits)
rust-bors Bot pushed a commit that referenced this pull request Aug 26, 2026
Rollup of 5 pull requests

Successful merges:

 - #159502 (Enhance suggestions for unresolved links with typos path)
 - #161052 (Add regression test for generic inference)
 - #161210 (Improve missing extern crate diagnostics in Rust 2015)
 - #161818 (Fix long type on diagnostics for conditionally implemented traits)
 - #161839 (Fix doc link to pointer::addr)
@rust-bors
rust-bors Bot merged commit f35d181 into rust-lang:main Aug 27, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Aug 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 27, 2026
Rollup merge of #161818 - lsunsi:issue161439, r=JonathanBrouwer

Fix long type on diagnostics for conditionally implemented traits

Fixes #161439.

This PR adds a short_string where it seemed to be missing according to the issue and the code surroundings.
The test for it used for base the test from #158494, but with different compiler flags.

Thanks @philss @brunojabs
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.

Diagnostics show long untruncated type

4 participants