Skip to content

Commit ea1fd7d

Browse files
committed
Auto merge of #44357 - nrc:rls-manifest-beta-2, r=alexcrichton
[beta] Attempt to fix the component manifest problem for rls-preview cc #44270 see #44352
2 parents 133aefc + 25676e0 commit ea1fd7d

File tree

11 files changed

+59
-37
lines changed

11 files changed

+59
-37
lines changed

.travis.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: shell
22
sudo: required
33
dist: trusty
4+
# FIXME(#44398) shouldn't need to be here
5+
group: deprecated-2017Q3
46
services:
57
- docker
68

@@ -125,9 +127,9 @@ matrix:
125127
env:
126128
global:
127129
- SCCACHE_BUCKET=rust-lang-ci-sccache
128-
- AWS_ACCESS_KEY_ID=AKIAIMX7VLAS3PZAVLUQ
130+
- AWS_ACCESS_KEY_ID=AKIAJAMV3QAMMA6AXHFQ
129131
# AWS_SECRET_ACCESS_KEY=...
130-
- secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
132+
- secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
131133

132134
before_install:
133135
# If we are building a pull request, do the build if $ALLOW_PR == 1
@@ -260,9 +262,9 @@ deploy:
260262
upload_dir: rustc-builds
261263
acl: public_read
262264
region: us-east-1
263-
access_key_id: AKIAIPQVNYF2T3DTYIWQ
265+
access_key_id: AKIAJVBODR3IA4O72THQ
264266
secret_access_key:
265-
secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
267+
secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
266268
on:
267269
branch: auto
268270
condition: $DEPLOY = 1
@@ -274,9 +276,9 @@ deploy:
274276
upload_dir: rustc-builds-try
275277
acl: public_read
276278
region: us-east-1
277-
access_key_id: AKIAIPQVNYF2T3DTYIWQ
279+
access_key_id: AKIAJVBODR3IA4O72THQ
278280
secret_access_key:
279-
secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
281+
secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
280282
on:
281283
branch: try
282284
condition: $DEPLOY = 1 && $ALLOW_TRY = 1
@@ -290,9 +292,9 @@ deploy:
290292
upload_dir: rustc-builds-alt
291293
acl: public_read
292294
region: us-east-1
293-
access_key_id: AKIAIPQVNYF2T3DTYIWQ
295+
access_key_id: AKIAJVBODR3IA4O72THQ
294296
secret_access_key:
295-
secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
297+
secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
296298
on:
297299
branch: auto
298300
condition: $DEPLOY_ALT = 1

appveyor.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
environment:
22
SCCACHE_BUCKET: rust-lang-ci-sccache
3-
AWS_ACCESS_KEY_ID: AKIAIMX7VLAS3PZAVLUQ
3+
AWS_ACCESS_KEY_ID: AKIAJAMV3QAMMA6AXHFQ
44
AWS_SECRET_ACCESS_KEY:
5-
secure: 1UkmbiDd15tWtYbMm5O2Uqm0b0Ur8v1MoSlydxl4ojcroPeerRMlUges0l57py8c
5+
secure: 7Y+JiquYedOAgnUU26uL0DPzrxmTtR+qIwG6rNKSuWDffqU3vVZxbGXim9QpTO80
66
SCCACHE_DIGEST: f808afabb4a4eb1d7112bcb3fa6be03b61e93412890c88e177c667eb37f46353d7ec294e559b16f9f4b5e894f2185fe7670a0df15fd064889ecbd80f0c34166c
77

88
# By default schannel checks revocation of certificates unlike some other SSL
@@ -185,9 +185,9 @@ before_deploy:
185185
deploy:
186186
- provider: S3
187187
skip_cleanup: true
188-
access_key_id: AKIAIPQVNYF2T3DTYIWQ
188+
access_key_id: AKIAJVBODR3IA4O72THQ
189189
secret_access_key:
190-
secure: +11jsUNFTQ9dq5Ad1i2+PeUJaXluFJ0zIJAXESE1dFT3Kdjku4/eDdgyjgsB6GnV
190+
secure: tQWIE+DJHjXaV4np/3YeETkEmXngtIuIgAO/LYKQaUshGLgN8cBCFGG3cHx5lKLt
191191
bucket: rust-lang-ci
192192
set_public: true
193193
region: us-east-1
@@ -202,9 +202,9 @@ deploy:
202202
# different upload directory and a slightly different trigger
203203
- provider: S3
204204
skip_cleanup: true
205-
access_key_id: AKIAIPQVNYF2T3DTYIWQ
205+
access_key_id: AKIAJVBODR3IA4O72THQ
206206
secret_access_key:
207-
secure: +11jsUNFTQ9dq5Ad1i2+PeUJaXluFJ0zIJAXESE1dFT3Kdjku4/eDdgyjgsB6GnV
207+
secure: tQWIE+DJHjXaV4np/3YeETkEmXngtIuIgAO/LYKQaUshGLgN8cBCFGG3cHx5lKLt
208208
bucket: rust-lang-ci
209209
set_public: true
210210
region: us-east-1

