Pass a Symbol
to check_name
, emit_feature_err
, and related functions.
This commit is contained in:
parent
79602c87b5
commit
fb084a48e2
114 changed files with 671 additions and 621 deletions
|
@ -321,12 +321,12 @@ pub fn provide(providers: &mut Providers<'_>) {
|
|||
// rustdoc needs to be able to document functions that use all the features, so
|
||||
// whitelist them all
|
||||
Lrc::new(llvm_util::all_known_features()
|
||||
.map(|(a, b)| (a.to_string(), b.map(|s| s.to_string())))
|
||||
.map(|(a, b)| (a.to_string(), b))
|
||||
.collect())
|
||||
} else {
|
||||
Lrc::new(llvm_util::target_feature_whitelist(tcx.sess)
|
||||
.iter()
|
||||
.map(|&(a, b)| (a.to_string(), b.map(|s| s.to_string())))
|
||||
.map(|&(a, b)| (a.to_string(), b))
|
||||
.collect())
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue