Skip to content

Commit a883063

Browse files
committed
remove trailing dots
1 parent 996ffcb commit a883063

File tree

68 files changed

+129
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+129
-129
lines changed

compiler/rustc_infer/src/infer/error_reporting/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
24332433
}
24342434

24352435
err.multipart_suggestion_verbose(
2436-
format!("{msg}..."),
2436+
format!("{msg}"),
24372437
suggs,
24382438
Applicability::MaybeIncorrect, // Issue #41966
24392439
);

tests/ui/associated-inherent-types/regionck-1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | type NoTyOutliv<'a, T> = &'a T;
66
| |
77
| the parameter type `T` must be valid for the lifetime `'a` as defined here...
88
|
9-
help: consider adding an explicit lifetime bound...
9+
help: consider adding an explicit lifetime bound
1010
|
1111
LL | type NoTyOutliv<'a, T: 'a> = &'a T;
1212
| ++++

tests/ui/async-await/in-trait/async-generics-and-bounds.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
77
| | the parameter type `U` must be valid for the anonymous lifetime as defined here...
88
| ...so that the reference type `&(T, U)` does not outlive the data it points at
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | async fn foo<'a>(&'a self) -> &'a (T, U) where T: Debug + Sized, U: Hash, U: 'a;
1313
| ++++ ++ ++ +++++++
@@ -21,7 +21,7 @@ LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
2121
| | the parameter type `T` must be valid for the anonymous lifetime as defined here...
2222
| ...so that the reference type `&(T, U)` does not outlive the data it points at
2323
|
24-
help: consider adding an explicit lifetime bound...
24+
help: consider adding an explicit lifetime bound
2525
|
2626
LL | async fn foo<'a>(&'a self) -> &'a (T, U) where T: Debug + Sized, U: Hash, T: 'a;
2727
| ++++ ++ ++ +++++++

tests/ui/async-await/in-trait/async-generics.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | async fn foo(&self) -> &(T, U);
77
| | the parameter type `U` must be valid for the anonymous lifetime as defined here...
88
| ...so that the reference type `&(T, U)` does not outlive the data it points at
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | async fn foo<'a>(&'a self) -> &'a (T, U) where U: 'a;
1313
| ++++ ++ ++ +++++++++++
@@ -21,7 +21,7 @@ LL | async fn foo(&self) -> &(T, U);
2121
| | the parameter type `T` must be valid for the anonymous lifetime as defined here...
2222
| ...so that the reference type `&(T, U)` does not outlive the data it points at
2323
|
24-
help: consider adding an explicit lifetime bound...
24+
help: consider adding an explicit lifetime bound
2525
|
2626
LL | async fn foo<'a>(&'a self) -> &'a (T, U) where T: 'a;
2727
| ++++ ++ ++ +++++++++++

tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ note: ...that is required by this bound
1212
|
1313
LL | trait Foo : Sized+Sync+'static {
1414
| ^^^^^^^
15-
help: consider adding an explicit lifetime bound...
15+
help: consider adding an explicit lifetime bound
1616
|
1717
LL | impl <T: Sync + 'static> Foo for T { }
1818
| +++++++++

tests/ui/coercion/issue-53475.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T> CoerceUnsized<Foo<dyn Any>> for Foo<T> {}
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | impl<T: 'static> CoerceUnsized<Foo<dyn Any>> for Foo<T> {}
1313
| +++++++++

