Skip to content

Commit 946bc9f

Browse files
authored
Merge pull request #248 from mcarton/rustup
Rustup to 1.11.0-nightly (7d2f75a95 2016-06-09)
2 parents 3d345e3 + b1416c8 commit 946bc9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

regex_macros/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn native(cx: &mut ExtCtxt, sp: codemap::Span, tts: &[ast::TokenTree])
8888
};
8989
let names = prog.captures.iter().cloned().collect();
9090
let mut gen = NfaGen {
91-
cx: &*cx,
91+
cx: cx,
9292
sp: sp,
9393
prog: prog,
9494
names: names,
@@ -97,15 +97,15 @@ fn native(cx: &mut ExtCtxt, sp: codemap::Span, tts: &[ast::TokenTree])
9797
MacEager::expr(gen.code())
9898
}
9999

100-
struct NfaGen<'a> {
101-
cx: &'a ExtCtxt<'a>,
100+
struct NfaGen<'cx, 'a: 'cx> {
101+
cx: &'cx ExtCtxt<'a>,
102102
sp: codemap::Span,
103103
prog: Program,
104104
names: Vec<Option<String>>,
105105
original: String,
106106
}
107107

108-
impl<'a> NfaGen<'a> {
108+
impl<'a, 'cx> NfaGen<'a, 'cx> {
109109
fn code(&mut self) -> P<ast::Expr> {
110110
// Most or all of the following things are used in the quasiquoted
111111
// expression returned.

0 commit comments

Comments
 (0)