Skip to content

Commit 582166e

Browse files
authored
Rollup merge of rust-lang#149148 - davidtwco:v0-mangling-on-nightly-std, r=Kobzol
v0 mangling for std on nightly Following rust-lang#89917 and rust-lang/compiler-team#938, it doesn't make sense that `std` for these channels would have legacy mangling while the user's code would use `v0`. r? `@Kobzol`
2 parents 6191cb7 + 5e4a05f commit 582166e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ impl Builder<'_> {
653653
// If an explicit setting is given, use that
654654
setting
655655
}
656+
// Per compiler-team#938, v0 mangling is used on nightly
657+
None if self.config.channel == "dev" || self.config.channel == "nightly" => true,
656658
None => {
657659
if mode == Mode::Std {
658660
// The standard library defaults to the legacy scheme

0 commit comments

Comments
 (0)