@@ -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 snap:: read:: FrameDecoder ;
236
236
use tracing:: { debug, info} ;
237
237
@@ -253,7 +253,7 @@ pub(crate) struct CrateLocator<'a> {
253
253
pub hash : Option < Svh > ,
254
254
extra_filename : Option < & ' a str > ,
255
255
pub target : & ' a Target ,
256
- pub triple : TargetTriple ,
256
+ pub tuple : TargetTuple ,
257
257
pub filesearch : FileSearch < ' a > ,
258
258
pub is_proc_macro : bool ,
259
259
@@ -339,7 +339,7 @@ impl<'a> CrateLocator<'a> {
339
339
hash,
340
340
extra_filename,
341
341
target : & sess. target ,
342
- triple : sess. opts . target_triple . clone ( ) ,
342
+ tuple : sess. opts . target_triple . clone ( ) ,
343
343
filesearch : sess. target_filesearch ( path_kind) ,
344
344
is_proc_macro : false ,
345
345
crate_rejections : CrateRejections :: default ( ) ,
@@ -675,8 +675,8 @@ impl<'a> CrateLocator<'a> {
675
675
return None ;
676
676
}
677
677
678
- if header. triple != self . triple {
679
- info ! ( "Rejecting via crate triple: expected {} got {}" , self . triple , header. triple) ;
678
+ if header. triple != self . tuple {
679
+ info ! ( "Rejecting via crate triple: expected {} got {}" , self . tuple , header. triple) ;
680
680
self . crate_rejections . via_triple . push ( CrateMismatch {
681
681
path : libpath. to_path_buf ( ) ,
682
682
got : header. triple . to_string ( ) ,
@@ -760,7 +760,7 @@ impl<'a> CrateLocator<'a> {
760
760
CrateError :: LocatorCombined ( Box :: new ( CombinedLocatorError {
761
761
crate_name : self . crate_name ,
762
762
root,
763
- triple : self . triple ,
763
+ triple : self . tuple ,
764
764
dll_prefix : self . target . dll_prefix . to_string ( ) ,
765
765
dll_suffix : self . target . dll_suffix . to_string ( ) ,
766
766
crate_rejections : self . crate_rejections ,
@@ -923,7 +923,7 @@ struct CrateRejections {
923
923
pub ( crate ) struct CombinedLocatorError {
924
924
crate_name : Symbol ,
925
925
root : Option < CratePaths > ,
926
- triple : TargetTriple ,
926
+ triple : TargetTuple ,
927
927
dll_prefix : String ,
928
928
dll_suffix : String ,
929
929
crate_rejections : CrateRejections ,
@@ -1048,7 +1048,7 @@ impl CrateError {
1048
1048
dcx. emit_err ( errors:: NoCrateWithTriple {
1049
1049
span,
1050
1050
crate_name,
1051
- locator_triple : locator. triple . triple ( ) ,
1051
+ locator_triple : locator. triple . tuple ( ) ,
1052
1052
add_info,
1053
1053
found_crates,
1054
1054
} ) ;
0 commit comments