src/bootstrap/channel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub const CFG_RELEASE_NUM: &str = "1.21.0";
2929
// An optional number to put after the label, e.g. '.2' -> '-beta.2'
3030
// Be sure to make this starts with a dot to conform to semver pre-release
3131
// versions (section 9)
32-
pub const CFG_PRERELEASE_VERSION: &str = ".2";
32+
pub const CFG_PRERELEASE_VERSION: &str = ".3";
3333

3434
pub struct GitInfo {
3535
inner: Option<Info>,

src/bootstrap/dist.rs

+13-4
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,14 @@ impl Step for Rls {
10811081
.arg("--output-dir").arg(&distdir(build))
10821082
.arg("--non-installed-overlay").arg(&overlay)
10831083
.arg(format!("--package-name={}-{}", name, target))
1084-
.arg("--component-name=rls")
10851084
.arg("--legacy-manifest-dirs=rustlib,cargo");
1085+
1086+
if build.config.channel == "nightly" {
1087+
cmd.arg("--component-name=rls");
1088+
} else {
1089+
cmd.arg("--component-name=rls-preview");
1090+
}
1091+
10861092
build.run(&mut cmd);
10871093
distdir(build).join(format!("{}-{}.tar.gz", name, target))
10881094
}
@@ -1279,9 +1285,12 @@ impl Step for Extended {
12791285
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rust-std"), target))
12801286
.join(format!("rust-std-{}", target)),
12811287
&exe.join("rust-std"));
1282-
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rls"), target))
1283-
.join("rls"),
1284-
&exe.join("rls"));
1288+
let rls_path = if build.config.channel == "nightly" {
1289+
work.join(&format!("{}-{}", pkgname(build, "rls"), target)).join("rls")
1290+
} else {
1291+
work.join(&format!("{}-{}", pkgname(build, "rls"), target)).join("rls-preview")
1292+
};
1293+
cp_r(&rls_path, &exe.join("rls"));
12851294
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rust-analysis"), target))
12861295
.join(format!("rust-analysis-{}", target)),
12871296
&exe.join("rust-analysis"));

