Skip to content

Commit 98df25c

Browse files
bors[bot]lnicola
andauthored
Merge #11187
11187: Rename and use the 1.55 ABI for 1.54 r=lnicola a=lnicola It seems that what we used to call the 1.55 ABI was actually introduced in 1.54. CC #10799 Thanks to `@danielframpton` for finding it. Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents dbb1c1b + c934a99 commit 98df25c

File tree

13 files changed

+9
-9
lines changed

13 files changed

+9
-9
lines changed

crates/proc_macro_srv/src/abis/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
2626
// pub(crate) so tests can use the TokenStream, more notes in test/utils.rs
2727
pub(crate) mod abi_1_47;
28-
mod abi_1_55;
28+
mod abi_1_54;
2929
mod abi_1_56;
3030
mod abi_1_58;
3131

3232
use super::dylib::LoadProcMacroDylibError;
3333
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;
3535
pub(crate) use abi_1_56::Abi as Abi_1_56;
3636
pub(crate) use abi_1_58::Abi as Abi_1_58;
3737
use libloading::Library;
@@ -49,7 +49,7 @@ impl PanicMessage {
4949

5050
pub(crate) enum Abi {
5151
Abi1_47(Abi_1_47),
52-
Abi1_55(Abi_1_55),
52+
Abi1_54(Abi_1_54),
5353
Abi1_56(Abi_1_56),
5454
Abi1_58(Abi_1_58),
5555
}
@@ -72,13 +72,13 @@ impl Abi {
7272
// FIXME: this should use exclusive ranges when they're stable
7373
// https://github.com/rust-lang/rust/issues/37854
7474
match (info.version.0, info.version.1) {
75-
(1, 47..=54) => {
75+
(1, 47..=53) => {
7676
let inner = unsafe { Abi_1_47::from_lib(lib, symbol_name) }?;
7777
Ok(Abi::Abi1_47(inner))
7878
}
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))
8282
}
8383
(1, 56..=57) => {
8484
let inner = unsafe { Abi_1_56::from_lib(lib, symbol_name) }?;
@@ -99,8 +99,8 @@ impl Abi {
9999
attributes: Option<&tt::Subtree>,
100100
) -> Result<tt::Subtree, PanicMessage> {
101101
match self {
102-
Self::Abi1_55(abi) => abi.expand(macro_name, macro_body, attributes),
103102
Self::Abi1_47(abi) => abi.expand(macro_name, macro_body, attributes),
103+
Self::Abi1_54(abi) => abi.expand(macro_name, macro_body, attributes),
104104
Self::Abi1_56(abi) => abi.expand(macro_name, macro_body, attributes),
105105
Self::Abi1_58(abi) => abi.expand(macro_name, macro_body, attributes),
106106
}
@@ -109,7 +109,7 @@ impl Abi {
109109
pub fn list_macros(&self) -> Vec<(String, ProcMacroKind)> {
110110
match self {
111111
Self::Abi1_47(abi) => abi.list_macros(),
112-
Self::Abi1_55(abi) => abi.list_macros(),
112+
Self::Abi1_54(abi) => abi.list_macros(),
113113
Self::Abi1_56(abi) => abi.list_macros(),
114114
Self::Abi1_58(abi) => abi.list_macros(),
115115
}

0 commit comments

Comments
 (0)