We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7da50d commit e8be797Copy full SHA for e8be797
src/librustc_builtin_macros/asm.rs
@@ -19,12 +19,6 @@ struct AsmArgs {
19
options_spans: Vec<Span>,
20
}
21
22
-impl AsmArgs {
23
- fn option_is_set(&self, option: ast::InlineAsmOptions) -> bool {
24
- (self.options & option) == option
25
- }
26
-}
27
-
28
fn parse_args<'a>(
29
ecx: &mut ExtCtxt<'a>,
30
sp: Span,
@@ -304,7 +298,7 @@ fn try_set_option<'a>(
304
298
symbol: Symbol,
305
299
option: ast::InlineAsmOptions,
306
300
) {
307
- if !args.option_is_set(option) {
301
+ if !args.options.contains(option) {
308
302
args.options |= option;
309
303
} else {
310
err_duplicate_option(p, symbol, p.prev_token.span);
0 commit comments