src/bootstrap/install.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ install!((self, builder, _config),
200200
builder.ensure(dist::Src);
201201
install_src(builder, self.stage);
202202
}, ONLY_BUILD;
203-
Rustc, "src/librustc", _config.extended, only_hosts: true, {
203+
Rustc, "src/librustc", true, only_hosts: true, {
204204
builder.ensure(dist::Rustc {
205205
compiler: builder.compiler(self.stage, self.target),
206206
});

src/libcore/mem.rs

+8-9
Original file line numberDiff line numberDiff line change
@@ -754,39 +754,39 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
754754
/// Opaque type representing the discriminant of an enum.
755755
///
756756
/// See the `discriminant` function in this module for more information.
757-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
757+
#[stable(feature = "discriminant_value", since = "1.21.0")]
758758
pub struct Discriminant<T>(u64, PhantomData<*const T>);
759759

760760
// N.B. These trait implementations cannot be derived because we don't want any bounds on T.
761761

762-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
762+
#[stable(feature = "discriminant_value", since = "1.21.0")]
763763
impl<T> Copy for Discriminant<T> {}
764764

765-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
765+
#[stable(feature = "discriminant_value", since = "1.21.0")]
766766
impl<T> clone::Clone for Discriminant<T> {
767767
fn clone(&self) -> Self {
768768
*self
769769
}
770770
}
771771

772-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
772+
#[stable(feature = "discriminant_value", since = "1.21.0")]
773773
impl<T> cmp::PartialEq for Discriminant<T> {
774774
fn eq(&self, rhs: &Self) -> bool {
775775
self.0 == rhs.0
776776
}
777777
}
778778

779-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
779+
#[stable(feature = "discriminant_value", since = "1.21.0")]
780780
impl<T> cmp::Eq for Discriminant<T> {}
781781

782-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
782+
#[stable(feature = "discriminant_value", since = "1.21.0")]
783783
impl<T> hash::Hash for Discriminant<T> {
784784
fn hash<H: hash::Hasher>(&self, state: &mut H) {
785785
self.0.hash(state);
786786
}
787787
}
788788

789-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
789+
#[stable(feature = "discriminant_value", since = "1.21.0")]
790790
impl<T> fmt::Debug for Discriminant<T> {
791791
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
792792
fmt.debug_tuple("Discriminant")
@@ -811,7 +811,6 @@ impl<T> fmt::Debug for Discriminant<T> {
811811
/// the actual data:
812812
///
813813
/// ```
814-
/// #![feature(discriminant_value)]
815814
/// use std::mem;
816815
///
817816
/// enum Foo { A(&'static str), B(i32), C(i32) }
@@ -820,7 +819,7 @@ impl<T> fmt::Debug for Discriminant<T> {
820819
/// assert!(mem::discriminant(&Foo::B(1)) == mem::discriminant(&Foo::B(2)));
821820
/// assert!(mem::discriminant(&Foo::B(3)) != mem::discriminant(&Foo::C(3)));
822821
/// ```
823-
#[unstable(feature = "discriminant_value", reason = "recently added, follows RFC", issue = "24263")]
822+
#[stable(feature = "discriminant_value", since = "1.21.0")]
824823
pub fn discriminant<T>(v: &T) -> Discriminant<T> {
825824
unsafe {
826825
Discriminant(intrinsics::discriminant_value(v), PhantomData)

src/librustc/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#![feature(conservative_impl_trait)]
2525
#![feature(const_fn)]
2626
#![feature(core_intrinsics)]
27-
#![feature(discriminant_value)]
2827
#![feature(i128_type)]
2928
#![cfg_attr(windows, feature(libc))]
3029
#![feature(never_type)]
@@ -34,7 +33,6 @@
3433
#![feature(slice_patterns)]
3534
#![feature(specialization)]
3635
#![feature(unboxed_closures)]
37-
#![feature(discriminant_value)]
3836
#![feature(trace_macros)]
3937
#![feature(test)]
4038

src/librustc_data_structures/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(unsize)]
3030
#![feature(i128_type)]
3131
#![feature(conservative_impl_trait)]
32-
#![feature(discriminant_value)]
3332
#![feature(specialization)]
3433

3534
#![cfg_attr(unix, feature(libc))]

src/librustc_metadata/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#![feature(quote)]
2222
#![feature(rustc_diagnostic_macros)]
2323
#![feature(specialization)]
24-
#![feature(discriminant_value)]
2524
#![feature(rustc_private)]
2625

2726
#[macro_use]

src/librustc_trans/back/link.rs

+20-2
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,32 @@ pub fn build_link_meta(incremental_hashes_map: &IncrementalHashesMap) -> LinkMet
106106
pub fn get_linker(sess: &Session) -> (String, Command, Vec<(OsString, OsString)>) {
107107
let envs = vec![("PATH".into(), command_path(sess))];
108108

109+
// If our linker looks like a batch script on Windows then to execute this
110+
// we'll need to spawn `cmd` explicitly. This is primarily done to handle
111+
// emscripten where the linker is `emcc.bat` and needs to be spawned as
112+
// `cmd /c emcc.bat ...`.
113+
//
114+
// This worked historically but is needed manually since #42436 (regression
115+
// was tagged as #42791) and some more info can be found on #44443 for
116+
// emscripten itself.
117+
let cmd = |linker: &str| {
118+
if cfg!(windows) && linker.ends_with(".bat") {
119+
let mut cmd = Command::new("cmd");
120+
cmd.arg("/c").arg(linker);
121+
cmd
122+
} else {
123+
Command::new(linker)
124+
}
125+
};
126+
109127
if let Some(ref linker) = sess.opts.cg.linker {
110-
(linker.clone(), Command::new(linker), envs)
128+
(linker.clone(), cmd(linker), envs)
111129
} else if sess.target.target.options.is_like_msvc {
112130
let (cmd, envs) = msvc_link_exe_cmd(sess);
113131
("link.exe".to_string(), cmd, envs)
114132
} else {
115133
let linker = &sess.target.target.options.linker;
116-
(linker.clone(), Command::new(&linker), envs)
134+
(linker.clone(), cmd(linker), envs)
117135
}
118136
}
119137

src/test/run-pass/discriminant_value-wrapper.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(discriminant_value)]
12-
1311
use std::mem;
1412

1513
enum ADT {

0 commit comments

Comments
 (0)