@@ -1601,15 +1601,12 @@ extern "C" {
1601
1601
-> & ' a Value ;
1602
1602
pub fn LLVMRustDIBuilderCreateOpDeref ( ) -> i64 ;
1603
1603
pub fn LLVMRustDIBuilderCreateOpPlusUconst ( ) -> i64 ;
1604
- }
1605
1604
1606
- #[ allow( improper_ctypes) ] // FIXME(#52456) needed for RustString.
1607
- extern "C" {
1605
+ #[ allow( improper_ctypes) ]
1608
1606
pub fn LLVMRustWriteTypeToString ( Type : & Type , s : & RustString ) ;
1607
+ #[ allow( improper_ctypes) ]
1609
1608
pub fn LLVMRustWriteValueToString ( value_ref : & Value , s : & RustString ) ;
1610
- }
1611
1609
1612
- extern "C" {
1613
1610
pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & Value > ;
1614
1611
pub fn LLVMIsAConstantFP ( value_ref : & Value ) -> Option < & Value > ;
1615
1612
@@ -1687,56 +1684,39 @@ extern "C" {
1687
1684
pub fn LLVMRustDestroyArchive ( AR : & ' static mut Archive ) ;
1688
1685
1689
1686
pub fn LLVMRustGetSectionName ( SI : & SectionIterator , data : & mut * const c_char ) -> size_t ;
1690
- }
1691
1687
1692
- #[ allow( improper_ctypes) ] // FIXME(#52456) needed for RustString.
1693
- extern "C" {
1688
+ #[ allow( improper_ctypes) ]
1694
1689
pub fn LLVMRustWriteTwineToString ( T : & Twine , s : & RustString ) ;
1695
- }
1696
1690
1697
- extern "C" {
1698
1691
pub fn LLVMContextSetDiagnosticHandler ( C : & Context ,
1699
1692
Handler : DiagnosticHandler ,
1700
1693
DiagnosticContext : * mut c_void ) ;
1701
- }
1702
1694
1703
- #[ allow( improper_ctypes) ] // FIXME(#52456) needed for RustString.
1704
- extern "C" {
1695
+ #[ allow( improper_ctypes) ]
1705
1696
pub fn LLVMRustUnpackOptimizationDiagnostic ( DI : & ' a DiagnosticInfo ,
1706
1697
pass_name_out : & RustString ,
1707
1698
function_out : & mut Option < & ' a Value > ,
1708
1699
loc_line_out : & mut c_uint ,
1709
1700
loc_column_out : & mut c_uint ,
1710
1701
loc_filename_out : & RustString ,
1711
1702
message_out : & RustString ) ;
1712
- }
1713
1703
1714
- extern "C" {
1715
1704
pub fn LLVMRustUnpackInlineAsmDiagnostic ( DI : & ' a DiagnosticInfo ,
1716
1705
cookie_out : & mut c_uint ,
1717
1706
message_out : & mut Option < & ' a Twine > ,
1718
1707
instruction_out : & mut Option < & ' a Value > ) ;
1719
- }
1720
1708
1721
- #[ allow( improper_ctypes) ] // FIXME(#52456) needed for RustString.
1722
- extern "C" {
1709
+ #[ allow( improper_ctypes) ]
1723
1710
pub fn LLVMRustWriteDiagnosticInfoToString ( DI : & DiagnosticInfo , s : & RustString ) ;
1724
- }
1725
-
1726
- extern "C" {
1727
1711
pub fn LLVMRustGetDiagInfoKind ( DI : & DiagnosticInfo ) -> DiagnosticKind ;
1728
1712
1729
1713
pub fn LLVMRustSetInlineAsmDiagnosticHandler ( C : & Context ,
1730
1714
H : InlineAsmDiagHandler ,
1731
1715
CX : * mut c_void ) ;
1732
- }
1733
1716
1734
- #[ allow( improper_ctypes) ] // FIXME(#52456) needed for RustString.
1735
- extern "C" {
1717
+ #[ allow( improper_ctypes) ]
1736
1718
pub fn LLVMRustWriteSMDiagnosticToString ( d : & SMDiagnostic , s : & RustString ) ;
1737
- }
1738
1719
1739
- extern "C" {
1740
1720
pub fn LLVMRustWriteArchive ( Dst : * const c_char ,
1741
1721
NumMembers : size_t ,
1742
1722
Members : * const & RustArchiveMember ,
0 commit comments