]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/select/mod.rs
Rollup merge of #89726 - jkugelman:must-use-alloc-constructors, r=joshtriplett
[rust.git] / compiler / rustc_trait_selection / src / traits / select / mod.rs
index 3818e75a1de04217874ddf7b6b2fcada3c4add85..85502a399dedac0bbc74781160255accebbba09d 100644 (file)
@@ -900,7 +900,7 @@ fn evaluate_stack<'o>(
         match self.candidate_from_obligation(stack) {
             Ok(Some(c)) => self.evaluate_candidate(stack, &c),
             Ok(None) => Ok(EvaluatedToAmbig),
-            Err(Overflow) => Err(OverflowError::Cannonical),
+            Err(Overflow) => Err(OverflowError::Canonical),
             Err(ErrorReporting) => Err(OverflowError::ErrorReporting),
             Err(..) => Ok(EvaluatedToErr),
         }
@@ -1064,7 +1064,7 @@ fn check_recursion_depth<T: Display + TypeFoldable<'tcx>>(
                     self.infcx.report_overflow_error(error_obligation, true);
                 }
                 TraitQueryMode::Canonical => {
-                    return Err(OverflowError::Cannonical);
+                    return Err(OverflowError::Canonical);
                 }
             }
         }