@@ -231,7 +231,7 @@ use rustc_session::search_paths::PathKind;
231
231
use rustc_session:: utils:: CanonicalizedPath ;
232
232
use rustc_span:: Span ;
233
233
use rustc_span:: symbol:: Symbol ;
234
- use rustc_target:: spec:: { Target , TargetTriple } ;
234
+ use rustc_target:: spec:: { Target , TargetTuple } ;
235
235
use tracing:: { debug, info} ;
236
236
237
237
use crate :: creader:: { Library , MetadataLoader } ;
@@ -252,7 +252,7 @@ pub(crate) struct CrateLocator<'a> {
252
252
pub hash : Option < Svh > ,
253
253
extra_filename : Option < & ' a str > ,
254
254
pub target : & ' a Target ,
255
- pub triple : TargetTriple ,
255
+ pub tuple : TargetTuple ,
256
256
pub filesearch : FileSearch < ' a > ,
257
257
pub is_proc_macro : bool ,
258
258
@@ -338,7 +338,7 @@ impl<'a> CrateLocator<'a> {
338
338
hash,
339
339
extra_filename,
340
340
target : & sess. target ,
341
- triple : sess. opts . target_triple . clone ( ) ,
341
+ tuple : sess. opts . target_triple . clone ( ) ,
342
342
filesearch : sess. target_filesearch ( path_kind) ,
343
343
is_proc_macro : false ,
344
344
crate_rejections : CrateRejections :: default ( ) ,
@@ -677,8 +677,8 @@ impl<'a> CrateLocator<'a> {
677
677
return None ;
678
678
}
679
679
680
- if header. triple != self . triple {
681
- info ! ( "Rejecting via crate triple: expected {} got {}" , self . triple , header. triple) ;
680
+ if header. triple != self . tuple {
681
+ info ! ( "Rejecting via crate triple: expected {} got {}" , self . tuple , header. triple) ;
682
682
self . crate_rejections . via_triple . push ( CrateMismatch {
683
683
path : libpath. to_path_buf ( ) ,
684
684
got : header. triple . to_string ( ) ,
@@ -766,7 +766,7 @@ impl<'a> CrateLocator<'a> {
766
766
CrateError :: LocatorCombined ( Box :: new ( CombinedLocatorError {
767
767
crate_name : self . crate_name ,
768
768
root,
769
- triple : self . triple ,
769
+ triple : self . tuple ,
770
770
dll_prefix : self . target . dll_prefix . to_string ( ) ,
771
771
dll_suffix : self . target . dll_suffix . to_string ( ) ,
772
772
crate_rejections : self . crate_rejections ,
@@ -909,7 +909,7 @@ struct CrateRejections {
909
909
pub ( crate ) struct CombinedLocatorError {
910
910
crate_name : Symbol ,
911
911
root : Option < CratePaths > ,
912
- triple : TargetTriple ,
912
+ triple : TargetTuple ,
913
913
dll_prefix : String ,
914
914
dll_suffix : String ,
915
915
crate_rejections : CrateRejections ,
@@ -1034,7 +1034,7 @@ impl CrateError {
1034
1034
dcx. emit_err ( errors:: NoCrateWithTriple {
1035
1035
span,
1036
1036
crate_name,
1037
- locator_triple : locator. triple . triple ( ) ,
1037
+ locator_triple : locator. triple . tuple ( ) ,
1038
1038
add_info,
1039
1039
found_crates,
1040
1040
} ) ;
0 commit comments