@@ -851,7 +851,7 @@ impl<'ctx, 'scope, 'id> TypeEnv<'ctx, 'scope, 'id> {
851
851
fn resolve_infer_type (
852
852
& self ,
853
853
name : & TypeName ,
854
- validator : & impl TypeValidator < ' id > ,
854
+ validator : & dyn TypeValidator < ' id > ,
855
855
) -> Result < InferType < ' id > , TypeError < ' id > > {
856
856
let ty = self . resolve_type ( name, validator) ?;
857
857
Ok ( InferType :: from_type ( & ty, self . vars ) )
@@ -867,7 +867,7 @@ impl<'ctx, 'scope, 'id> TypeEnv<'ctx, 'scope, 'id> {
867
867
pub fn resolve_type (
868
868
& self ,
869
869
name : & TypeName ,
870
- validator : & impl TypeValidator < ' id > ,
870
+ validator : & dyn TypeValidator < ' id > ,
871
871
) -> Result < Type < ' id > , TypeError < ' id > > {
872
872
if self . vars . get ( name. name ( ) ) . is_some ( ) {
873
873
Ok ( Type :: Var ( VarName :: Named ( name. name ( ) . clone ( ) ) ) )
@@ -892,7 +892,7 @@ impl<'ctx, 'scope, 'id> TypeEnv<'ctx, 'scope, 'id> {
892
892
pub fn resolve_param_type (
893
893
& self ,
894
894
name : & TypeName ,
895
- validator : & impl TypeValidator < ' id > ,
895
+ validator : & dyn TypeValidator < ' id > ,
896
896
) -> Result < Parameterized < ' id > , TypeError < ' id > > {
897
897
let id = self . resolve_type_id ( name. name ( ) ) ?;
898
898
let args = name
@@ -908,7 +908,7 @@ impl<'ctx, 'scope, 'id> TypeEnv<'ctx, 'scope, 'id> {
908
908
pub fn instantiate_var (
909
909
& self ,
910
910
var : & TypeParam ,
911
- validator : & impl TypeValidator < ' id > ,
911
+ validator : & dyn TypeValidator < ' id > ,
912
912
) -> Result < TypeVar < ' id > , TypeError < ' id > > {
913
913
let var = TypeVar {
914
914
name : var. name . clone ( ) ,
0 commit comments