]> git.lizzy.rs Git - rust.git/commitdiff
Fix test.
authorCamille GILLOT <gillot.camille@gmail.com>
Fri, 20 Mar 2020 07:42:30 +0000 (08:42 +0100)
committerCamille GILLOT <gillot.camille@gmail.com>
Sun, 5 Apr 2020 13:26:09 +0000 (15:26 +0200)
src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs

index 2875ee579307ed156e7bef4861b0c71952f0cffd..d271b8645746e6c5ca795f9df2808717e67d1683 100644 (file)
@@ -26,7 +26,6 @@
 use rustc_target::spec::Target;
 use std::any::Any;
 use std::path::Path;
-use std::sync::Arc;
 
 pub struct NoLlvmMetadataLoader;
 
@@ -57,7 +56,7 @@ fn provide(&self, providers: &mut Providers) {
             tcx.arena.alloc(Default::default()) // Just a dummy
         };
         providers.is_reachable_non_generic = |_tcx, _defid| true;
-        providers.exported_symbols = |_tcx, _crate| Arc::new(Vec::new());
+        providers.exported_symbols = |_tcx, _crate| &[];
     }
 
     fn provide_extern(&self, providers: &mut Providers) {