Skip to content

Commit 0986b2d

Browse files
authored
Rollup merge of #93909 - saschanaz:patch-2, r=petrochenkov
Fix typo: explicitely -> explicitly
2 parents 34997f0 + f9cb01f commit 0986b2d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

compiler/rustc_typeck/src/check/method/suggest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1819,15 +1819,15 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
18191819
[] => {}
18201820
[trait_info] => {
18211821
let msg = format!(
1822-
"the trait `{}` defines an item `{}`, but is explicitely unimplemented",
1822+
"the trait `{}` defines an item `{}`, but is explicitly unimplemented",
18231823
self.tcx.def_path_str(trait_info.def_id),
18241824
item_name
18251825
);
18261826
err.note(&msg);
18271827
}
18281828
trait_infos => {
18291829
let mut msg = format!(
1830-
"the following traits define an item `{}`, but are explicitely unimplemented:",
1830+
"the following traits define an item `{}`, but are explicitly unimplemented:",
18311831
item_name
18321832
);
18331833
for trait_info in trait_infos {

src/test/ui/traits/negative-impls/explicitly-unimplemented-error-message.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ fn main() {
3434
Qux.clone();
3535
//~^ ERROR no method named `clone` found for struct `Qux`
3636
//~| NOTE method not found in `Qux`
37-
//~| NOTE `Clone` defines an item `clone`, but is explicitely unimplemented
37+
//~| NOTE `Clone` defines an item `clone`, but is explicitly unimplemented
3838

3939
0_u32.bar();
4040
//~^ ERROR no method named `bar` found for type `u32`
4141
//~| NOTE method not found in `u32`
42-
//~| NOTE `Bar` defines an item `bar`, but is explicitely unimplemented
42+
//~| NOTE `Bar` defines an item `bar`, but is explicitly unimplemented
4343

4444
Qux.foo();
4545
//~^ ERROR no method named `foo` found for struct `Qux`
4646
//~| NOTE method not found in `Qux`
47-
//~| NOTE the following traits define an item `foo`, but are explicitely unimplemented
47+
//~| NOTE the following traits define an item `foo`, but are explicitly unimplemented
4848

4949
0_u32.foo();
5050
//~^ ERROR no method named `foo` found for type `u32`
5151
//~| NOTE method not found in `u32`
52-
//~| NOTE `FooBar` defines an item `foo`, but is explicitely unimplemented
52+
//~| NOTE `FooBar` defines an item `foo`, but is explicitly unimplemented
5353
}

src/test/ui/traits/negative-impls/explicitly-unimplemented-error-message.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | Qux.clone();
88
| ^^^^^ method not found in `Qux`
99
|
1010
= help: items from traits can only be used if the trait is implemented and in scope
11-
= note: the trait `Clone` defines an item `clone`, but is explicitely unimplemented
11+
= note: the trait `Clone` defines an item `clone`, but is explicitly unimplemented
1212

1313
error[E0599]: no method named `bar` found for type `u32` in the current scope
1414
--> $DIR/explicitly-unimplemented-error-message.rs:39:11
@@ -17,7 +17,7 @@ LL | 0_u32.bar();
1717
| ^^^ method not found in `u32`
1818
|
1919
= help: items from traits can only be used if the trait is implemented and in scope
20-
= note: the trait `Bar` defines an item `bar`, but is explicitely unimplemented
20+
= note: the trait `Bar` defines an item `bar`, but is explicitly unimplemented
2121

2222
error[E0599]: no method named `foo` found for struct `Qux` in the current scope
2323
--> $DIR/explicitly-unimplemented-error-message.rs:44:9
@@ -29,7 +29,7 @@ LL | Qux.foo();
2929
| ^^^ method not found in `Qux`
3030
|
3131
= help: items from traits can only be used if the trait is implemented and in scope
32-
= note: the following traits define an item `foo`, but are explicitely unimplemented:
32+
= note: the following traits define an item `foo`, but are explicitly unimplemented:
3333
Foo
3434
FooBar
3535

@@ -45,7 +45,7 @@ note: `Foo` defines an item `foo`, perhaps you need to implement it
4545
|
4646
LL | trait Foo {
4747
| ^^^^^^^^^
48-
= note: the trait `FooBar` defines an item `foo`, but is explicitely unimplemented
48+
= note: the trait `FooBar` defines an item `foo`, but is explicitly unimplemented
4949

5050
error: aborting due to 4 previous errors
5151

0 commit comments

Comments
 (0)