Skip to content

Commit 49c6c86

Browse files
author
Alexander Regueiro
committed
Fixed stylistic convention for one diagnostic and blessed tests.
1 parent 13b61b5 commit 49c6c86

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_typeck/astconv.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
952952
tcx.sess.span_warn(
953953
span,
954954
"default bound relaxed for a type parameter, but \
955-
this does nothing because the given bound is not \
956-
a default. Only `?Sized` is supported",
955+
this does nothing because the given bound is not \
956+
a default; only `?Sized` is supported",
957957
);
958958
}
959959
}

src/test/ui/issues/issue-37534.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ help: possible better candidate is found in another module, you can import it in
88
LL | use std::hash::Hash;
99
|
1010

11-
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default. Only `?Sized` is supported
11+
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
1212
--> $DIR/issue-37534.rs:1:12
1313
|
1414
LL | struct Foo<T: ?Hash> { }

src/test/ui/maybe-bounds-where.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ error[E0203]: type parameter has more than one relaxed default bound, only one i
3434
LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized;
3535
| ^
3636

37-
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default. Only `?Sized` is supported
37+
warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
3838
--> $DIR/maybe-bounds-where.rs:15:11
3939
|
4040
LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized;

0 commit comments

Comments
 (0)