Skip to content

On E0277 tweak help when single type impls traits - #154161

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
estebank:e0277-ty-impls
Mar 23, 2026
Merged

On E0277 tweak help when single type impls traits#154161
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
estebank:e0277-ty-impls

Conversation

@estebank

Copy link
Copy Markdown
Contributor

When encountering an unmet predicate, when we point at the trait impls that do exist, if they are all for the same self type, tweak the wording to make it less verbose.

When encountering an unmet predicate, when we point at the trait impls that do exist, if they are all for the same self type, tweak the wording to make it less verbose.
@rustbotrustbot added A-run-make Area: port run-make Makefiles to rmake.rs 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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Mar 21, 2026
@rustbot

Copy link
Copy Markdown
Collaborator

r? @davidtwco

rustbot has assigned @davidtwco.
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 69 candidates
  • Random selection from 14 candidates

@KivooeoKivooeo assigned Kivooeo and unassigned davidtwcoMar 22, 2026
@Kivooeo

Copy link
Copy Markdown
Member

looks good!

@bors r+ rollup

@rust-bors

rust-borsBot commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 3ad92c9 has been approved by Kivooeo

It is now in the queue for this repository.

@rust-borsrust-borsBot 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 Mar 22, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 23, 2026
On E0277 tweak help when single type impls traits
When encountering an unmet predicate, when we point at the trait impls that do exist, if they are all for the same self type, tweak the wording to make it less verbose.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 23, 2026
On E0277 tweak help when single type impls traits
When encountering an unmet predicate, when we point at the trait impls that do exist, if they are all for the same self type, tweak the wording to make it less verbose.
This was referenced Mar 23, 2026
rust-borsBot pushed a commit that referenced this pull request Mar 23, 2026
…uwer
Rollup of 13 pull requests
Successful merges:
- #154241 (`rust-analyzer` subtree update)
- #153686 (`std`: include `dlmalloc` for all non-wasi Wasm targets)
- #154105 (bootstrap: Pass `--features=rustc` to rustc_transmute)
- #153069 ([BPF] add target feature allows-misaligned-mem-access)
- #154085 (Parenthesize or-patterns in prefix pattern positions in pretty printer)
- #154191 (refactor RangeFromIter overflow-checks impl)
- #154207 (Refactor query loading)
- #153540 (drop derive helpers during attribute parsing)
- #154140 (Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.)
- #154161 (On E0277 tweak help when single type impls traits)
- #154218 (interpret/validity: remove unreachable error kind)
- #154225 (diagnostics: avoid ICE in confusable_method_name for associated functions)
- #154228 (Improve inline assembly error messages)
@rust-bors
rust-borsBot merged commit 773db3e into rust-lang:mainMar 23, 2026
11 checks passed
@rustbotrustbot added this to the 1.96.0 milestone Mar 23, 2026
github-actionsBot pushed a commit to rust-lang/stdarch that referenced this pull request Mar 26, 2026
…uwer
Rollup of 13 pull requests
Successful merges:
- rust-lang/rust#154241 (`rust-analyzer` subtree update)
- rust-lang/rust#153686 (`std`: include `dlmalloc` for all non-wasi Wasm targets)
- rust-lang/rust#154105 (bootstrap: Pass `--features=rustc` to rustc_transmute)
- rust-lang/rust#153069 ([BPF] add target feature allows-misaligned-mem-access)
- rust-lang/rust#154085 (Parenthesize or-patterns in prefix pattern positions in pretty printer)
- rust-lang/rust#154191 (refactor RangeFromIter overflow-checks impl)
- rust-lang/rust#154207 (Refactor query loading)
- rust-lang/rust#153540 (drop derive helpers during attribute parsing)
- rust-lang/rust#154140 (Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.)
- rust-lang/rust#154161 (On E0277 tweak help when single type impls traits)
- rust-lang/rust#154218 (interpret/validity: remove unreachable error kind)
- rust-lang/rust#154225 (diagnostics: avoid ICE in confusable_method_name for associated functions)
- rust-lang/rust#154228 (Improve inline assembly error messages)
github-actionsBot pushed a commit to rust-lang/rust-analyzer that referenced this pull request Mar 26, 2026
…uwer
Rollup of 13 pull requests
Successful merges:
- rust-lang/rust#154241 (`rust-analyzer` subtree update)
- rust-lang/rust#153686 (`std`: include `dlmalloc` for all non-wasi Wasm targets)
- rust-lang/rust#154105 (bootstrap: Pass `--features=rustc` to rustc_transmute)
- rust-lang/rust#153069 ([BPF] add target feature allows-misaligned-mem-access)
- rust-lang/rust#154085 (Parenthesize or-patterns in prefix pattern positions in pretty printer)
- rust-lang/rust#154191 (refactor RangeFromIter overflow-checks impl)
- rust-lang/rust#154207 (Refactor query loading)
- rust-lang/rust#153540 (drop derive helpers during attribute parsing)
- rust-lang/rust#154140 (Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.)
- rust-lang/rust#154161 (On E0277 tweak help when single type impls traits)
- rust-lang/rust#154218 (interpret/validity: remove unreachable error kind)
- rust-lang/rust#154225 (diagnostics: avoid ICE in confusable_method_name for associated functions)
- rust-lang/rust#154228 (Improve inline assembly error messages)
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Apr 2, 2026
…uwer
Rollup of 13 pull requests
Successful merges:
- rust-lang/rust#154241 (`rust-analyzer` subtree update)
- rust-lang/rust#153686 (`std`: include `dlmalloc` for all non-wasi Wasm targets)
- rust-lang/rust#154105 (bootstrap: Pass `--features=rustc` to rustc_transmute)
- rust-lang/rust#153069 ([BPF] add target feature allows-misaligned-mem-access)
- rust-lang/rust#154085 (Parenthesize or-patterns in prefix pattern positions in pretty printer)
- rust-lang/rust#154191 (refactor RangeFromIter overflow-checks impl)
- rust-lang/rust#154207 (Refactor query loading)
- rust-lang/rust#153540 (drop derive helpers during attribute parsing)
- rust-lang/rust#154140 (Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.)
- rust-lang/rust#154161 (On E0277 tweak help when single type impls traits)
- rust-lang/rust#154218 (interpret/validity: remove unreachable error kind)
- rust-lang/rust#154225 (diagnostics: avoid ICE in confusable_method_name for associated functions)
- rust-lang/rust#154228 (Improve inline assembly error messages)
ghaaj pushed a commit to ghaaj/polygrammar that referenced this pull request Aug 7, 2026
…uwer
Rollup of 13 pull requests
Successful merges:
- rust-lang/rust#154241 (`rust-analyzer` subtree update)
- rust-lang/rust#153686 (`std`: include `dlmalloc` for all non-wasi Wasm targets)
- rust-lang/rust#154105 (bootstrap: Pass `--features=rustc` to rustc_transmute)
- rust-lang/rust#153069 ([BPF] add target feature allows-misaligned-mem-access)
- rust-lang/rust#154085 (Parenthesize or-patterns in prefix pattern positions in pretty printer)
- rust-lang/rust#154191 (refactor RangeFromIter overflow-checks impl)
- rust-lang/rust#154207 (Refactor query loading)
- rust-lang/rust#153540 (drop derive helpers during attribute parsing)
- rust-lang/rust#154140 (Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.)
- rust-lang/rust#154161 (On E0277 tweak help when single type impls traits)
- rust-lang/rust#154218 (interpret/validity: remove unreachable error kind)
- rust-lang/rust#154225 (diagnostics: avoid ICE in confusable_method_name for associated functions)
- rust-lang/rust#154228 (Improve inline assembly error messages)
flip1995 pushed a commit to flip1995/rust-clippy that referenced this pull request Aug 17, 2026
…uwer
Rollup of 13 pull requests
Successful merges:
- rust-lang/rust#154241 (`rust-analyzer` subtree update)
- rust-lang/rust#153686 (`std`: include `dlmalloc` for all non-wasi Wasm targets)
- rust-lang/rust#154105 (bootstrap: Pass `--features=rustc` to rustc_transmute)
- rust-lang/rust#153069 ([BPF] add target feature allows-misaligned-mem-access)
- rust-lang/rust#154085 (Parenthesize or-patterns in prefix pattern positions in pretty printer)
- rust-lang/rust#154191 (refactor RangeFromIter overflow-checks impl)
- rust-lang/rust#154207 (Refactor query loading)
- rust-lang/rust#153540 (drop derive helpers during attribute parsing)
- rust-lang/rust#154140 (Document consteval behavior of ub_checks, overflow_checks, is_val_statically_known.)
- rust-lang/rust#154161 (On E0277 tweak help when single type impls traits)
- rust-lang/rust#154218 (interpret/validity: remove unreachable error kind)
- rust-lang/rust#154225 (diagnostics: avoid ICE in confusable_method_name for associated functions)
- rust-lang/rust#154228 (Improve inline assembly error messages)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-run-makeArea: port run-make Makefiles to rmake.rsS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@estebank@rustbot@Kivooeo@davidtwco