tests/ui/consts/issue-102117.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | type_id: TypeId::of::<T>(),
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | pub fn new<T: 'static>() -> &'static Self {
1313
| +++++++++
@@ -22,7 +22,7 @@ LL | type_id: TypeId::of::<T>(),
2222
| ...so that the type `T` will meet its required lifetime bounds
2323
|
2424
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
25-
help: consider adding an explicit lifetime bound...
25+
help: consider adding an explicit lifetime bound
2626
|
2727
LL | pub fn new<T: 'static>() -> &'static Self {
2828
| +++++++++

tests/ui/error-codes/E0311.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | fn no_restriction<T>(x: &()) -> &() {
66
LL | with_restriction::<T>(x)
77
| ^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
88
|
9-
help: consider adding an explicit lifetime bound...
9+
help: consider adding an explicit lifetime bound
1010
|
1111
LL | fn no_restriction<'a, T: 'a>(x: &'a ()) -> &'a () {
1212
| +++ ++++ ++ ++

tests/ui/fn/implied-bounds-unnorm-associated-type-5.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ note: ...that is required by this bound
1111
|
1212
LL | trait Trait<'a>: 'a {
1313
| ^^
14-
help: consider adding an explicit lifetime bound...
14+
help: consider adding an explicit lifetime bound
1515
|
1616
LL | impl<'a, T: 'a> Trait<'a> for T {
1717
| ++++

tests/ui/generic-associated-types/issue-84931.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | type Item<'a> = &'a mut T;
66
| |
77
| the parameter type `T` must be valid for the lifetime `'a` as defined here...
88
|
9-
help: consider adding an explicit lifetime bound...
9+
help: consider adding an explicit lifetime bound
1010
|
1111
LL | type Item<'a> = &'a mut T where T: 'a;
1212
| +++++++++++

tests/ui/impl-trait/must_outlive_least_region_or_bound.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ LL | x
122122
| the parameter type `T` must be valid for the static lifetime...
123123
| ...so that the type `T` will meet its required lifetime bounds
124124
|
125-
help: consider adding an explicit lifetime bound...
125+
help: consider adding an explicit lifetime bound
126126
|
127127
LL | fn ty_param_wont_outlive_static<T:Debug + 'static>(x: T) -> impl Debug + 'static {
128128
| +++++++++

tests/ui/impl-trait/type_parameters_captured.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | x
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | fn foo<T: 'static>(x: T) -> impl Any + 'static {
1313
| +++++++++

tests/ui/impl-trait/unactionable_diagnostic.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn foo<'x, P>(
1414
}
1515

1616
pub fn bar<'t, T: 't>(
17-
//~^ HELP: consider adding an explicit lifetime bound...
17+
//~^ HELP: consider adding an explicit lifetime bound
1818
post: T,
1919
x: &'t Foo,
2020
) -> &'t impl Trait {

tests/ui/impl-trait/unactionable_diagnostic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn foo<'x, P>(
1414
}
1515

1616
pub fn bar<'t, T>(
17-
//~^ HELP: consider adding an explicit lifetime bound...
17+
//~^ HELP: consider adding an explicit lifetime bound
1818
post: T,
1919
x: &'t Foo,
2020
) -> &'t impl Trait {

tests/ui/impl-trait/unactionable_diagnostic.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | pub fn bar<'t, T>(
77
LL | foo(post, x)
88
| ^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | pub fn bar<'t, T: 't>(
1313
| ++++

tests/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | foo: &'static T
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the reference type `&'static T` does not outlive the data it points at
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | struct Foo<T: 'static> {
1313
| +++++++++
@@ -20,7 +20,7 @@ LL | fn generic_in_parent<'a, L: X<&'a Nested<K>>>() {
2020
| |
2121
| the parameter type `K` must be valid for the lifetime `'a` as defined here...
2222
|
23-
help: consider adding an explicit lifetime bound...
23+
help: consider adding an explicit lifetime bound
2424
|
2525
LL | fn generic_in_parent<'a, L: X<&'a Nested<K>>>() where K: 'a {
2626
| +++++++++++
@@ -33,7 +33,7 @@ LL | fn generic_in_child<'a, 'b, L: X<&'a Nested<M>>, M: 'b>() {
3333
| |
3434
| the parameter type `M` must be valid for the lifetime `'a` as defined here...
3535
|
36-
help: consider adding an explicit lifetime bound...
36+
help: consider adding an explicit lifetime bound
3737
|
3838
LL | fn generic_in_child<'a, 'b, L: X<&'a Nested<M>>, M: 'b + 'a>() {
3939
| ++++
@@ -46,7 +46,7 @@ LL | fn foo<'a, L: X<&'a Nested<K>>>();
4646
| |
4747
| the parameter type `K` must be valid for the lifetime `'a` as defined here...
4848
|
49-
help: consider adding an explicit lifetime bound...
49+
help: consider adding an explicit lifetime bound
5050
|
5151
LL | fn foo<'a, L: X<&'a Nested<K>>>() where K: 'a;
5252
| +++++++++++
@@ -59,7 +59,7 @@ LL | fn bar<'a, L: X<&'a Nested<Self>>>();
5959
| |
6060
| the parameter type `Self` must be valid for the lifetime `'a` as defined here...
6161
|
62-
help: consider adding an explicit lifetime bound...
62+
help: consider adding an explicit lifetime bound
6363
|
6464
LL | fn bar<'a, L: X<&'a Nested<Self>>>() where Self: 'a;
6565
| ++++++++++++++
@@ -72,7 +72,7 @@ LL | fn baz<'a, L, M: X<&'a Nested<L>>>() {
7272
| |
7373
| the parameter type `L` must be valid for the lifetime `'a` as defined here...
7474
|
75-
help: consider adding an explicit lifetime bound...
75+
help: consider adding an explicit lifetime bound
7676
|
7777
LL | fn baz<'a, L: 'a, M: X<&'a Nested<L>>>() {
7878
| ++++

tests/ui/lifetimes/lifetime-errors/issue_74400.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | f(data, identity)
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | fn g<T: 'static>(data: &[T]) {
1313
| +++++++++

tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | fn no_restriction<T>(x: &()) -> &() {
66
LL | with_restriction::<T>(x)
77
| ^^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
88
|
9-
help: consider adding an explicit lifetime bound...
9+
help: consider adding an explicit lifetime bound
1010
|
1111
LL | fn no_restriction<'a, T: 'a>(x: &'a ()) -> &'a () {
1212
| +++ ++++ ++ ++

tests/ui/marker_trait_attr/overlapping-impl-1-modulo-regions.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | impl<T: Copy> F for T {}
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | impl<T: Copy + 'static> F for T {}
1313
| +++++++++

tests/ui/nll/closure-requirements/propagate-from-trait-match.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LL | fn supply<'a, T>(value: T)
3131
LL | require(value);
3232
| ^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
3333
|
34-
help: consider adding an explicit lifetime bound...
34+
help: consider adding an explicit lifetime bound
3535
|
3636
LL | T: Trait<'a> + 'a,
3737
| ++++

tests/ui/nll/issue-98589-closures-relate-named-regions.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ LL | fn test_early_type<'a: 'a, T>() {
4242
LL | || { None::<&'a T>; };
4343
| ^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
4444
|
45-
help: consider adding an explicit lifetime bound...
45+
help: consider adding an explicit lifetime bound
4646
|
4747
LL | fn test_early_type<'a: 'a, T: 'a>() {
4848
| ++++
@@ -55,7 +55,7 @@ LL | fn test_late_type<'a, T>() {
5555
LL | || { None::<&'a T>; };
5656
| ^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
5757
|
58-
help: consider adding an explicit lifetime bound...
58+
help: consider adding an explicit lifetime bound
5959
|
6060
LL | fn test_late_type<'a, T: 'a>() {
6161
| ++++

tests/ui/nll/issue-98693.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | assert_static::<T>();
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | fn test<T: 'static>() {
1313
| +++++++++

tests/ui/nll/member-constraints/min-choice-reject-ambiguous.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | fn test_b<'a, 'b, 'c, T>() -> impl Cap<'a> + Cap<'b> + Cap<'c>
77
LL | type_test::<'_, T>() // This should pass if we pick 'b.
88
| ^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | T: 'b + 'a,
1313
| ++++
@@ -21,7 +21,7 @@ LL | fn test_c<'a, 'b, 'c, T>() -> impl Cap<'a> + Cap<'b> + Cap<'c>
2121
LL | type_test::<'_, T>() // This should pass if we pick 'c.
2222
| ^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
2323
|
24-
help: consider adding an explicit lifetime bound...
24+
help: consider adding an explicit lifetime bound
2525
|
2626
LL | T: 'c + 'a,
2727
| ++++

tests/ui/nll/ty-outlives/impl-trait-outlives.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | fn no_region<'a, T>(x: Box<T>) -> impl Debug + 'a
77
LL | x
88
| ^ ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | T: Debug + 'a,
1313
| ++++
@@ -21,7 +21,7 @@ LL | fn wrong_region<'a, 'b, T>(x: Box<T>) -> impl Debug + 'a
2121
LL | x
2222
| ^ ...so that the type `T` will meet its required lifetime bounds
2323
|
24-
help: consider adding an explicit lifetime bound...
24+
help: consider adding an explicit lifetime bound
2525
|
2626
LL | T: 'b + Debug + 'a,
2727
| ++++

tests/ui/nll/ty-outlives/projection-implied-bounds.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | twice(value, |value_ref, item| invoke2(value_ref, item));
77
| the parameter type `T` must be valid for the static lifetime...
88
| ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | fn generic2<T: Iterator + 'static>(value: T) {
1313
| +++++++++

tests/ui/nll/ty-outlives/projection-no-regions-closure.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LL | fn no_region<'a, T>(x: Box<T>) -> Box<dyn Anything + 'a>
3131
LL | with_signature(x, |mut y| Box::new(y.next()))
3232
| ^^^^^^^^^^^^^^^^^^ ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
3333
|
34-
help: consider adding an explicit lifetime bound...
34+
help: consider adding an explicit lifetime bound
3535
|
3636
LL | T: Iterator, <T as Iterator>::Item: 'a
3737
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -93,7 +93,7 @@ LL | fn wrong_region<'a, 'b, T>(x: Box<T>) -> Box<dyn Anything + 'a>
9393
LL | with_signature(x, |mut y| Box::new(y.next()))
9494
| ^^^^^^^^^^^^^^^^^^ ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
9595
|
96-
help: consider adding an explicit lifetime bound...
96+
help: consider adding an explicit lifetime bound
9797
|
9898
LL | T: 'b + Iterator, <T as Iterator>::Item: 'a
9999
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/ui/nll/ty-outlives/projection-no-regions-fn.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | fn no_region<'a, T>(mut x: T) -> Box<dyn Anything + 'a>
77
LL | Box::new(x.next())
88
| ^^^^^^^^^^^^^^^^^^ ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | T: Iterator, <T as Iterator>::Item: 'a
1313
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -21,7 +21,7 @@ LL | fn wrong_region<'a, 'b, T>(mut x: T) -> Box<dyn Anything + 'a>
2121
LL | Box::new(x.next())
2222
| ^^^^^^^^^^^^^^^^^^ ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
2323
|
24-
help: consider adding an explicit lifetime bound...
24+
help: consider adding an explicit lifetime bound
2525
|
2626
LL | T: 'b + Iterator, <T as Iterator>::Item: 'a
2727
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/ui/nll/ty-outlives/projection-one-region-closure.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
3333
LL | with_signature(cell, t, |cell, t| require(cell, t));
3434
| ^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
3535
|
36-
help: consider adding an explicit lifetime bound...
36+
help: consider adding an explicit lifetime bound
3737
|
3838
LL | T: Anything<'b> + 'a,
3939
| ++++
@@ -86,7 +86,7 @@ LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
8686
LL | with_signature(cell, t, |cell, t| require(cell, t));
8787
| ^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
8888
|
89-
help: consider adding an explicit lifetime bound...
89+
help: consider adding an explicit lifetime bound
9090
|
9191
LL | T: Anything<'b> + 'a,
9292
| ++++

tests/ui/nll/ty-outlives/projection-where-clause-none.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | fn foo<'a, T>() -> &'a ()
77
LL | bar::<T::Output>()
88
| ^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
99
|
10-
help: consider adding an explicit lifetime bound...
10+
help: consider adding an explicit lifetime bound
1111
|
1212
LL | T: MyTrait<'a> + 'a,
1313
| ++++

tests/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LL | fn generic_fail<'a, T>(cell: Cell<&'a ()>, value: T) {
5151
LL | twice(cell, value, |a, b| invoke(a, b));
5252
| ^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
5353
|
54-
help: consider adding an explicit lifetime bound...
54+
help: consider adding an explicit lifetime bound
5555
|
5656
LL | fn generic_fail<'a, T: 'a>(cell: Cell<&'a ()>, value: T) {
5757
| ++++

0 commit comments

Comments
 (0)