Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 3ef82fc

Browse files
committed
Get regex macros benchmark building again
1 parent 625943b commit 3ef82fc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

process.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ TIMES_DIR=/home/ncameron/times
22
SCRIPTS_DIR=/home/ncameron/times-scripts
33

44
START=$(pwd)
5-
export RUSTC="$RUSTC -Ztime-passes"
65
export CARGO_BUILD="cargo rustc -- -Ztime-passes"
76
export PATH=$RUSTC_DIR/bin:$PATH
87

regex-macros.0.1.30/regex_macros/src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ impl<'a> NfaGen<'a> {
129129
let init_groups = self.vec_expr(0..num_cap_locs,
130130
&mut |cx, _| cx.expr_none(self.sp));
131131

132-
let prefix_lit = Rc::new(self.prog.prefix.as_bytes().to_vec());
133-
let prefix_bytes = self.cx.expr_lit(self.sp, ast::LitBinary(prefix_lit));
132+
// let prefix_lit = Rc::new(self.prog.prefix.as_bytes().to_vec());
133+
// let prefix_bytes = self.cx.expr_lit(self.sp, ast::LitBinary(prefix_lit));
134134

135-
let check_prefix = self.check_prefix();
135+
// let check_prefix = self.check_prefix();
136136
let step_insts = self.step_insts();
137137
let add_insts = self.add_insts();
138138
let regex = &*self.original;
@@ -178,7 +178,6 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
178178
#[allow(unused_variables)]
179179
fn run(&mut self, start: usize, end: usize) -> Vec<Option<usize>> {
180180
let mut matched = false;
181-
let prefix_bytes: &[u8] = $prefix_bytes;
182181
let mut clist = Threads::new(self.which);
183182
let mut nlist = Threads::new(self.which);
184183

@@ -196,7 +195,6 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
196195
break
197196
}
198197

199-
$check_prefix
200198
}
201199
if clist.size == 0 || (!$prefix_anchor && !matched) {
202200
self.add(&mut clist, 0, &mut groups)

regex-macros.0.1.30/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@
379379
//! compiled expression.
380380
381381
#![deny(missing_docs)]
382+
#![feature(pattern)]
382383
#![cfg_attr(test, deny(warnings))]
383384
#![cfg_attr(feature = "pattern", feature(core))]
384385
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

0 commit comments

Comments
 (0)