Fixed stylistic convention for one diagnostic and blessed tests.

This commit is contained in:
Alexander Regueiro 2019-09-30 01:00:20 +01:00
parent 13b61b50d9
commit 49c6c86faf
3 changed files with 4 additions and 4 deletions

View File

@ -952,8 +952,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
tcx.sess.span_warn( tcx.sess.span_warn(
span, span,
"default bound relaxed for a type parameter, but \ "default bound relaxed for a type parameter, but \
this does nothing because the given bound is not \ this does nothing because the given bound is not \
a default. Only `?Sized` is supported", a default; only `?Sized` is supported",
); );
} }
} }

View File

@ -8,7 +8,7 @@ help: possible better candidate is found in another module, you can import it in
LL | use std::hash::Hash; LL | use std::hash::Hash;
| |
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default. Only `?Sized` is supported warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
--> $DIR/issue-37534.rs:1:12 --> $DIR/issue-37534.rs:1:12
| |
LL | struct Foo<T: ?Hash> { } LL | struct Foo<T: ?Hash> { }

View File

@ -34,7 +34,7 @@ error[E0203]: type parameter has more than one relaxed default bound, only one i
LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized; LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized;
| ^ | ^
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default. Only `?Sized` is supported warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
--> $DIR/maybe-bounds-where.rs:15:11 --> $DIR/maybe-bounds-where.rs:15:11
| |
LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized; LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized;