diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-28 14:40:16 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-05 13:17:35 +0000 |
| commit | 833c212b81d38ce4fb10b7084549291052878822 (patch) | |
| tree | 202d16528ee4f5449723600422add8ef5faa08ef /compiler/rustc_codegen_llvm/src/coverageinfo | |
| parent | 3a1ee645cad501e2fd766bbacea5654a795f352b (diff) | |
| download | rust-833c212b81d38ce4fb10b7084549291052878822.tar.gz rust-833c212b81d38ce4fb10b7084549291052878822.zip | |
Rename Instance::new to Instance::new_raw and add a note that it is raw
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs index 68f60f169b5..fe3a7a1580b 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs @@ -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 { |
