Skip to content

Commit d9dc5ee

Browse files
committed
AliasTy::new instead of tcx method
1 parent 9ee26d0 commit d9dc5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ pub fn make_projection<'tcx>(
11331133
#[cfg(debug_assertions)]
11341134
assert_generic_args_match(tcx, assoc_item.def_id, args);
11351135

1136-
Some(tcx.mk_alias_ty(assoc_item.def_id, args))
1136+
Some(ty::AliasTy::new(tcx, assoc_item.def_id, args))
11371137
}
11381138
helper(
11391139
tcx,

0 commit comments

Comments
 (0)