]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustfmt/src/expr.rs
Rollup merge of #107316 - ChrisDenton:snap, r=oli-obk
[rust.git] / src / tools / rustfmt / src / expr.rs
index 0be4c3cf168cc19c833a29cc3b6e9129509d5e69..3f0f217f8907d7beba609835f913806a4a542a44 100644 (file)
@@ -400,7 +400,10 @@ fn needs_space_after_range(rhs: &ast::Expr) -> bool {
             }
         }
         ast::ExprKind::Underscore => Some("_".to_owned()),
-        ast::ExprKind::IncludedBytes(..) => unreachable!(),
+        ast::ExprKind::FormatArgs(..) | ast::ExprKind::IncludedBytes(..) => {
+            // These do not occur in the AST because macros aren't expanded.
+            unreachable!()
+        }
         ast::ExprKind::Err => None,
     };