@@ -231,7 +231,7 @@ use rustc_session::search_paths::PathKind;
231231use rustc_session:: utils:: CanonicalizedPath ;
232232use rustc_span:: Span ;
233233use rustc_span:: symbol:: Symbol ;
234- use rustc_target:: spec:: { Target , TargetTriple } ;
234+ use rustc_target:: spec:: { Target , TargetTuple } ;
235235use snap:: read:: FrameDecoder ;
236236use tracing:: { debug, info} ;
237237
@@ -253,7 +253,7 @@ pub(crate) struct CrateLocator<'a> {
253253 pub hash : Option < Svh > ,
254254 extra_filename : Option < & ' a str > ,
255255 pub target : & ' a Target ,
256- pub triple : TargetTriple ,
256+ pub tuple : TargetTuple ,
257257 pub filesearch : FileSearch < ' a > ,
258258 pub is_proc_macro : bool ,
259259
@@ -339,7 +339,7 @@ impl<'a> CrateLocator<'a> {
339339 hash,
340340 extra_filename,
341341 target : & sess. target ,
342- triple : sess. opts . target_triple . clone ( ) ,
342+ tuple : sess. opts . target_triple . clone ( ) ,
343343 filesearch : sess. target_filesearch ( path_kind) ,
344344 is_proc_macro : false ,
345345 crate_rejections : CrateRejections :: default ( ) ,
@@ -675,8 +675,8 @@ impl<'a> CrateLocator<'a> {
675675 return None ;
676676 }
677677
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) ;
680680 self . crate_rejections . via_triple . push ( CrateMismatch {
681681 path : libpath. to_path_buf ( ) ,
682682 got : header. triple . to_string ( ) ,
@@ -760,7 +760,7 @@ impl<'a> CrateLocator<'a> {
760760 CrateError :: LocatorCombined ( Box :: new ( CombinedLocatorError {
761761 crate_name : self . crate_name ,
762762 root,
763- triple : self . triple ,
763+ triple : self . tuple ,
764764 dll_prefix : self . target . dll_prefix . to_string ( ) ,
765765 dll_suffix : self . target . dll_suffix . to_string ( ) ,
766766 crate_rejections : self . crate_rejections ,
@@ -923,7 +923,7 @@ struct CrateRejections {
923923pub ( crate ) struct CombinedLocatorError {
924924 crate_name : Symbol ,
925925 root : Option < CratePaths > ,
926- triple : TargetTriple ,
926+ triple : TargetTuple ,
927927 dll_prefix : String ,
928928 dll_suffix : String ,
929929 crate_rejections : CrateRejections ,
@@ -1048,7 +1048,7 @@ impl CrateError {
10481048 dcx. emit_err ( errors:: NoCrateWithTriple {
10491049 span,
10501050 crate_name,
1051- locator_triple : locator. triple . triple ( ) ,
1051+ locator_triple : locator. triple . tuple ( ) ,
10521052 add_info,
10531053 found_crates,
10541054 } ) ;
0 commit comments