File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2324,7 +2324,7 @@ impl Context {
23242324 let new_sub = self
23252325 . eval_t_params ( maybe_sub. clone ( ) , self . level , loc)
23262326 . map_err ( |( _, errs) | errs) ?;
2327- if maybe_sub . is_unbound_var ( ) && new_sub != Never && & new_sub != maybe_sub {
2327+ if new_sub != Never && & new_sub != maybe_sub {
23282328 maybe_sub. link ( & new_sub, unifier. undoable ) ;
23292329 }
23302330 let new_super = self
Original file line number Diff line number Diff line change @@ -3702,7 +3702,7 @@ impl Type {
37023702 Type :: FreeVar ( fv) if fv. is_linked ( ) => {
37033703 fv. crack ( ) . destructive_coerce ( ) ;
37043704 }
3705- Type :: FreeVar ( fv) if !fv . is_generalized ( ) && fv. is_unbound_and_sandwiched ( ) => {
3705+ Type :: FreeVar ( fv) if fv. is_unbound_and_sandwiched ( ) => {
37063706 let ( sub, _sup) = fv. get_subsup ( ) . unwrap ( ) ;
37073707 if !sub. contains_tvar ( fv) {
37083708 sub. destructive_coerce ( ) ;
You can’t perform that action at this time.
0 commit comments