rustc_session::options::parse

Function parse_opt_langid

source
pub(crate) fn parse_opt_langid(
    slot: &mut Option<LanguageIdentifier>,
    v: Option<&str>,
) -> bool
Expand description

Parse an optional language identifier, e.g. en-US or zh-CN.