]> git.lizzy.rs Git - rust.git/commitdiff
Fix ICE
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 20 Jan 2018 10:55:55 +0000 (11:55 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 20 Jan 2018 10:55:55 +0000 (11:55 +0100)
src/librustc_trans_utils/trans_crate.rs

index 0d81d6fde6a020e6245f8918b9992a0fca1cff37..49756d754fe55edead0878dda179bb50d59aa575 100644 (file)
@@ -26,6 +26,7 @@
 use std::io::{self, Cursor};
 use std::fs::File;
 use std::path::Path;
+use std::rc::Rc;
 use std::sync::mpsc;
 
 use rustc_data_structures::owning_ref::{ErasedBoxRef, OwningRef};
@@ -191,6 +192,9 @@ fn metadata_loader(&self) -> Box<MetadataLoader> {
 
     fn provide(&self, providers: &mut Providers) {
         ::symbol_names::provide(providers);
+        providers.target_features_enabled = |_tcx, _id| {
+            Rc::new(Vec::new()) // Just a dummy
+        };
     }
     fn provide_extern(&self, _providers: &mut Providers) {}