]>
git.proxmox.com Git - rustc.git/blob - src/librustc_middle/middle/mod.rs
1 pub mod codegen_fn_attrs
;
3 pub mod dependency_format
;
4 pub mod exported_symbols
;
8 use rustc_data_structures
::fx
::{FxHashMap, FxHashSet}
;
9 use rustc_span
::symbol
::Symbol
;
12 pub struct LibFeatures
{
13 // A map from feature to stabilisation version.
14 pub stable
: FxHashMap
<Symbol
, Symbol
>,
15 pub unstable
: FxHashSet
<Symbol
>,
19 pub fn to_vec(&self) -> Vec
<(Symbol
, Option
<Symbol
>)> {
20 let mut all_features
: Vec
<_
> = self
23 .map(|(f
, s
)| (*f
, Some(*s
)))
24 .chain(self.unstable
.iter().map(|f
| (*f
, None
)))
26 all_features
.sort_unstable_by_key(|f
| f
.0.as_str());
34 pub mod resolve_lifetime
;