File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
librustc_codegen_llvm/back Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ impl<'a> ArchiveBuilder<'a> {
172
172
let name = file. file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) ;
173
173
self . additions . push ( Addition :: File {
174
174
path : file. to_path_buf ( ) ,
175
- name_in_archive : name. to_string ( ) ,
175
+ name_in_archive : name. to_owned ( ) ,
176
176
} ) ;
177
177
}
178
178
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pub fn get_rpath_flags(config: &mut RPathConfig) -> Vec<String> {
42
42
43
43
// Use DT_RUNPATH instead of DT_RPATH if available
44
44
if config. linker_is_gnu {
45
- flags. push ( "-Wl,--enable-new-dtags" . to_string ( ) ) ;
45
+ flags. push ( "-Wl,--enable-new-dtags" . to_owned ( ) ) ;
46
46
}
47
47
48
48
flags
@@ -169,7 +169,7 @@ fn get_install_prefix_rpath(config: &mut RPathConfig) -> String {
169
169
let path = ( config. get_install_prefix_lib_path ) ( ) ;
170
170
let path = env:: current_dir ( ) . unwrap ( ) . join ( & path) ;
171
171
// FIXME (#9639): This needs to handle non-utf8 paths
172
- path. to_str ( ) . expect ( "non-utf8 component in rpath" ) . to_string ( )
172
+ path. to_str ( ) . expect ( "non-utf8 component in rpath" ) . to_owned ( )
173
173
}
174
174
175
175
fn minimize_rpaths ( rpaths : & [ String ] ) -> Vec < String > {
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ impl<'a> Drop for DiagnosticHandlers<'a> {
455
455
unsafe extern "C" fn report_inline_asm < ' a , ' b > ( cgcx : & ' a CodegenContext ,
456
456
msg : & ' b str ,
457
457
cookie : c_uint ) {
458
- cgcx. diag_emitter . inline_asm_error ( cookie as u32 , msg. to_string ( ) ) ;
458
+ cgcx. diag_emitter . inline_asm_error ( cookie as u32 , msg. to_owned ( ) ) ;
459
459
}
460
460
461
461
unsafe extern "C" fn inline_asm_handler ( diag : & SMDiagnostic ,
Original file line number Diff line number Diff line change @@ -860,7 +860,7 @@ impl<'a> Linker for EmLinker<'a> {
860
860
let res = encoder. emit_seq ( symbols. len ( ) , |encoder| {
861
861
for ( i, sym) in symbols. iter ( ) . enumerate ( ) {
862
862
encoder. emit_seq_elt ( i, |encoder| {
863
- encoder. emit_str ( & ( "_" . to_string ( ) + sym) )
863
+ encoder. emit_str ( & ( "_" . to_owned ( ) + sym) )
864
864
} ) ?;
865
865
}
866
866
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments