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_symbol_mangling | |
| 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_symbol_mangling')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_symbol_mangling/src/test.rs b/compiler/rustc_symbol_mangling/src/test.rs index ddeeadff13d..0c6d1495e39 100644 --- a/compiler/rustc_symbol_mangling/src/test.rs +++ b/compiler/rustc_symbol_mangling/src/test.rs @@ -56,7 +56,7 @@ impl SymbolNamesTest<'_> { // some subset. for attr in tcx.get_attrs(def_id, SYMBOL_NAME) { let def_id = def_id.to_def_id(); - let instance = Instance::new( + let instance = Instance::new_raw( def_id, tcx.erase_regions(GenericArgs::identity_for_item(tcx, def_id)), ); |
