## parse_rust_feature_flag

# Function parse_rust_feature_flag

Source

    fn parse_rust_feature_flag<'a>(
        sess: &'a Session,
        err_callback: impl Fn(&'a str),
        callback: impl FnMut(&'a str, FxHashSet<&'a str>, bool),
    )

Expand description

Parse the value of `-Ctarget-feature`, also expanding implied features, and call the closure for each (expanded) Rust feature. If the list contains a syntactically invalid item (not starting with `+`/`-`), the error callback is invoked.