@@ -26,7 +26,7 @@ use libc::{c_ulonglong, c_void};
2626
2727use std:: ptr:: NonNull ;
2828
29- use super :: RustStringRef ;
29+ use super :: RustString ;
3030
3131pub type Bool = c_uint ;
3232
@@ -1402,8 +1402,8 @@ extern "C" {
14021402 pub fn LLVMRustDIBuilderCreateOpDeref ( ) -> i64 ;
14031403 pub fn LLVMRustDIBuilderCreateOpPlusUconst ( ) -> i64 ;
14041404
1405- pub fn LLVMRustWriteTypeToString ( Type : & Type , s : RustStringRef ) ;
1406- pub fn LLVMRustWriteValueToString ( value_ref : & Value , s : RustStringRef ) ;
1405+ pub fn LLVMRustWriteTypeToString ( Type : & Type , s : & RustString ) ;
1406+ pub fn LLVMRustWriteValueToString ( value_ref : & Value , s : & RustString ) ;
14071407
14081408 pub fn LLVMIsAConstantInt ( value_ref : & Value ) -> Option < & Value > ;
14091409 pub fn LLVMIsAConstantFP ( value_ref : & Value ) -> Option < & Value > ;
@@ -1478,32 +1478,32 @@ extern "C" {
14781478
14791479 pub fn LLVMRustGetSectionName ( SI : SectionIteratorRef , data : * mut * const c_char ) -> size_t ;
14801480
1481- pub fn LLVMRustWriteTwineToString ( T : & Twine , s : RustStringRef ) ;
1481+ pub fn LLVMRustWriteTwineToString ( T : & Twine , s : & RustString ) ;
14821482
14831483 pub fn LLVMContextSetDiagnosticHandler ( C : & Context ,
14841484 Handler : DiagnosticHandler ,
14851485 DiagnosticContext : * mut c_void ) ;
14861486
14871487 pub fn LLVMRustUnpackOptimizationDiagnostic ( DI : & ' a DiagnosticInfo ,
1488- pass_name_out : RustStringRef ,
1489- function_out : * mut Option < & ' a Value > ,
1490- loc_line_out : * mut c_uint ,
1491- loc_column_out : * mut c_uint ,
1492- loc_filename_out : RustStringRef ,
1493- message_out : RustStringRef ) ;
1488+ pass_name_out : & RustString ,
1489+ function_out : & mut Option < & ' a Value > ,
1490+ loc_line_out : & mut c_uint ,
1491+ loc_column_out : & mut c_uint ,
1492+ loc_filename_out : & RustString ,
1493+ message_out : & RustString ) ;
14941494 pub fn LLVMRustUnpackInlineAsmDiagnostic ( DI : & ' a DiagnosticInfo ,
14951495 cookie_out : * mut c_uint ,
14961496 message_out : * mut Option < & ' a Twine > ,
14971497 instruction_out : * mut Option < & ' a Value > ) ;
14981498
1499- pub fn LLVMRustWriteDiagnosticInfoToString ( DI : & DiagnosticInfo , s : RustStringRef ) ;
1499+ pub fn LLVMRustWriteDiagnosticInfoToString ( DI : & DiagnosticInfo , s : & RustString ) ;
15001500 pub fn LLVMRustGetDiagInfoKind ( DI : & DiagnosticInfo ) -> DiagnosticKind ;
15011501
15021502 pub fn LLVMRustSetInlineAsmDiagnosticHandler ( C : & Context ,
15031503 H : InlineAsmDiagHandler ,
15041504 CX : * mut c_void ) ;
15051505
1506- pub fn LLVMRustWriteSMDiagnosticToString ( d : & SMDiagnostic , s : RustStringRef ) ;
1506+ pub fn LLVMRustWriteSMDiagnosticToString ( d : & SMDiagnostic , s : & RustString ) ;
15071507
15081508 pub fn LLVMRustWriteArchive ( Dst : * const c_char ,
15091509 NumMembers : size_t ,
0 commit comments