mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
Fix ICE
This commit is contained in:
parent
82ac9f7532
commit
a4854e84f2
@ -26,6 +26,7 @@ use std::io::prelude::*;
|
||||
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 @@ impl TransCrate for MetadataOnlyTransCrate {
|
||||
|
||||
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) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user