Skip to content

Commit c1d0b7e

Browse files
committed
Allow deprecations in macros so we don't give everyone warnings
The deprecations will be fixed later by raising the minimum supported Rust version for this crate. These deprecations take effect in Rust 1.34 and were enabled in rust-lang/rust#57425.
1 parent d2176d1 commit c1d0b7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/macros.rs

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ let cls = class!(NSObject);
1515
#[macro_export]
1616
macro_rules! class {
1717
($name:ident) => ({
18+
#[allow(deprecated)]
1819
#[inline(always)]
1920
fn get_class(name: &str) -> Option<&'static $crate::runtime::Class> {
2021
unsafe {
@@ -44,6 +45,7 @@ macro_rules! sel_impl {
4445
// Declare a function to hide unsafety, otherwise we can trigger the
4546
// unused_unsafe lint; see rust-lang/rust#8472
4647
($name:expr) => ({
48+
#[allow(deprecated)]
4749
#[inline(always)]
4850
fn register_sel(name: &str) -> $crate::runtime::Sel {
4951
unsafe {

0 commit comments

Comments
 (0)