1
Fork 0

review comments

This commit is contained in:
Esteban Küber 2020-10-19 17:57:18 -07:00
parent ae0e3d0511
commit 88f5e110db
55 changed files with 133 additions and 132 deletions

View file

@ -647,7 +647,7 @@ impl ObjectSafetyViolation {
ObjectSafetyViolation::SizedSelf(_) => "it requires `Self: Sized`".into(),
ObjectSafetyViolation::SupertraitSelf(ref spans) => {
if spans.iter().any(|sp| *sp != DUMMY_SP) {
"it uses `Self` as a type parameter in this".into()
"it uses `Self` as a type parameter".into()
} else {
"it cannot use `Self` as a type parameter in a supertrait or `where`-clause"
.into()