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