File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl<'a> Item<'a> {
148
148
Item {
149
149
unsafety : fm. unsafety ,
150
150
abi : format_extern (
151
- ast:: Extern :: from_abi ( fm. abi ) ,
151
+ ast:: Extern :: from_abi ( fm. abi , DUMMY_SP ) ,
152
152
config. force_explicit_abi ( ) ,
153
153
true ,
154
154
) ,
Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ pub(crate) fn format_extern(
138
138
) -> Cow < ' static , str > {
139
139
let abi = match ext {
140
140
ast:: Extern :: None => "Rust" . to_owned ( ) ,
141
- ast:: Extern :: Implicit => "C" . to_owned ( ) ,
142
- ast:: Extern :: Explicit ( abi) => abi. symbol_unescaped . to_string ( ) ,
141
+ ast:: Extern :: Implicit ( _ ) => "C" . to_owned ( ) ,
142
+ ast:: Extern :: Explicit ( abi, _ ) => abi. symbol_unescaped . to_string ( ) ,
143
143
} ;
144
144
145
145
if abi == "Rust" && !is_mod {
You can’t perform that action at this time.
0 commit comments