Fix typo in method name

unsuccessfull -> unsuccessful
This commit is contained in:
Camelid 2020-12-14 20:05:31 -08:00
parent 60b4082d5f
commit 10487cd784
3 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ impl Diagnostic {
self.note_expected_found_extra(expected_label, expected, found_label, found, &"", &"")
}
pub fn note_unsuccessfull_coercion(
pub fn note_unsuccessful_coercion(
&mut self,
expected: DiagnosticStyledString,
found: DiagnosticStyledString,

View File

@ -245,7 +245,7 @@ impl<'a> DiagnosticBuilder<'a> {
found_extra: &dyn fmt::Display,
) -> &mut Self);
forward!(pub fn note_unsuccessfull_coercion(
forward!(pub fn note_unsuccessful_coercion(
&mut self,
expected: DiagnosticStyledString,
found: DiagnosticStyledString,

View File

@ -1622,7 +1622,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
}
}
(TypeError::ObjectUnsafeCoercion(_), _) => {
diag.note_unsuccessfull_coercion(found, expected);
diag.note_unsuccessful_coercion(found, expected);
}
(_, _) => {
debug!(