diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 11:26:52 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-12 13:58:41 +0200 |
| commit | f22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae (patch) | |
| tree | 37c1d856921edd2da2f1eeca5775f17fe3cb13cb /src/allocator.rs | |
| parent | 809722dc134093c00e471e0c85876adeb3747d1e (diff) | |
| download | rust-f22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae.tar.gz rust-f22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae.zip | |
Use () in dependency_formats.
Diffstat (limited to 'src/allocator.rs')
| -rw-r--r-- | src/allocator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.rs b/src/allocator.rs index a09e3257786..357a9f2daf7 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -13,7 +13,7 @@ pub(crate) fn codegen( module: &mut impl Module, unwind_context: &mut UnwindContext, ) -> bool { - let any_dynamic_crate = tcx.dependency_formats(LOCAL_CRATE).iter().any(|(_, list)| { + let any_dynamic_crate = tcx.dependency_formats(()).iter().any(|(_, list)| { use rustc_middle::middle::dependency_format::Linkage; list.iter().any(|&linkage| linkage == Linkage::Dynamic) }); |
