]> git.proxmox.com Git - rustc.git/blobdiff - src/libfmt_macros/lib.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / libfmt_macros / lib.rs
index e138503b508d545a5ce5b97e5733134fd6bccb76..29276eead71ded9406d2260ce9917c8a31046b32 100644 (file)
@@ -10,6 +10,7 @@
     test(attr(deny(warnings)))
 )]
 #![feature(nll)]
+#![feature(or_patterns)]
 #![feature(rustc_private)]
 #![feature(unicode_internals)]
 #![feature(bool_to_option)]
@@ -482,7 +483,7 @@ impl<'a> Parser<'a> {
         // fill character
         if let Some(&(_, c)) = self.cur.peek() {
             match self.cur.clone().nth(1) {
-                Some((_, '>')) | Some((_, '<')) | Some((_, '^')) => {
+                Some((_, '>' | '<' | '^')) => {
                     spec.fill = Some(c);
                     self.cur.next();
                 }