25
25
26
26
// pub(crate) so tests can use the TokenStream, more notes in test/utils.rs
27
27
pub ( crate ) mod abi_1_47;
28
- mod abi_1_55 ;
28
+ mod abi_1_54 ;
29
29
mod abi_1_56;
30
30
mod abi_1_58;
31
31
32
32
use super :: dylib:: LoadProcMacroDylibError ;
33
33
pub ( crate ) use abi_1_47:: Abi as Abi_1_47 ;
34
- pub ( crate ) use abi_1_55 :: Abi as Abi_1_55 ;
34
+ pub ( crate ) use abi_1_54 :: Abi as Abi_1_54 ;
35
35
pub ( crate ) use abi_1_56:: Abi as Abi_1_56 ;
36
36
pub ( crate ) use abi_1_58:: Abi as Abi_1_58 ;
37
37
use libloading:: Library ;
@@ -49,7 +49,7 @@ impl PanicMessage {
49
49
50
50
pub ( crate ) enum Abi {
51
51
Abi1_47 ( Abi_1_47 ) ,
52
- Abi1_55 ( Abi_1_55 ) ,
52
+ Abi1_54 ( Abi_1_54 ) ,
53
53
Abi1_56 ( Abi_1_56 ) ,
54
54
Abi1_58 ( Abi_1_58 ) ,
55
55
}
@@ -72,13 +72,13 @@ impl Abi {
72
72
// FIXME: this should use exclusive ranges when they're stable
73
73
// https://github.com/rust-lang/rust/issues/37854
74
74
match ( info. version . 0 , info. version . 1 ) {
75
- ( 1 , 47 ..=54 ) => {
75
+ ( 1 , 47 ..=53 ) => {
76
76
let inner = unsafe { Abi_1_47 :: from_lib ( lib, symbol_name) } ?;
77
77
Ok ( Abi :: Abi1_47 ( inner) )
78
78
}
79
- ( 1 , 55 ..=55 ) => {
80
- let inner = unsafe { Abi_1_55 :: from_lib ( lib, symbol_name) } ?;
81
- Ok ( Abi :: Abi1_55 ( inner) )
79
+ ( 1 , 54 ..=55 ) => {
80
+ let inner = unsafe { Abi_1_54 :: from_lib ( lib, symbol_name) } ?;
81
+ Ok ( Abi :: Abi1_54 ( inner) )
82
82
}
83
83
( 1 , 56 ..=57 ) => {
84
84
let inner = unsafe { Abi_1_56 :: from_lib ( lib, symbol_name) } ?;
@@ -99,8 +99,8 @@ impl Abi {
99
99
attributes : Option < & tt:: Subtree > ,
100
100
) -> Result < tt:: Subtree , PanicMessage > {
101
101
match self {
102
- Self :: Abi1_55 ( abi) => abi. expand ( macro_name, macro_body, attributes) ,
103
102
Self :: Abi1_47 ( abi) => abi. expand ( macro_name, macro_body, attributes) ,
103
+ Self :: Abi1_54 ( abi) => abi. expand ( macro_name, macro_body, attributes) ,
104
104
Self :: Abi1_56 ( abi) => abi. expand ( macro_name, macro_body, attributes) ,
105
105
Self :: Abi1_58 ( abi) => abi. expand ( macro_name, macro_body, attributes) ,
106
106
}
@@ -109,7 +109,7 @@ impl Abi {
109
109
pub fn list_macros ( & self ) -> Vec < ( String , ProcMacroKind ) > {
110
110
match self {
111
111
Self :: Abi1_47 ( abi) => abi. list_macros ( ) ,
112
- Self :: Abi1_55 ( abi) => abi. list_macros ( ) ,
112
+ Self :: Abi1_54 ( abi) => abi. list_macros ( ) ,
113
113
Self :: Abi1_56 ( abi) => abi. list_macros ( ) ,
114
114
Self :: Abi1_58 ( abi) => abi. list_macros ( ) ,
115
115
}
0 commit comments