|
4 | 4 |
|
5 | 5 | #![allow(rustc::default_hash_types)]
|
6 | 6 |
|
| 7 | +use rustc_abi::ExternAbi; |
7 | 8 | use rustc_ast::ast;
|
8 | 9 | use rustc_attr::DeprecatedSince;
|
9 | 10 | use rustc_hir::def::{CtorKind, DefKind};
|
10 | 11 | use rustc_hir::def_id::DefId;
|
11 | 12 | use rustc_metadata::rendered_const;
|
12 | 13 | use rustc_middle::{bug, ty};
|
13 | 14 | use rustc_span::{Pos, Symbol, sym};
|
14 |
| -use rustc_target::spec::abi::Abi as RustcAbi; |
15 | 15 | use rustdoc_json_types::*;
|
16 | 16 |
|
17 | 17 | use super::FullItemId;
|
@@ -421,17 +421,17 @@ pub(crate) fn from_fn_header(header: &rustc_hir::FnHeader) -> FunctionHeader {
|
421 | 421 | }
|
422 | 422 | }
|
423 | 423 |
|
424 |
| -fn convert_abi(a: RustcAbi) -> Abi { |
| 424 | +fn convert_abi(a: ExternAbi) -> Abi { |
425 | 425 | match a {
|
426 |
| - RustcAbi::Rust => Abi::Rust, |
427 |
| - RustcAbi::C { unwind } => Abi::C { unwind }, |
428 |
| - RustcAbi::Cdecl { unwind } => Abi::Cdecl { unwind }, |
429 |
| - RustcAbi::Stdcall { unwind } => Abi::Stdcall { unwind }, |
430 |
| - RustcAbi::Fastcall { unwind } => Abi::Fastcall { unwind }, |
431 |
| - RustcAbi::Aapcs { unwind } => Abi::Aapcs { unwind }, |
432 |
| - RustcAbi::Win64 { unwind } => Abi::Win64 { unwind }, |
433 |
| - RustcAbi::SysV64 { unwind } => Abi::SysV64 { unwind }, |
434 |
| - RustcAbi::System { unwind } => Abi::System { unwind }, |
| 426 | + ExternAbi::Rust => Abi::Rust, |
| 427 | + ExternAbi::C { unwind } => Abi::C { unwind }, |
| 428 | + ExternAbi::Cdecl { unwind } => Abi::Cdecl { unwind }, |
| 429 | + ExternAbi::Stdcall { unwind } => Abi::Stdcall { unwind }, |
| 430 | + ExternAbi::Fastcall { unwind } => Abi::Fastcall { unwind }, |
| 431 | + ExternAbi::Aapcs { unwind } => Abi::Aapcs { unwind }, |
| 432 | + ExternAbi::Win64 { unwind } => Abi::Win64 { unwind }, |
| 433 | + ExternAbi::SysV64 { unwind } => Abi::SysV64 { unwind }, |
| 434 | + ExternAbi::System { unwind } => Abi::System { unwind }, |
435 | 435 | _ => Abi::Other(a.to_string()),
|
436 | 436 | }
|
437 | 437 | }
|
|
0 commit comments