diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 21:32:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-05 21:32:32 +0200 |
| commit | 1e90557ae807ca19e9cc3d48c4c83492d274aded (patch) | |
| tree | 1930d4709ec14642b4265da818cd9ee54d87ed54 /compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs | |
| parent | 246acdbb95c58c9451fc5506c01bd964f3663e89 (diff) | |
| parent | 833c212b81d38ce4fb10b7084549291052878822 (diff) | |
| download | rust-1e90557ae807ca19e9cc3d48c4c83492d274aded.tar.gz rust-1e90557ae807ca19e9cc3d48c4c83492d274aded.zip | |
Rollup merge of #140374 - compiler-errors:global_asm-bug, r=lcnr
Resolve instance for SymFn in global/naked asm `Instance::expect_resolve` ensures that we're actually going from trait item -> impl item. Fixes #140373
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/unused.rs')
| -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 { |
