File tree 1 file changed +2
-9
lines changed
compiler/rustc_builtin_macros/src
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -353,15 +353,7 @@ pub fn validate_raw_asm_args<'a>(
353
353
354
354
for ( symbol, option, span, full_span) in new_options {
355
355
if !asm_macro. is_supported_option ( option) {
356
- /*
357
- // Tool-only output
358
- p.dcx().emit_err(errors::AsmUnsupportedOption {
359
- span,
360
- symbol,
361
- full_span,
362
- macro_name: asm_macro.macro_name(),
363
- });
364
- */
356
+ // Currently handled during parsing.
365
357
} else if args. options . contains ( option) {
366
358
// Tool-only output
367
359
dcx. emit_err ( errors:: AsmOptAlreadyprovided { span, symbol, full_span } ) ;
@@ -506,6 +498,7 @@ fn parse_options<'a>(
506
498
let full_span =
507
499
if p. token == token:: Comma { span. to ( p. token . span ) } else { span } ;
508
500
501
+ // NOTE: should this be handled during validation instead?
509
502
if !asm_macro. is_supported_option ( option) {
510
503
// Tool-only output
511
504
p. dcx ( ) . emit_err ( errors:: AsmUnsupportedOption {
You can’t perform that action at this time.
0 commit comments