diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-17 03:03:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-17 03:03:02 +0200 |
| commit | e8fb78bf6c120470d2134e92c26f22c1b8a75187 (patch) | |
| tree | b0f6d090762cc3f19f2217afec4bba476b2e663a /src/bootstrap | |
| parent | 816808295dba315140a535a52f5aa2e40fbc13e6 (diff) | |
| parent | 892ef6fa48bd20c037351e0cf8ea12c4c429a868 (diff) | |
| download | rust-e8fb78bf6c120470d2134e92c26f22c1b8a75187.tar.gz rust-e8fb78bf6c120470d2134e92c26f22c1b8a75187.zip | |
Rollup merge of #63642 - eddyb:wrap-it-up, r=rkruppe,Mark-Simulacrum
Rename overflowing_{add,sub,mul} intrinsics to wrapping_{add,sub,mul}.
These confused @Gankra, and then, also me, especially since `overflowing_*` *methods* also exist, but they map to `*_with_overflow` intrinsics!
r? @oli-obk / @nikomatsakis cc @Mark-Simulacrum (on the rustbuild workaround)
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 2b2dfb8a196..da372781738 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -102,8 +102,13 @@ fn main() { // FIXME: the fact that core here is excluded is due to core_arch from our stdarch submodule // being broken on the beta compiler with bootstrap passed, so this is a temporary workaround // (we've just snapped, so there are no cfg(bootstrap) related annotations in core). - if stage == "0" && crate_name != Some("core") { - cmd.arg("--cfg").arg("bootstrap"); + if stage == "0" { + if crate_name != Some("core") { + cmd.arg("--cfg").arg("bootstrap"); + } else { + // NOTE(eddyb) see FIXME above, except now we need annotations again in core. + cmd.arg("--cfg").arg("boostrap_stdarch_ignore_this"); + } } // Print backtrace in case of ICE |
