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

Commit

Permalink
feat(cargo): Bump syntex dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Mar 17, 2016
1 parent c5b813f commit f95179f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aster"
version = "0.13.1"
version = "0.14.0"
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>"]
license = "MIT/Apache-2.0"
description = "A libsyntax ast builder"
Expand All @@ -11,9 +11,9 @@ with-syntex = ["syntex_syntax"]
unstable-testing = ["clippy", "compiletest_rs"]

[dependencies]
syntex_syntax = { version = "^0.29.0", optional = true }
syntex_syntax = { version = "^0.30.0", optional = true }
clippy = { version = "0.*", optional = true }
compiletest_rs = { version = "^0.0.11", optional = true }
compiletest_rs = { version = "^0.1.1", optional = true }

[[test]]
name = "test"
Expand Down
8 changes: 8 additions & 0 deletions src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,7 @@ pub struct ItemImplItemBuilder<F=Identity> {
callback: F,
id: ast::Ident,
vis: ast::Visibility,
defaultness: ast::Defaultness,
attrs: Vec<ast::Attribute>,
span: Span,
}
Expand All @@ -1292,6 +1293,7 @@ impl<F> ItemImplItemBuilder<F>
callback: callback,
id: id.to_ident(),
vis: ast::Visibility::Inherited,
defaultness: ast::Defaultness::Final,
attrs: vec![],
span: DUMMY_SP,
}
Expand Down Expand Up @@ -1323,6 +1325,11 @@ impl<F> ItemImplItemBuilder<F>
self
}

pub fn default(mut self) -> Self {
self.defaultness = ast::Defaultness::Default;
self
}

pub fn const_(self) -> ConstBuilder<Self> {
ConstBuilder::with_callback(self)
}
Expand Down Expand Up @@ -1351,6 +1358,7 @@ impl<F> ItemImplItemBuilder<F>
id: ast::DUMMY_NODE_ID,
ident: self.id,
vis: self.vis,
defaultness: self.defaultness,
attrs: self.attrs,
node: node,
span: self.span,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ fn test_impl() {
id: ast::DUMMY_NODE_ID,
ident: builder.id("MyFloat"),
vis: ast::Visibility::Inherited,
defaultness: ast::Defaultness::Final,
attrs: vec![],
node: ast::ImplItemKind::Type(builder.ty().f64()),
span: DUMMY_SP,
Expand All @@ -627,6 +628,7 @@ fn test_impl() {
id: ast::DUMMY_NODE_ID,
ident: builder.id("PI"),
vis: ast::Visibility::Inherited,
defaultness: ast::Defaultness::Final,
attrs: vec![],
node: ast::ImplItemKind::Const(
builder.ty().f64(),
Expand All @@ -639,6 +641,7 @@ fn test_impl() {
id: ast::DUMMY_NODE_ID,
ident: builder.id("serialize"),
vis: ast::Visibility::Inherited,
defaultness: ast::Defaultness::Final,
attrs: vec![],
node: ast::ImplItemKind::Method(
ast::MethodSig {
Expand Down

0 comments on commit f95179f

Please sign in to comment.