From 46db0dfe8c5f26c687b5ce269b55ad1aa6d3dc95 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Fri, 8 May 2020 18:14:06 +0100 Subject: [PATCH] Fix tests --- src/libfmt_macros/tests.rs | 4 ++-- src/test/assembly/asm/x86-modifiers.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libfmt_macros/tests.rs b/src/libfmt_macros/tests.rs index a0cef78f924..9932c1df7a9 100644 --- a/src/libfmt_macros/tests.rs +++ b/src/libfmt_macros/tests.rs @@ -1,7 +1,7 @@ use super::*; fn same(fmt: &'static str, p: &[Piece<'static>]) { - let parser = Parser::new(fmt, None, vec![], false, ParseMode::Format); + let parser = Parser::new(fmt, None, None, false, ParseMode::Format); assert_eq!(parser.collect::>>(), p); } @@ -20,7 +20,7 @@ fn fmtdflt() -> FormatSpec<'static> { } fn musterr(s: &str) { - let mut p = Parser::new(s, None, vec![], false, ParseMode::Format); + let mut p = Parser::new(s, None, None, false, ParseMode::Format); p.next(); assert!(!p.errors.is_empty()); } diff --git a/src/test/assembly/asm/x86-modifiers.rs b/src/test/assembly/asm/x86-modifiers.rs index 1670744291f..e538167cd46 100644 --- a/src/test/assembly/asm/x86-modifiers.rs +++ b/src/test/assembly/asm/x86-modifiers.rs @@ -1,3 +1,4 @@ +// no-system-llvm // revisions: x86_64 i686 // assembly-output: emit-asm // compile-flags: -O