// was not used). On other paths, it is not assigned,
// and hence if those paths *could* reach the code that
// comes after the match, this fn would not compile.
- let convert_to_ambigious;
+ let convert_to_ambiguous;
match self {
None => {
// clauses are the safer choice. See the comment on
// `select::SelectionCandidate` and #21974 for more details.
match (current, candidate) {
- (ParamEnv(..), ParamEnv(..)) => convert_to_ambigious = (),
+ (ParamEnv(..), ParamEnv(..)) => convert_to_ambiguous = (),
(ParamEnv(..), _) => return false,
(_, ParamEnv(..)) => { unreachable!(); }
- (_, _) => convert_to_ambigious = (),
+ (_, _) => convert_to_ambiguous = (),
}
}
// We only ever get here when we moved from a single candidate
// to ambiguous.
- let () = convert_to_ambigious;
+ let () = convert_to_ambiguous;
*self = Ambiguous;
false
}
/// normalized. If you don't care about regions, you should prefer
/// `normalize_erasing_regions`, which is more efficient.
///
- /// If the normalization succeeds and is unambigious, returns back
+ /// If the normalization succeeds and is unambiguous, returns back
/// the normalized value along with various outlives relations (in
/// the form of obligations that must be discharged).
///