@@ -204,7 +204,7 @@ def unpack(tarball, tarball_suffix, dst, verbose=False, match=None):
204204 name = member .replace (fname + "/" , "" , 1 )
205205 if match is not None and not name .startswith (match ):
206206 continue
207- name = name [len (match ) + 1 :]
207+ name = name [len (match ) + 1 :]
208208
209209 dst_path = os .path .join (dst , name )
210210 if verbose :
@@ -486,15 +486,15 @@ class DownloadInfo:
486486 """A helper class that can be pickled into a parallel subprocess"""
487487
488488 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 ,
498498 ):
499499 self .base_download_url = base_download_url
500500 self .download_path = download_path
@@ -576,7 +576,7 @@ def __init__(self, config_toml="", args=None):
576576 self .stage0_data ["compiler_date" ], self .stage0_data ["compiler_version" ]
577577 )
578578 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" ]
580580 )
581581
582582 self .build = args .build or self .build_triple ()
@@ -597,10 +597,10 @@ def download_toolchain(self):
597597 key = self .stage0_compiler .date
598598 is_outdated = self .program_out_of_date (self .rustc_stamp (), key )
599599 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
601601 )
602602 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
604604 )
605605
606606 if need_rustc or need_cargo :
@@ -617,10 +617,10 @@ def download_toolchain(self):
617617 script = (
618618 # NOTE: can't use `taskkill` or `Get-Process -Name` because they error if
619619 # 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"
624624 )
625625 run_powershell ([script ])
626626 shutil .rmtree (bin_root )
@@ -844,7 +844,7 @@ def fix_bin_or_dylib(self, fname):
844844 if ".so" not in fname :
845845 # Finally, set the correct .interp for binaries
846846 with open (
847- "{}/nix-support/dynamic-linker" .format (nix_deps_dir )
847+ "{}/nix-support/dynamic-linker" .format (nix_deps_dir )
848848 ) as dynamic_linker :
849849 patchelf_args += ["--set-interpreter" , dynamic_linker .read ().rstrip ()]
850850
@@ -968,12 +968,12 @@ def get_string(line):
968968 """
969969 start = line .find ('"' )
970970 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 ]
973973 start = line .find ("'" )
974974 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 ]
977977 return None
978978
979979 def bootstrap_out (self ):
@@ -1109,6 +1109,7 @@ def build_bootstrap_cmd(self, env):
11091109 else :
11101110 deny_warnings = self .warnings == "deny"
11111111 if deny_warnings :
1112+ print ("DENYING WARNINGS IN PYTHON" )
11121113 env ["RUSTFLAGS" ] += " -Dwarnings"
11131114
11141115 # Add RUSTFLAGS_BOOTSTRAP to RUSTFLAGS for bootstrap compilation.
@@ -1267,7 +1268,7 @@ def bootstrap(args):
12671268 rust_root = os .path .abspath (os .path .join (__file__ , "../../.." ))
12681269
12691270 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" )
12711272 ):
12721273 eprint (
12731274 "warn: Looks like you are trying to bootstrap Rust from a source that is neither a "
0 commit comments