]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/base.rs
Rollup merge of #104657 - hi-rustin:rustin-patch-check-transmute, r=compiler-errors
[rust.git] / compiler / rustc_expand / src / base.rs
index 04fe6c4007e948fd106f14fb95947ae1003e3090..bdcd53349492ccb98945ee4a41a8fe5c39e8adda 100644 (file)
@@ -507,7 +507,7 @@ fn make_pat(self: Box<Self>) -> Option<P<ast::Pat>> {
             return Some(p);
         }
         if let Some(e) = self.expr {
-            if let ast::ExprKind::Lit(_) = e.kind {
+            if matches!(e.kind, ast::ExprKind::Lit(_) | ast::ExprKind::IncludedBytes(_)) {
                 return Some(P(ast::Pat {
                     id: ast::DUMMY_NODE_ID,
                     span: e.span,