File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/librustc_builtin_macros Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ fn parse_args<'a>(
174
174
175
175
// Validate the order of named, positional & explicit register operands and options. We do
176
176
// this at the end once we have the full span of the argument available.
177
- if args. options_spans . len ( ) > 0 {
177
+ if ! args. options_spans . is_empty ( ) {
178
178
ecx. struct_span_err ( span, "arguments are not allowed after options" )
179
179
. span_labels ( args. options_spans . clone ( ) , "previous options" )
180
180
. span_label ( span, "argument" )
@@ -241,9 +241,9 @@ fn parse_args<'a>(
241
241
if args. options . contains ( ast:: InlineAsmOptions :: PURE )
242
242
&& !args. options . intersects ( ast:: InlineAsmOptions :: NOMEM | ast:: InlineAsmOptions :: READONLY )
243
243
{
244
- let span = args. options_spans . clone ( ) ;
244
+ let spans = args. options_spans . clone ( ) ;
245
245
ecx. struct_span_err (
246
- span ,
246
+ spans ,
247
247
"the `pure` option must be combined with either `nomem` or `readonly`" ,
248
248
)
249
249
. emit ( ) ;
You can’t perform that action at this time.
0 commit comments