Skip to content

Commit b7e8bef

Browse files
authored
Rollup merge of #78798 - ankushduacodes:fixing-typo, r=jonas-schievink
Fixing Spelling Typos Fixing #78787
2 parents 532330b + 0af959d commit b7e8bef

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

compiler/rustc_mir/src/transform/check_unsafety.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ pub fn check_unsafety(tcx: TyCtxt<'_>, def_id: LocalDefId) {
693693
// should only issue a warning for the sake of backwards compatibility.
694694
//
695695
// The solution those 2 expectations is to always take the minimum of both lints.
696-
// This prevent any new errors (unless both lints are explicitely set to `deny`).
696+
// This prevent any new errors (unless both lints are explicitly set to `deny`).
697697
let lint = if tcx.lint_level_at_node(SAFE_PACKED_BORROWS, lint_root).0
698698
<= tcx.lint_level_at_node(UNSAFE_OP_IN_UNSAFE_FN, lint_root).0
699699
{

compiler/rustc_typeck/src/check/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
15001500
err.span_suggestion(
15011501
sp,
15021502
&format!(
1503-
"if you don't care about {} missing field{}, you can explicitely ignore {}",
1503+
"if you don't care about {} missing field{}, you can explicitly ignore {}",
15041504
if len == 1 { "this" } else { "these" },
15051505
if len == 1 { "" } else { "s" },
15061506
if len == 1 { "it" } else { "them" },

src/test/ui/error-codes/E0027.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ help: include the missing field in the pattern
88
|
99
LL | Dog { age: x, name } => {}
1010
| ^^^^^^
11-
help: if you don't care about this missing field, you can explicitely ignore it
11+
help: if you don't care about this missing field, you can explicitly ignore it
1212
|
1313
LL | Dog { age: x, .. } => {}
1414
| ^^^^
@@ -23,7 +23,7 @@ help: include the missing fields in the pattern
2323
|
2424
LL | Dog { name, age } => {}
2525
| ^^^^^^^^^^^^^
26-
help: if you don't care about these missing fields, you can explicitely ignore them
26+
help: if you don't care about these missing fields, you can explicitly ignore them
2727
|
2828
LL | Dog { .. } => {}
2929
| ^^^^^^

src/test/ui/structs/struct-field-cfg.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ help: include the missing field in the pattern
2222
|
2323
LL | let Foo { present } = foo;
2424
| ^^^^^^^^^^^
25-
help: if you don't care about this missing field, you can explicitely ignore it
25+
help: if you don't care about this missing field, you can explicitly ignore it
2626
|
2727
LL | let Foo { .. } = foo;
2828
| ^^^^^^

src/test/ui/structs/struct-pat-derived-error.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ help: include the missing fields in the pattern
2020
|
2121
LL | let A { x, y, b, c } = self.d;
2222
| ^^^^^^
23-
help: if you don't care about these missing fields, you can explicitely ignore them
23+
help: if you don't care about these missing fields, you can explicitly ignore them
2424
|
2525
LL | let A { x, y, .. } = self.d;
2626
| ^^^^

0 commit comments

Comments
 (0)