diff options
| author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2019-01-30 09:43:56 +0100 |
|---|---|---|
| committer | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2019-01-30 09:43:57 +0100 |
| commit | 2cccf5962f3036bf79fbb0829015df009ae9ef4e (patch) | |
| tree | e236147d35fa025736675bd8f0d9622285e65ab3 | |
| parent | 4df66ba862bf1fbe838208fb856a16d9ddf6e82b (diff) | |
| download | rust-2cccf5962f3036bf79fbb0829015df009ae9ef4e.tar.gz rust-2cccf5962f3036bf79fbb0829015df009ae9ef4e.zip | |
rustbuild: fix build with rust 1.33
Fixes #57262 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
| -rw-r--r-- | src/bootstrap/dist.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index df34dfe4544..0c6e2131109 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -226,7 +226,7 @@ fn make_win_dist( let trim_chars: &[_] = &[' ', '=']; let value = line[(idx + 1)..] - .trim_left_matches(trim_chars) + .trim_start_matches(trim_chars) .split(';') .map(PathBuf::from); diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index bddc6362389..7491385af79 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -423,7 +423,7 @@ impl Build { Command::new(&build.initial_rustc).arg("--version").arg("--verbose")); let local_release = local_version_verbose .lines().filter(|x| x.starts_with("release:")) - .next().unwrap().trim_left_matches("release:").trim(); + .next().unwrap().trim_start_matches("release:").trim(); let my_version = channel::CFG_RELEASE_NUM; if local_release.split('.').take(2).eq(my_version.split('.').take(2)) { build.verbose(&format!("auto-detected local-rebuild {}", local_release)); |
