Rename Instance::new to Instance::new_raw and add a note that it is raw

This commit is contained in:
Michael Goulet
2025-04-28 14:40:16 +00:00
parent 3a1ee645ca
commit 833c212b81
18 changed files with 41 additions and 33 deletions

View File

@@ -157,7 +157,7 @@ fn make_dummy_instance<'tcx>(tcx: TyCtxt<'tcx>, local_def_id: LocalDefId) -> ty:
let def_id = local_def_id.to_def_id();
// Make a dummy instance that fills in all generics with placeholders.
ty::Instance::new(
ty::Instance::new_raw(
def_id,
ty::GenericArgs::for_item(tcx, def_id, |param, _| {
if let ty::GenericParamDefKind::Lifetime = param.kind {