X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_expand%2Fsrc%2Fbase.rs;h=bdcd53349492ccb98945ee4a41a8fe5c39e8adda;hb=70f8737b2f5d3bf7d6b784fad00b663b7ff9feda;hp=04fe6c4007e948fd106f14fb95947ae1003e3090;hpb=e86f1845ff6ca556621e2d366a6ad0c2d5aa408f;p=rust.git diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs index 04fe6c4007e..bdcd5334949 100644 --- a/compiler/rustc_expand/src/base.rs +++ b/compiler/rustc_expand/src/base.rs @@ -507,7 +507,7 @@ fn make_pat(self: Box) -> Option> { 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,