Skip to content

Commit

Permalink
Change wording to less jaron-y "non-auto trait"
Browse files Browse the repository at this point in the history
Co-authored-by: Vadim Petrochenkov <[email protected]>
  • Loading branch information
notriddle and petrochenkov committed Aug 31, 2021
1 parent 435cdd0 commit 6e70678
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/coherence/inherent_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl ItemLikeVisitor<'v> for InherentCollect<'tcx> {
E0785,
"cannot define inherent `impl` for a dyn auto trait"
)
.span_label(ty.span, "impl requires a principal trait")
.span_label(ty.span, "impl requires at least one non-auto trait")
.note("define and implement a new trait or type instead")
.emit();
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/coherence/issue-85026.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ error[E0785]: cannot define inherent `impl` for a dyn auto trait
--> $DIR/issue-85026.rs:5:6
|
LL | impl dyn AutoTrait {}
| ^^^^^^^^^^^^^ impl requires a principal trait
| ^^^^^^^^^^^^^ impl requires at least one non-auto trait
|
= note: define and implement a new trait or type instead

error[E0785]: cannot define inherent `impl` for a dyn auto trait
--> $DIR/issue-85026.rs:8:6
|
LL | impl dyn Unpin {}
| ^^^^^^^^^ impl requires a principal trait
| ^^^^^^^^^ impl requires at least one non-auto trait
|
= note: define and implement a new trait or type instead

Expand Down

0 comments on commit 6e70678

Please sign in to comment.