Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b559710

Browse files
committedMay 17, 2018
Auto merge of #50807 - kennytm:rollup, r=kennytm
Rollup of 17 pull requests Successful merges: - #50170 (Implement From for more types on Cow) - #50638 (Don't unconditionally set CLOEXEC twice on every fd we open on Linux) - #50656 (Fix `fn main() -> impl Trait` for non-`Termination` trait) - #50669 (rustdoc: deprecate `#![doc(passes, plugins, no_default_passes)]`) - #50726 (read2: Use inner function instead of closure) - #50728 (Fix rustdoc panic with `impl Trait` in type parameters) - #50736 (env: remove unwrap in examples in favor of try op) - #50740 (Remove LazyBTreeMap.) - #50752 (Add missing error codes in libsyntax-ext asm) - #50779 (Make mutable_noalias and arg_align_attributes be tracked) - #50787 (Fix run-make wasm tests) - #50788 (Fix an ICE when casting a nonexistent const) - #50789 (Ensure libraries built in stage0 have unique metadata) - #50793 (tidy: Add a check for empty UI test files) - #50797 (fix a typo in signed-integer::from_str_radix()) - #50808 (Stabilize num::NonZeroU*) - #50809 (GitHub: Stop treating Cargo.lock as a generated file.) Failed merges:
2 parents 4208bd5 + 3c261a4 commit b559710

File tree

78 files changed

+589
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+589
-361
lines changed
 

‎.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
src/etc/installer/gfx/* binary
88
*.woff binary
99
src/vendor/** -text
10-
Cargo.lock -merge
10+
Cargo.lock -merge linguist-generated=false

‎src/bootstrap/builder.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,15 @@ impl<'a> Builder<'a> {
592592

593593
// FIXME: Temporary fix for https://github.com/rust-lang/cargo/issues/3005
594594
// Force cargo to output binaries with disambiguating hashes in the name
595-
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &self.config.channel);
595+
let metadata = if compiler.stage == 0 {
596+
// Treat stage0 like special channel, whether it's a normal prior-
597+
// release rustc or a local rebuild with the same version, so we
598+
// never mix these libraries by accident.
599+
"bootstrap"
600+
} else {
601+
&self.config.channel
602+
};
603+
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &metadata);
596604

597605
let stage;
598606
if compiler.stage == 0 && self.local_rebuild {

0 commit comments

Comments
 (0)
Please sign in to comment.