@@ -204,7 +204,7 @@ def unpack(tarball, tarball_suffix, dst, verbose=False, match=None):
204
204
name = member .replace (fname + "/" , "" , 1 )
205
205
if match is not None and not name .startswith (match ):
206
206
continue
207
- name = name [len (match ) + 1 :]
207
+ name = name [len (match ) + 1 :]
208
208
209
209
dst_path = os .path .join (dst , name )
210
210
if verbose :
@@ -486,15 +486,15 @@ class DownloadInfo:
486
486
"""A helper class that can be pickled into a parallel subprocess"""
487
487
488
488
def __init__ (
489
- self ,
490
- base_download_url ,
491
- download_path ,
492
- bin_root ,
493
- tarball_path ,
494
- tarball_suffix ,
495
- stage0_data ,
496
- pattern ,
497
- verbose ,
489
+ self ,
490
+ base_download_url ,
491
+ download_path ,
492
+ bin_root ,
493
+ tarball_path ,
494
+ tarball_suffix ,
495
+ stage0_data ,
496
+ pattern ,
497
+ verbose ,
498
498
):
499
499
self .base_download_url = base_download_url
500
500
self .download_path = download_path
@@ -576,7 +576,7 @@ def __init__(self, config_toml="", args=None):
576
576
self .stage0_data ["compiler_date" ], self .stage0_data ["compiler_version" ]
577
577
)
578
578
self .download_url = (
579
- os .getenv ("RUSTUP_DIST_SERVER" ) or self .stage0_data ["dist_server" ]
579
+ os .getenv ("RUSTUP_DIST_SERVER" ) or self .stage0_data ["dist_server" ]
580
580
)
581
581
582
582
self .build = args .build or self .build_triple ()
@@ -597,10 +597,10 @@ def download_toolchain(self):
597
597
key = self .stage0_compiler .date
598
598
is_outdated = self .program_out_of_date (self .rustc_stamp (), key )
599
599
need_rustc = self .rustc ().startswith (bin_root ) and (
600
- not os .path .exists (self .rustc ()) or is_outdated
600
+ not os .path .exists (self .rustc ()) or is_outdated
601
601
)
602
602
need_cargo = self .cargo ().startswith (bin_root ) and (
603
- not os .path .exists (self .cargo ()) or is_outdated
603
+ not os .path .exists (self .cargo ()) or is_outdated
604
604
)
605
605
606
606
if need_rustc or need_cargo :
@@ -617,10 +617,10 @@ def download_toolchain(self):
617
617
script = (
618
618
# NOTE: can't use `taskkill` or `Get-Process -Name` because they error if
619
619
# the server isn't running.
620
- "Get-Process | "
621
- + 'Where-Object {$_.Name -eq "rust-analyzer-proc-macro-srv"} |'
622
- + 'Where-Object {{$_.Path -match "{}"}} |' .format (regex )
623
- + "Stop-Process"
620
+ "Get-Process | "
621
+ + 'Where-Object {$_.Name -eq "rust-analyzer-proc-macro-srv"} |'
622
+ + 'Where-Object {{$_.Path -match "{}"}} |' .format (regex )
623
+ + "Stop-Process"
624
624
)
625
625
run_powershell ([script ])
626
626
shutil .rmtree (bin_root )
@@ -844,7 +844,7 @@ def fix_bin_or_dylib(self, fname):
844
844
if ".so" not in fname :
845
845
# Finally, set the correct .interp for binaries
846
846
with open (
847
- "{}/nix-support/dynamic-linker" .format (nix_deps_dir )
847
+ "{}/nix-support/dynamic-linker" .format (nix_deps_dir )
848
848
) as dynamic_linker :
849
849
patchelf_args += ["--set-interpreter" , dynamic_linker .read ().rstrip ()]
850
850
@@ -968,12 +968,12 @@ def get_string(line):
968
968
"""
969
969
start = line .find ('"' )
970
970
if start != - 1 :
971
- end = start + 1 + line [start + 1 :].find ('"' )
972
- return line [start + 1 : end ]
971
+ end = start + 1 + line [start + 1 :].find ('"' )
972
+ return line [start + 1 : end ]
973
973
start = line .find ("'" )
974
974
if start != - 1 :
975
- end = start + 1 + line [start + 1 :].find ("'" )
976
- return line [start + 1 : end ]
975
+ end = start + 1 + line [start + 1 :].find ("'" )
976
+ return line [start + 1 : end ]
977
977
return None
978
978
979
979
def bootstrap_out (self ):
@@ -1109,6 +1109,7 @@ def build_bootstrap_cmd(self, env):
1109
1109
else :
1110
1110
deny_warnings = self .warnings == "deny"
1111
1111
if deny_warnings :
1112
+ print ("DENYING WARNINGS IN PYTHON" )
1112
1113
env ["RUSTFLAGS" ] += " -Dwarnings"
1113
1114
1114
1115
# Add RUSTFLAGS_BOOTSTRAP to RUSTFLAGS for bootstrap compilation.
@@ -1267,7 +1268,7 @@ def bootstrap(args):
1267
1268
rust_root = os .path .abspath (os .path .join (__file__ , "../../.." ))
1268
1269
1269
1270
if not os .path .exists (os .path .join (rust_root , ".git" )) and os .path .exists (
1270
- os .path .join (rust_root , ".github" )
1271
+ os .path .join (rust_root , ".github" )
1271
1272
):
1272
1273
eprint (
1273
1274
"warn: Looks like you are trying to bootstrap Rust from a source that is neither a "
0 commit comments