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 | |
| parent | 809722dc134093c00e471e0c85876adeb3747d1e (diff) | |
| download | rust-f22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae.tar.gz rust-f22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae.zip | |
Use () in dependency_formats.
Diffstat (limited to 'src')
| -rw-r--r-- | src/allocator.rs | 2 | ||||
| -rw-r--r-- | src/driver/jit.rs | 2 |
2 files changed, 2 insertions, 2 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) }); diff --git a/src/driver/jit.rs b/src/driver/jit.rs index 53c93f6a9dd..bf601c70c09 100644 --- a/src/driver/jit.rs +++ b/src/driver/jit.rs @@ -179,7 +179,7 @@ fn load_imported_symbols_for_jit(tcx: TyCtxt<'_>) -> Vec<(String, *const u8)> { let mut dylib_paths = Vec::new(); let crate_info = CrateInfo::new(tcx); - let formats = tcx.dependency_formats(LOCAL_CRATE); + let formats = tcx.dependency_formats(()); let data = &formats .iter() .find(|(crate_type, _data)| *crate_type == rustc_session::config::CrateType::Executable) |
