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 | 85a14d70bb2f094f67642ed22f5ffab4a4b9b719 (patch) | |
| tree | be18ac3ba41867d812c6dc68f96630ee9fdeb850 /compiler/rustc_metadata/src/rmeta/decoder | |
| parent | ac923d94f86a6f7c881ecbedcd0a68d7986a35bd (diff) | |
| download | rust-85a14d70bb2f094f67642ed22f5ffab4a4b9b719.tar.gz rust-85a14d70bb2f094f67642ed22f5ffab4a4b9b719.zip | |
Use () in dependency_formats.
Diffstat (limited to 'compiler/rustc_metadata/src/rmeta/decoder')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs index cda57f48cae..e5008b5c07d 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs @@ -370,10 +370,7 @@ pub fn provide(providers: &mut Providers) { visible_parent_map }, - dependency_formats: |tcx, cnum| { - assert_eq!(cnum, LOCAL_CRATE); - Lrc::new(crate::dependency_format::calculate(tcx)) - }, + dependency_formats: |tcx, ()| Lrc::new(crate::dependency_format::calculate(tcx)), has_global_allocator: |tcx, cnum| { assert_eq!(cnum, LOCAL_CRATE); CStore::from_tcx(tcx).has_global_allocator() |
