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, &"", &"") self.note_expected_found_extra(expected_label, expected, found_label, found, &"", &"")
} }
pub fn note_unsuccessfull_coercion( pub fn note_unsuccessful_coercion(
&mut self, &mut self,
expected: DiagnosticStyledString, expected: DiagnosticStyledString,
found: DiagnosticStyledString, found: DiagnosticStyledString,

View file

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

View file

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