Skip to content

Commit 19e55b0

Browse files
committed
Fix old clangs
1 parent b105a98 commit 19e55b0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/expectations/tests/libclang-4/objc_inheritance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl std::ops::Deref for Foo {
2121
unsafe impl objc::Message for Foo {}
2222
impl Foo {
2323
pub fn alloc() -> Self {
24-
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
24+
Self(unsafe { msg_send!(class!(Foo), alloc) })
2525
}
2626
}
2727
impl IFoo for Foo {}
@@ -38,7 +38,7 @@ impl std::ops::Deref for Bar {
3838
unsafe impl objc::Message for Bar {}
3939
impl Bar {
4040
pub fn alloc() -> Self {
41-
Self(unsafe { msg_send!(objc::class!(Bar), alloc) })
41+
Self(unsafe { msg_send!(class!(Bar), alloc) })
4242
}
4343
}
4444
impl IFoo for Bar {}
@@ -73,7 +73,7 @@ impl std::ops::Deref for Baz {
7373
unsafe impl objc::Message for Baz {}
7474
impl Baz {
7575
pub fn alloc() -> Self {
76-
Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
76+
Self(unsafe { msg_send!(class!(Baz), alloc) })
7777
}
7878
}
7979
impl IBar for Baz {}

tests/expectations/tests/libclang-4/objc_template.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl std::ops::Deref for Foo {
2121
unsafe impl objc::Message for Foo {}
2222
impl Foo {
2323
pub fn alloc() -> Self {
24-
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
24+
Self(unsafe { msg_send!(class!(Foo), alloc) })
2525
}
2626
}
2727
impl<ObjectType: 'static> IFoo<ObjectType> for Foo {}
@@ -45,7 +45,7 @@ impl std::ops::Deref for FooMultiGeneric {
4545
unsafe impl objc::Message for FooMultiGeneric {}
4646
impl FooMultiGeneric {
4747
pub fn alloc() -> Self {
48-
Self(unsafe { msg_send!(objc::class!(FooMultiGeneric), alloc) })
48+
Self(unsafe { msg_send!(class!(FooMultiGeneric), alloc) })
4949
}
5050
}
5151
impl<KeyType: 'static, ObjectType: 'static>

tests/expectations/tests/libclang-5/objc_inheritance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl std::ops::Deref for Foo {
2121
unsafe impl objc::Message for Foo {}
2222
impl Foo {
2323
pub fn alloc() -> Self {
24-
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
24+
Self(unsafe { msg_send!(class!(Foo), alloc) })
2525
}
2626
}
2727
impl IFoo for Foo {}
@@ -38,7 +38,7 @@ impl std::ops::Deref for Bar {
3838
unsafe impl objc::Message for Bar {}
3939
impl Bar {
4040
pub fn alloc() -> Self {
41-
Self(unsafe { msg_send!(objc::class!(Bar), alloc) })
41+
Self(unsafe { msg_send!(class!(Bar), alloc) })
4242
}
4343
}
4444
impl IFoo for Bar {}
@@ -73,7 +73,7 @@ impl std::ops::Deref for Baz {
7373
unsafe impl objc::Message for Baz {}
7474
impl Baz {
7575
pub fn alloc() -> Self {
76-
Self(unsafe { msg_send!(objc::class!(Baz), alloc) })
76+
Self(unsafe { msg_send!(class!(Baz), alloc) })
7777
}
7878
}
7979
impl IBar for Baz {}

tests/expectations/tests/libclang-5/objc_template.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl std::ops::Deref for Foo {
2121
unsafe impl objc::Message for Foo {}
2222
impl Foo {
2323
pub fn alloc() -> Self {
24-
Self(unsafe { msg_send!(objc::class!(Foo), alloc) })
24+
Self(unsafe { msg_send!(class!(Foo), alloc) })
2525
}
2626
}
2727
impl<ObjectType: 'static> IFoo<ObjectType> for Foo {}
@@ -45,7 +45,7 @@ impl std::ops::Deref for FooMultiGeneric {
4545
unsafe impl objc::Message for FooMultiGeneric {}
4646
impl FooMultiGeneric {
4747
pub fn alloc() -> Self {
48-
Self(unsafe { msg_send!(objc::class!(FooMultiGeneric), alloc) })
48+
Self(unsafe { msg_send!(class!(FooMultiGeneric), alloc) })
4949
}
5050
}
5151
impl<KeyType: 'static, ObjectType: 'static>

0 commit comments

Comments
 (0)