Skip to content

Commit e8154a0

Browse files
committed
Auto merge of #39818 - frewsxcv:rollup, r=frewsxcv
Rollup of 8 pull requests - Successful merges: #39659, #39730, #39754, #39772, #39785, #39788, #39790, #39813 - Failed merges:
2 parents 48bc082 + 4a919cb commit e8154a0

File tree

15 files changed

+1045
-40
lines changed

15 files changed

+1045
-40
lines changed

Diff for: .travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ matrix:
7474
osx_image: xcode8.2
7575
install: *osx_install_sccache
7676
77+
# "alternate" deployments, these are "nightlies" but don't have assertions
78+
# turned on, they're deployed to a different location primarily for projects
79+
# which are stuck on nightly and don't want llvm assertions in the artifacts
80+
# that they use.
81+
- env: IMAGE=dist-x86-linux DEPLOY_ALT=1
82+
- env: >
83+
RUST_CHECK_TARGET=dist
84+
RUST_CONFIGURE_ARGS="--enable-extended"
85+
SRC=.
86+
DEPLOY_ALT=1
87+
os: osx
88+
osx_image: xcode8.2
89+
install: *osx_install_sccache
90+
7791
env:
7892
global:
7993
- SCCACHE_BUCKET=rust-lang-ci-sccache
@@ -134,3 +148,19 @@ deploy:
134148
on:
135149
branch: auto
136150
condition: $DEPLOY = 1
151+
152+
# this is the same as the above deployment provider except that it uploads to
153+
# a slightly different directory and has a different trigger
154+
- provider: s3
155+
bucket: rust-lang-ci
156+
skip_cleanup: true
157+
local_dir: deploy
158+
upload_dir: rustc-builds-alt
159+
acl: public_read
160+
region: us-east-1
161+
access_key_id: AKIAIPQVNYF2T3DTYIWQ
162+
secret_access_key:
163+
secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
164+
on:
165+
branch: auto
166+
condition: $DEPLOY_ALT = 1

Diff for: appveyor.yml

+22
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ environment:
6060
MINGW_DIR: mingw64
6161
DEPLOY: 1
6262

63+
# "alternate" deployment, see .travis.yml for more info
64+
- MSYS_BITS: 64
65+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended
66+
SCRIPT: python x.py dist
67+
DEPLOY_ALT: 1
68+
6369
matrix:
6470
fast_finish: true
6571

@@ -145,6 +151,22 @@ deploy:
145151
branch: auto
146152
DEPLOY: 1
147153

154+
# This provider is the same as the one above except that it has a slightly
155+
# different upload directory and a slightly different trigger
156+
- provider: S3
157+
skip_cleanup: true
158+
access_key_id: AKIAIPQVNYF2T3DTYIWQ
159+
secret_access_key:
160+
secure: +11jsUNFTQ9dq5Ad1i2+PeUJaXluFJ0zIJAXESE1dFT3Kdjku4/eDdgyjgsB6GnV
161+
bucket: rust-lang-ci
162+
set_public: true
163+
region: us-east-1
164+
artifact: /.*/
165+
folder: rustc-builds-alt
166+
on:
167+
branch: auto
168+
DEPLOY_ALT: 1
169+
148170
# init:
149171
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
150172
# on_finish:

Diff for: src/ci/docker/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ exec docker \
4949
$args \
5050
--env CARGO_HOME=/cargo \
5151
--env DEPLOY=$DEPLOY \
52+
--env DEPLOY_ALT=$DEPLOY_ALT \
5253
--env LOCAL_USER_ID=`id -u` \
5354
--volume "$HOME/.cargo:/cargo" \
5455
--rm \

Diff for: src/ci/run.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
3131
#
3232
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
3333
# either automatically or manually.
34-
if [ "$DEPLOY" != "" ]; then
34+
if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
3535
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=nightly"
3636
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
3737

3838
if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then
3939
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
40+
elif [ "$DEPLOY_ALT" != "" ]; then
41+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
4042
fi
4143
else
4244
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"

Diff for: src/librustc_lint/bad_style.rs

+5-9
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,18 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NonCamelCaseTypes {
117117

118118
match it.node {
119119
hir::ItemTy(..) |
120+
hir::ItemEnum(..) |
120121
hir::ItemStruct(..) |
121122
hir::ItemUnion(..) => self.check_case(cx, "type", it.name, it.span),
122123
hir::ItemTrait(..) => self.check_case(cx, "trait", it.name, it.span),
123-
hir::ItemEnum(ref enum_definition, _) => {
124-
if has_extern_repr {
125-
return;
126-
}
127-
self.check_case(cx, "type", it.name, it.span);
128-
for variant in &enum_definition.variants {
129-
self.check_case(cx, "variant", variant.node.name, variant.span);
130-
}
131-
}
132124
_ => (),
133125
}
134126
}
135127

128+
fn check_variant(&mut self, cx: &LateContext, v: &hir::Variant, _: &hir::Generics) {
129+
self.check_case(cx, "variant", v.node.name, v.span);
130+
}
131+
136132
fn check_generics(&mut self, cx: &LateContext, it: &hir::Generics) {
137133
for gen in it.ty_params.iter() {
138134
self.check_case(cx, "type parameter", gen.name, gen.span);

Diff for: src/librustdoc/markdown.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ pub fn test(input: &str, cfgs: Vec<String>, libs: SearchPaths, externs: Externs,
155155
let mut opts = TestOptions::default();
156156
opts.no_crate_inject = true;
157157
let mut collector = Collector::new(input.to_string(), cfgs, libs, externs,
158-
true, opts, maybe_sysroot, None);
158+
true, opts, maybe_sysroot, None,
159+
Some(input.to_owned()));
159160
find_testable_code(&input_str, &mut collector, DUMMY_SP);
160161
test_args.insert(0, "rustdoctest".to_string());
161162
testing::test_main(&test_args, collector.tests);

Diff for: src/librustdoc/test.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ pub fn run(input: &str,
104104
false,
105105
opts,
106106
maybe_sysroot,
107-
Some(codemap));
107+
Some(codemap),
108+
None);
108109

109110
{
110111
let dep_graph = DepGraph::new(false);
@@ -391,12 +392,13 @@ pub struct Collector {
391392
maybe_sysroot: Option<PathBuf>,
392393
position: Span,
393394
codemap: Option<Rc<CodeMap>>,
395+
filename: Option<String>,
394396
}
395397

396398
impl Collector {
397399
pub fn new(cratename: String, cfgs: Vec<String>, libs: SearchPaths, externs: Externs,
398400
use_headers: bool, opts: TestOptions, maybe_sysroot: Option<PathBuf>,
399-
codemap: Option<Rc<CodeMap>>) -> Collector {
401+
codemap: Option<Rc<CodeMap>>, filename: Option<String>) -> Collector {
400402
Collector {
401403
tests: Vec::new(),
402404
names: Vec::new(),
@@ -411,6 +413,7 @@ impl Collector {
411413
maybe_sysroot: maybe_sysroot,
412414
position: DUMMY_SP,
413415
codemap: codemap,
416+
filename: filename,
414417
}
415418
}
416419

@@ -483,6 +486,8 @@ impl Collector {
483486
pub fn get_filename(&self) -> String {
484487
if let Some(ref codemap) = self.codemap {
485488
codemap.span_to_filename(self.position)
489+
} else if let Some(ref filename) = self.filename {
490+
filename.clone()
486491
} else {
487492
"<input>".to_owned()
488493
}

0 commit comments

Comments
 (0)