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

Commit

Permalink
Update to syntex 0.48
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 2, 2016
1 parent 51f21c4 commit 89821c5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions quasi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ unstable-testing = ["clippy"]

[dependencies]
clippy = { version = "^0.*", optional = true }
syntex_errors = { version = "^0.47.0", optional = true }
syntex_syntax = { version = "^0.47.0", optional = true }
syntex_errors = { version = "^0.48.0", optional = true }
syntex_syntax = { version = "^0.48.0", optional = true }
6 changes: 0 additions & 6 deletions quasi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ impl ToTokens for ast::Generics {
panictry!(parse_tts_from_source_str(
"<quote expansion>".to_string(),
s,
cx.cfg().clone(),
cx.parse_sess()))
}
}
Expand All @@ -163,7 +162,6 @@ impl ToTokens for ast::WhereClause {
panictry!(parse_tts_from_source_str(
"<quote expansion>".to_string(),
s,
cx.cfg().clone(),
cx.parse_sess()))
}
}
Expand Down Expand Up @@ -361,31 +359,27 @@ impl<'a> ExtParseUtils for ExtCtxt<'a> {
panictry!(parse::parse_item_from_source_str(
"<quote expansion>".to_string(),
s,
self.cfg().clone(),
self.parse_sess())).expect("parse error")
}

fn parse_stmt(&self, s: String) -> ast::Stmt {
panictry!(parse::parse_stmt_from_source_str(
"<quote expansion>".to_string(),
s,
self.cfg().clone(),
self.parse_sess())).expect("parse error")
}

fn parse_expr(&self, s: String) -> P<ast::Expr> {
panictry!(parse::parse_expr_from_source_str(
"<quote expansion>".to_string(),
s,
self.cfg().clone(),
self.parse_sess()))
}

fn parse_tts(&self, s: String) -> Vec<TokenTree> {
panictry!(parse::parse_tts_from_source_str(
"<quote expansion>".to_string(),
s,
self.cfg().clone(),
self.parse_sess()))
}
}
Expand Down
8 changes: 4 additions & 4 deletions quasi_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ with-syntex = ["syntex", "syntex_errors", "syntex_syntax", "aster/with-syntex"]
unstable-testing = ["clippy"]

[dependencies]
aster = { version = "^0.32.0", default-features = false }
aster = { version = "^0.33.0", default-features = false }
clippy = { version = "^0.*", optional = true }
syntex = { version = "^0.47.0", optional = true }
syntex_errors = { version = "^0.47.0", optional = true }
syntex_syntax = { version = "^0.47.0", optional = true }
syntex = { version = "^0.48.0", optional = true }
syntex_errors = { version = "^0.48.0", optional = true }
syntex_syntax = { version = "^0.48.0", optional = true }
2 changes: 1 addition & 1 deletion quasi_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ clippy = { version = "^0.*", optional = true }
quasi_codegen = { version = "^0.24.0", path = "../quasi_codegen", default-features = false }

[dev-dependencies]
aster = "^0.32.0"
aster = "^0.33.0"
quasi = { version = "^0.24.0", path = "../quasi" }
8 changes: 4 additions & 4 deletions quasi_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ unstable-testing = ["clippy", "quasi/unstable-testing", "quasi_codegen/unstable-

[build-dependencies]
quasi_codegen = { path = "../quasi_codegen" }
syntex = { version = "^0.47.0" }
syntex = { version = "^0.48.0" }

[dependencies]
clippy = { version = "^0.*", optional = true }

[dev-dependencies]
aster = { version = "^0.32.0", features = ["with-syntex"] }
aster = { version = "^0.33.0", features = ["with-syntex"] }
quasi = { path = "../quasi", features = ["with-syntex"] }
syntex = { version = "^0.47.0" }
syntex_syntax = { version = "^0.47.0" }
syntex = { version = "^0.48.0" }
syntex_syntax = { version = "^0.48.0" }

0 comments on commit 89821c5

Please sign in to comment.