diff options
| author | Josh Stone <jistone@redhat.com> | 2020-04-16 17:38:52 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-04-19 07:33:58 -0700 |
| commit | 7b005c5fcb743e97b3cafee951b19fe7e51753c8 (patch) | |
| tree | d5957a313d6f45c65b344b9c1bf6cf0247fd4409 /src/libfmt_macros | |
| parent | 36b1a9296cde2b773771710e9bbd608fd2eca35f (diff) | |
Dogfood more or_patterns in the compiler
Diffstat (limited to 'src/libfmt_macros')
| -rw-r--r-- | src/libfmt_macros/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs index e138503b508..29276eead71 100644 --- a/src/libfmt_macros/lib.rs +++ b/src/libfmt_macros/lib.rs @@ -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(); } |
