Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #108 from oli-obk/foo
Browse files Browse the repository at this point in the history
update syntex
  • Loading branch information
oli-obk authored Sep 21, 2016
2 parents 556159e + 1c5a29d commit 7368625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aster"
version = "0.26.1"
version = "0.27.0"
authors = ["Erick Tryzelaar <[email protected]>"]
license = "MIT/Apache-2.0"
description = "A libsyntax ast builder"
Expand All @@ -12,7 +12,7 @@ with-syntex = ["syntex_syntax"]
unstable-testing = ["clippy", "compiletest_rs"]

[dependencies]
syntex_syntax = { version = "^0.43.0", optional = true }
syntex_syntax = { version = "^0.44.0", optional = true }
clippy = { version = "0.*", optional = true }
compiletest_rs = { version = "^0.2.0", optional = true }

Expand Down
6 changes: 3 additions & 3 deletions src/mac.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use syntax::ast;
use syntax::codemap::{self, DUMMY_SP, Span, respan};
use syntax::ext::base::{DummyMacroLoader, ExtCtxt};
use syntax::ext::base::{DummyResolver, ExtCtxt};
use syntax::ext::expand;
use syntax::ext::quote::rt::ToTokens;
use syntax::parse::ParseSess;
Expand Down Expand Up @@ -70,7 +70,7 @@ impl<F> MacBuilder<F>
where T: ToTokens
{
let parse_sess = ParseSess::new();
let mut macro_loader = DummyMacroLoader;
let mut macro_loader = DummyResolver;
let cx = make_ext_ctxt(&parse_sess, &mut macro_loader);
let tokens = expr.to_tokens(&cx);
assert!(tokens.len() == 1);
Expand All @@ -95,7 +95,7 @@ impl<F> Invoke<P<ast::Expr>> for MacBuilder<F>
}

fn make_ext_ctxt<'a>(sess: &'a ParseSess,
macro_loader: &'a mut DummyMacroLoader) -> ExtCtxt<'a> {
macro_loader: &'a mut DummyResolver) -> ExtCtxt<'a> {
let info = codemap::ExpnInfo {
call_site: codemap::DUMMY_SP,
callee: codemap::NameAndSpan {
Expand Down

0 comments on commit 7368625

Please sign in to comment.