Skip to content

Commit ac99aa1

Browse files
Eijebongemilio
authored andcommitted
Update syn related dependencies and bump version
1 parent 84ea6bf commit ac99aa1

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

Cargo.lock

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ readme = "README.md"
1414
repository = "https://github.com/rust-lang/rust-bindgen"
1515
documentation = "https://docs.rs/bindgen"
1616
homepage = "https://rust-lang.github.io/rust-bindgen/"
17-
version = "0.51.0"
17+
version = "0.51.1"
1818
build = "build.rs"
1919

2020
include = [
@@ -52,14 +52,14 @@ clap = { version = "2", optional = true }
5252
clang-sys = { version = "0.28.0", features = ["runtime", "clang_6_0"] }
5353
lazy_static = "1"
5454
peeking_take_while = "0.1.2"
55-
quote = { version = "0.6", default-features = false }
55+
quote = { version = "1", default-features = false }
5656
regex = "1.0"
5757
which = ">=1.0, <3.0"
5858
shlex = "0.1"
5959
fxhash = "0.2"
6060
# New validation in 0.3.6 breaks bindgen-integration:
6161
# https://github.com/alexcrichton/proc-macro2/commit/489c642.
62-
proc-macro2 = { version = "0.4", default-features = false }
62+
proc-macro2 = { version = "1", default-features = false }
6363

6464
[dependencies.env_logger]
6565
optional = true

src/ir/traversal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,6 @@ mod tests {
511511
#[allow(dead_code)]
512512
fn traversal_predicate_is_object_safe() {
513513
// This should compile only if TraversalPredicate is object safe.
514-
fn takes_by_trait_object(_: &TraversalPredicate) {}
514+
fn takes_by_trait_object(_: &dyn TraversalPredicate) {}
515515
}
516516
}

tests/expectations/tests/objc_class_method.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ pub trait Foo {
2222
impl Foo for id {
2323
unsafe fn method() {
2424
msg_send!(
25-
objc::runtime::Class::get("Foo").expect("Couldn\'t find Foo"),
25+
objc::runtime::Class::get("Foo").expect("Couldn't find Foo"),
2626
method
2727
)
2828
}
2929
unsafe fn methodWithInt_(foo: ::std::os::raw::c_int) {
3030
msg_send!(
31-
objc::runtime::Class::get("Foo").expect("Couldn\'t find Foo"),
31+
objc::runtime::Class::get("Foo").expect("Couldn't find Foo"),
3232
methodWithInt: foo
3333
)
3434
}
3535
unsafe fn methodWithFoo_(foo: id) {
3636
msg_send!(
37-
objc::runtime::Class::get("Foo").expect("Couldn\'t find Foo"),
37+
objc::runtime::Class::get("Foo").expect("Couldn't find Foo"),
3838
methodWithFoo: foo
3939
)
4040
}
4141
unsafe fn methodReturningInt() -> ::std::os::raw::c_int {
4242
msg_send!(
43-
objc::runtime::Class::get("Foo").expect("Couldn\'t find Foo"),
43+
objc::runtime::Class::get("Foo").expect("Couldn't find Foo"),
4444
methodReturningInt
4545
)
4646
}
4747
unsafe fn methodReturningFoo() -> *mut id {
4848
msg_send!(
49-
objc::runtime::Class::get("Foo").expect("Couldn\'t find Foo"),
49+
objc::runtime::Class::get("Foo").expect("Couldn't find Foo"),
5050
methodReturningFoo
5151
)
5252
}
@@ -55,6 +55,6 @@ impl Foo for id {
5555
ptr: *mut ::std::os::raw::c_char,
5656
floatvalue: f32,
5757
) {
58-
msg_send ! ( objc :: runtime :: Class :: get ( "Foo" ) . expect ( "Couldn\'t find Foo" ) , methodWithArg1 : intvalue andArg2 : ptr andArg3 : floatvalue )
58+
msg_send ! ( objc :: runtime :: Class :: get ( "Foo" ) . expect ( "Couldn't find Foo" ) , methodWithArg1 : intvalue andArg2 : ptr andArg3 : floatvalue )
5959
}
6060
}

tests/expectations/tests/objc_method_clash.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl Foo for id {
1717
}
1818
unsafe fn class_foo() {
1919
msg_send!(
20-
objc::runtime::Class::get("Foo").expect("Couldn\'t find Foo"),
20+
objc::runtime::Class::get("Foo").expect("Couldn't find Foo"),
2121
foo
2222
)
2323
}

tests/expectations/tests/objc_whitelist.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl protocol_SomeProtocol for id {
1717
}
1818
unsafe fn protocolClassMethod() {
1919
msg_send!(
20-
objc::runtime::Class::get("SomeProtocol").expect("Couldn\'t find SomeProtocol"),
20+
objc::runtime::Class::get("SomeProtocol").expect("Couldn't find SomeProtocol"),
2121
protocolClassMethod
2222
)
2323
}
@@ -32,7 +32,7 @@ impl WhitelistMe for id {
3232
}
3333
unsafe fn classMethod() {
3434
msg_send!(
35-
objc::runtime::Class::get("WhitelistMe").expect("Couldn\'t find WhitelistMe"),
35+
objc::runtime::Class::get("WhitelistMe").expect("Couldn't find WhitelistMe"),
3636
classMethod
3737
)
3838
}

0 commit comments

Comments
 (0)