Skip to content

Commit 10487cd

Browse files
committed
Fix typo in method name
unsuccessfull -> unsuccessful
1 parent 60b4082 commit 10487cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: compiler/rustc_errors/src/diagnostic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl Diagnostic {
166166
self.note_expected_found_extra(expected_label, expected, found_label, found, &"", &"")
167167
}
168168

169-
pub fn note_unsuccessfull_coercion(
169+
pub fn note_unsuccessful_coercion(
170170
&mut self,
171171
expected: DiagnosticStyledString,
172172
found: DiagnosticStyledString,

Diff for: compiler/rustc_errors/src/diagnostic_builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl<'a> DiagnosticBuilder<'a> {
245245
found_extra: &dyn fmt::Display,
246246
) -> &mut Self);
247247

248-
forward!(pub fn note_unsuccessfull_coercion(
248+
forward!(pub fn note_unsuccessful_coercion(
249249
&mut self,
250250
expected: DiagnosticStyledString,
251251
found: DiagnosticStyledString,

Diff for: compiler/rustc_infer/src/infer/error_reporting/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
16221622
}
16231623
}
16241624
(TypeError::ObjectUnsafeCoercion(_), _) => {
1625-
diag.note_unsuccessfull_coercion(found, expected);
1625+
diag.note_unsuccessful_coercion(found, expected);
16261626
}
16271627
(_, _) => {
16281628
debug!(

0 commit comments

Comments
 (0)