mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Auto-deref on lval-ext terms (x.y == x->y, if you like)
This commit is contained in:
+1
-1
@@ -1116,7 +1116,7 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
|
||||
TYSPEC_exterior tv
|
||||
in
|
||||
let base_tv = ref base_ts in
|
||||
unify_lval' ucx base base_tv;
|
||||
unify_lval' { ucx with ext_ok = true } base base_tv;
|
||||
match !(resolve_tyvar base_tv) with
|
||||
TYSPEC_resolved (_, ty) ->
|
||||
unify_ty ucx (project_type ty comp) tv
|
||||
|
||||
Reference in New Issue
Block a user