Skip to main content

parse_rust_feature_list

Function parse_rust_feature_list 

Source
fn parse_rust_feature_list<'a>(
    sess: &'a Session,
    features: &'a str,
    err_callback: impl Fn(&'a str),
    callback: impl FnMut(&'a str, Option<FxHashSet<&'a str>>, bool),
)
Expand description

Parse the value of the target spec features field or -Ctarget-feature, calling the closure for each entry in the list, also expanding implied features (but only for actual Rust target features). If the list contains a syntactically invalid item (not starting with +/-) , the error callback is invoked.