Skip to content

Commit f56281b

Browse files
Apply suggestions from code review
Co-authored-by: Travis Cross <[email protected]>
1 parent d30124a commit f56281b

File tree

1 file changed

+5
-5
lines changed
  • compiler/rustc_builtin_macros/src

1 file changed

+5
-5
lines changed

compiler/rustc_builtin_macros/src/asm.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn parse_asm_operand<'a>(
144144
}))
145145
}
146146

147-
// Public for rustfmt
147+
// Public for rustfmt.
148148
pub fn parse_raw_asm_args<'a>(
149149
p: &mut Parser<'a>,
150150
sp: Span,
@@ -182,7 +182,7 @@ pub fn parse_raw_asm_args<'a>(
182182

183183
let span_start = p.token.span;
184184

185-
// Parse clobber_abi
185+
// Parse `clobber_abi`.
186186
if p.eat_keyword(exp!(ClobberAbi)) {
187187
allow_templates = false;
188188

@@ -347,7 +347,7 @@ fn validate_raw_asm_args<'a>(
347347
if !asm_macro.is_supported_option(option) {
348348
// Currently handled during parsing.
349349
} else if args.options.contains(option) {
350-
// Tool-only output
350+
// Tool-only output.
351351
dcx.emit_err(errors::AsmOptAlreadyprovided { span, symbol, full_span });
352352
} else {
353353
args.options |= option;
@@ -360,7 +360,7 @@ fn validate_raw_asm_args<'a>(
360360
allow_templates = false;
361361

362362
match &new_abis[..] {
363-
// should have errored above during parsing
363+
// This should have errored above during parsing.
364364
[] => unreachable!(),
365365
[(abi, _span)] => args.clobber_abis.push((*abi, arg.span)),
366366
_ => args.clobber_abis.extend(new_abis),
@@ -492,7 +492,7 @@ fn parse_options<'a>(
492492

493493
// NOTE: should this be handled during validation instead?
494494
if !asm_macro.is_supported_option(option) {
495-
// Tool-only output
495+
// Tool-only output.
496496
p.dcx().emit_err(errors::AsmUnsupportedOption {
497497
span,
498498
symbol: exp.kw,

0 commit comments

Comments
 (0)