@@ -64,9 +64,7 @@ impl<'a, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'tcx> {
64
64
const SUPPORTED_OPTIONS : InlineAsmOptions = InlineAsmOptions :: NORETURN ;
65
65
let unsupported_options = options & !SUPPORTED_OPTIONS ;
66
66
if !unsupported_options. is_empty ( ) {
67
- self . err ( & format ! (
68
- "asm flags not supported: {unsupported_options:?}"
69
- ) ) ;
67
+ self . err ( & format ! ( "asm flags not supported: {unsupported_options:?}" ) ) ;
70
68
}
71
69
// vec of lines, and each line is vec of tokens
72
70
let mut tokens = vec ! [ vec![ ] ] ;
@@ -102,10 +100,9 @@ impl<'a, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'tcx> {
102
100
span,
103
101
} => {
104
102
if let Some ( modifier) = modifier {
105
- self . tcx . sess . span_err (
106
- span,
107
- format ! ( "asm modifiers are not supported: {modifier}" ) ,
108
- ) ;
103
+ self . tcx
104
+ . sess
105
+ . span_err ( span, format ! ( "asm modifiers are not supported: {modifier}" ) ) ;
109
106
}
110
107
let line = tokens. last_mut ( ) . unwrap ( ) ;
111
108
let typeof_kind = line. last ( ) . and_then ( |prev| match prev {
@@ -373,9 +370,7 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
373
370
}
374
371
AsmBlock :: End ( terminator) => {
375
372
if op != Op :: Label {
376
- self . err ( & format ! (
377
- "expected OpLabel after terminator {terminator:?}"
378
- ) ) ;
373
+ self . err ( & format ! ( "expected OpLabel after terminator {terminator:?}" ) ) ;
379
374
}
380
375
381
376
AsmBlock :: Open
@@ -1146,9 +1141,7 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
1146
1141
}
1147
1142
} ,
1148
1143
Some ( Token :: String ( _) ) => {
1149
- self . err ( & format ! (
1150
- "expected a literal, not a string for a {kind:?}"
1151
- ) ) ;
1144
+ self . err ( & format ! ( "expected a literal, not a string for a {kind:?}" ) ) ;
1152
1145
}
1153
1146
Some ( Token :: Placeholder ( _, span) ) => {
1154
1147
self . tcx . sess . span_err (
@@ -1339,24 +1332,18 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
1339
1332
Ok ( x) => inst
1340
1333
. operands
1341
1334
. push ( dr:: Operand :: RayQueryCommittedIntersectionType ( x) ) ,
1342
- Err ( ( ) ) => self . err ( & format ! (
1343
- "unknown RayQueryCommittedIntersectionType {word}"
1344
- ) ) ,
1335
+ Err ( ( ) ) => self . err ( & format ! ( "unknown RayQueryCommittedIntersectionType {word}" ) ) ,
1345
1336
} ,
1346
1337
( OperandKind :: RayQueryCandidateIntersectionType , Some ( word) ) => match word. parse ( ) {
1347
1338
Ok ( x) => inst
1348
1339
. operands
1349
1340
. push ( dr:: Operand :: RayQueryCandidateIntersectionType ( x) ) ,
1350
- Err ( ( ) ) => self . err ( & format ! (
1351
- "unknown RayQueryCandidateIntersectionType {word}"
1352
- ) ) ,
1341
+ Err ( ( ) ) => self . err ( & format ! ( "unknown RayQueryCandidateIntersectionType {word}" ) ) ,
1353
1342
} ,
1354
1343
( kind, None ) => match token {
1355
1344
Token :: Word ( _) => bug ! ( ) ,
1356
1345
Token :: String ( _) => {
1357
- self . err ( & format ! (
1358
- "expected a literal, not a string for a {kind:?}"
1359
- ) ) ;
1346
+ self . err ( & format ! ( "expected a literal, not a string for a {kind:?}" ) ) ;
1360
1347
}
1361
1348
Token :: Placeholder ( _, span) => {
1362
1349
self . tcx . sess . span_err (
0 commit comments