rustc_builtin_macros::asm

Function try_set_option

Source
fn try_set_option<'a>(
    p: &Parser<'a>,
    args: &mut AsmArgs,
    asm_macro: AsmMacro,
    symbol: Symbol,
    option: InlineAsmOptions,
)
Expand description

Try to set the provided option in the provided AsmArgs. If it is already set, report a duplicate option error.

This function must be called immediately after the option token is parsed. Otherwise, the error will not point to the correct spot.