diff options
Diffstat (limited to 'src/allocator.rs')
| -rw-r--r-- | src/allocator.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/allocator.rs b/src/allocator.rs index 1cc45a7d93b..cfc071612e7 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -15,14 +15,10 @@ use rustc_allocator::{AllocatorTy, ALLOCATOR_METHODS}; /// Returns whether an allocator shim was created pub fn codegen(sess: &Session, module: &mut Module<impl Backend + 'static>) -> bool { - let any_dynamic_crate = sess - .dependency_formats - .borrow() - .iter() - .any(|(_, list)| { - use rustc::middle::dependency_format::Linkage; - list.iter().any(|&linkage| linkage == Linkage::Dynamic) - }); + let any_dynamic_crate = sess.dependency_formats.borrow().iter().any(|(_, list)| { + use rustc::middle::dependency_format::Linkage; + list.iter().any(|&linkage| linkage == Linkage::Dynamic) + }); if any_dynamic_crate { false } else if let Some(kind) = *sess.allocator_kind.get() { |
