diff options
| author | bohan <bohan-zhang@foxmail.com> | 2023-11-26 21:05:08 +0800 |
|---|---|---|
| committer | bohan <bohan-zhang@foxmail.com> | 2023-11-26 21:05:08 +0800 |
| commit | f23befe6c118573a2ca041bc89f959a8813b43a2 (patch) | |
| tree | dc0185a1375a527e7112b07412295916683cff7e /compiler/rustc_symbol_mangling/src/lib.rs | |
| parent | 274b5249eb1014b441fd9fe45e9373111f61e413 (diff) | |
| download | rust-f23befe6c118573a2ca041bc89f959a8813b43a2.tar.gz rust-f23befe6c118573a2ca041bc89f959a8813b43a2.zip | |
merge `DefKind::Coroutine` into `DefKind::Closure`
Diffstat (limited to 'compiler/rustc_symbol_mangling/src/lib.rs')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_symbol_mangling/src/lib.rs b/compiler/rustc_symbol_mangling/src/lib.rs index 9f0982d0995..311b94d9e0e 100644 --- a/compiler/rustc_symbol_mangling/src/lib.rs +++ b/compiler/rustc_symbol_mangling/src/lib.rs @@ -234,7 +234,7 @@ fn compute_symbol_name<'tcx>( // and we want to be sure to avoid any symbol conflicts here. let is_globally_shared_function = matches!( tcx.def_kind(instance.def_id()), - DefKind::Fn | DefKind::AssocFn | DefKind::Closure | DefKind::Coroutine | DefKind::Ctor(..) + DefKind::Fn | DefKind::AssocFn | DefKind::Closure | DefKind::Ctor(..) ) && matches!( MonoItem::Fn(instance).instantiation_mode(tcx), InstantiationMode::GloballyShared { may_conflict: true } |
