diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 2899d8868cc..585e7cedc47 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -907,7 +907,7 @@ fn convert_item(ccx: &CrateCtxt, it: &ast::Item) { &enum_definition.variants); }, ast::ItemDefaultImpl(_, ref ast_trait_ref) => { - let trait_ref = astconv::instantiate_trait_ref(ccx, + let trait_ref = astconv::instantiate_trait_ref(&ccx.icx(&()), &ExplicitRscope, ast_trait_ref, Some(it.id),