File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,11 @@ impl<'a> SubstituteTypeParams<'a> {
6464 let default = k. default ( source_scope. db ) ?;
6565 Some ( (
6666 k,
67- ast:: make:: type_arg (
67+ ast:: make:: type_ref (
6868 & default
6969 . display_source_code ( source_scope. db , source_scope. module ( ) ?. into ( ) )
7070 . ok ( ) ?,
7171 )
72- . type_ref ( ) ?,
7372 ) )
7473 }
7574 } )
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ pub fn name_ref(text: &str) -> ast::NameRef {
1313 ast_from_text ( & format ! ( "fn f() {{ {}; }}" , text) )
1414}
1515
16- pub fn type_arg ( text : & str ) -> ast:: TypeArg {
17- ast_from_text ( & format ! ( "impl F<{}> for G {{}}" , text) )
16+ pub fn type_ref ( text : & str ) -> ast:: TypeRef {
17+ ast_from_text ( & format ! ( "impl {} for D {{}}; " , text) )
1818}
1919
2020pub fn path_segment ( name_ref : ast:: NameRef ) -> ast:: PathSegment {
You can’t perform that action at this time.
0 commit comments