@@ -14,7 +14,7 @@ pub fn get(
1414    target :  Option < & str > , 
1515    extra_env :  & FxHashMap < String ,  String > , 
1616)  -> anyhow:: Result < Vec < String > >  { 
17-     let  _p = tracing:: info_span!( "target_triple ::get" ) . entered ( ) ; 
17+     let  _p = tracing:: info_span!( "target_tuple ::get" ) . entered ( ) ; 
1818    if  let  Some ( target)  = target { 
1919        return  Ok ( vec ! [ target. to_owned( ) ] ) ; 
2020    } 
@@ -28,10 +28,10 @@ pub fn get(
2828        } 
2929        QueryConfig :: Rustc ( sysroot,  current_dir)  => ( sysroot,  current_dir) , 
3030    } ; 
31-     rustc_discover_host_triple ( extra_env,  sysroot,  current_dir) . map ( |it| vec ! [ it] ) 
31+     rustc_discover_host_tuple ( extra_env,  sysroot,  current_dir) . map ( |it| vec ! [ it] ) 
3232} 
3333
34- fn  rustc_discover_host_triple ( 
34+ fn  rustc_discover_host_tuple ( 
3535    extra_env :  & FxHashMap < String ,  String > , 
3636    sysroot :  & Sysroot , 
3737    current_dir :  & Path , 
@@ -60,14 +60,14 @@ fn cargo_config_build_target(
6060    cmd. envs ( extra_env) ; 
6161    cmd. current_dir ( cargo_toml. parent ( ) ) . env ( "RUSTC_BOOTSTRAP" ,  "1" ) ; 
6262    cmd. args ( [ "-Z" ,  "unstable-options" ,  "config" ,  "get" ,  "build.target" ] ) ; 
63-     // if successful we receive `build.target = "target-triple "` 
63+     // if successful we receive `build.target = "target-tuple "` 
6464    // or `build.target = ["<target 1>", ..]` 
6565    // this might be `error: config value `build.target` is not set` in which case we 
6666    // don't wanna log the error 
6767    utf8_stdout ( & mut  cmd) . and_then ( parse_output_cargo_config_build_target) . ok ( ) 
6868} 
6969
70- // Parses `"build.target = [target-triple , target-triple , ...]"` or `"build.target = "target-triple "` 
70+ // Parses `"build.target = [target-tuple , target-tuple , ...]"` or `"build.target = "target-tuple "` 
7171fn  parse_output_cargo_config_build_target ( stdout :  String )  -> anyhow:: Result < Vec < String > >  { 
7272    let  trimmed = stdout. trim_start_matches ( "build.target = " ) . trim_matches ( '"' ) ; 
7373
0 commit comments