summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-17 04:10:13 +0000
committerbors <bors@rust-lang.org>2019-04-17 04:10:13 +0000
commit258e3b3a75a0da006cd492307fc46ef605e774ad (patch)
tree59a86b57adc468428bbfb0a68580a2538294b38b
parentc132c96a6daa86ba6b9e587a89dca1ce5c445dd1 (diff)
parentf2371e3b7daa43d8ea267e07c52a057fc08dc708 (diff)
downloadrust-258e3b3a75a0da006cd492307fc46ef605e774ad.tar.gz
Auto merge of #59974 - Centril:boostrap-to-2019-04-11, r=pietroalbini,Mark-Simulacrum
Bump bootstrap compiler to 2019-04-11 r? @pietroalbini cc @Mark-Simulacrum cc https://github.com/rust-lang/rust/pull/58702
-rw-r--r--src/bootstrap/bin/rustc.rs4
-rw-r--r--src/bootstrap/channel.rs2
-rw-r--r--src/bootstrap/lib.rs2
-rw-r--r--src/libarena/lib.rs2
-rw-r--r--src/libfmt_macros/lib.rs2
-rw-r--r--src/librustc/lib.rs2
-rw-r--r--src/librustc/ty/mod.rs2
-rw-r--r--src/librustc_allocator/lib.rs2
-rw-r--r--src/librustc_borrowck/lib.rs2
-rw-r--r--src/librustc_codegen_ssa/lib.rs2
-rw-r--r--src/librustc_codegen_utils/lib.rs2
-rw-r--r--src/librustc_driver/lib.rs2
-rw-r--r--src/librustc_errors/lib.rs2
-rw-r--r--src/librustc_incremental/lib.rs2
-rw-r--r--src/librustc_interface/lib.rs2
-rw-r--r--src/librustc_lint/lib.rs2
-rw-r--r--src/librustc_metadata/lib.rs2
-rw-r--r--src/librustc_mir/lib.rs2
-rw-r--r--src/librustc_passes/lib.rs2
-rw-r--r--src/librustc_privacy/lib.rs2
-rw-r--r--src/librustc_resolve/lib.rs2
-rw-r--r--src/librustc_save_analysis/lib.rs2
-rw-r--r--src/librustc_target/lib.rs2
-rw-r--r--src/librustc_traits/lib.rs2
-rw-r--r--src/librustc_typeck/lib.rs2
-rw-r--r--src/librustdoc/lib.rs2
-rw-r--r--src/libsyntax/lib.rs2
-rw-r--r--src/libsyntax_ext/lib.rs2
-rw-r--r--src/libsyntax_pos/lib.rs2
-rw-r--r--src/stage0.txt2
-rw-r--r--src/tools/compiletest/src/main.rs1
-rw-r--r--src/tools/compiletest/src/raise_fd_limit.rs1
32 files changed, 30 insertions, 34 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index a76584093fc..a8f0d24ce63 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -290,9 +290,7 @@ fn main() {
}
// This is required for internal lints.
- if stage != "0" {
- cmd.arg("-Zunstable-options");
- }
+ cmd.arg("-Zunstable-options");
// Force all crates compiled by this compiler to (a) be unstable and (b)
// allow the `rustc_private` feature to link to other unstable crates
diff --git a/src/bootstrap/channel.rs b/src/bootstrap/channel.rs
index e42b073322e..a6da4f5385a 100644
--- a/src/bootstrap/channel.rs
+++ b/src/bootstrap/channel.rs
@@ -13,7 +13,7 @@ use build_helper::output;
use crate::Build;
// The version number
-pub const CFG_RELEASE_NUM: &str = "1.35.0";
+pub const CFG_RELEASE_NUM: &str = "1.36.0";
pub struct GitInfo {
inner: Option<Info>,
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index bcd28e9cf5e..fb60b470a36 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -1125,8 +1125,6 @@ impl Build {
/// `rust.save-toolstates` in `config.toml`. If unspecified, nothing will be
/// done. The file is updated immediately after this function completes.
pub fn save_toolstate(&self, tool: &str, state: ToolState) {
- use std::io::{Seek, SeekFrom};
-
if let Some(ref path) = self.config.save_toolstates {
let mut file = t!(fs::OpenOptions::new()
.create(true)
diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs
index cfe317a00f9..ce5e5f23a94 100644
--- a/src/libarena/lib.rs
+++ b/src/libarena/lib.rs
@@ -12,7 +12,7 @@
test(no_crate_inject, attr(deny(warnings))))]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(core_intrinsics)]
#![feature(dropck_eyepatch)]
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs
index 2536121c7a3..6fed8302160 100644
--- a/src/libfmt_macros/lib.rs
+++ b/src/libfmt_macros/lib.rs
@@ -9,7 +9,7 @@
test(attr(deny(warnings))))]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(nll)]
#![feature(rustc_private)]
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs
index c5c2cbfcb89..4cbf8e3ecfc 100644
--- a/src/librustc/lib.rs
+++ b/src/librustc/lib.rs
@@ -29,7 +29,7 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![allow(explicit_outlives_requirements)]
#![feature(arbitrary_self_types)]
diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs
index d24395ac9c1..4aca01d9411 100644
--- a/src/librustc/ty/mod.rs
+++ b/src/librustc/ty/mod.rs
@@ -1,4 +1,4 @@
-#![cfg_attr(not(stage0), allow(usage_of_ty_tykind))]
+#![allow(usage_of_ty_tykind)]
pub use self::Variance::*;
pub use self::AssociatedItemContainer::*;
diff --git a/src/librustc_allocator/lib.rs b/src/librustc_allocator/lib.rs
index a9e422fb238..3aef5a76a3a 100644
--- a/src/librustc_allocator/lib.rs
+++ b/src/librustc_allocator/lib.rs
@@ -2,7 +2,7 @@
#![feature(rustc_private)]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
pub mod expand;
diff --git a/src/librustc_borrowck/lib.rs b/src/librustc_borrowck/lib.rs
index 3761a52bccc..14bc77f380a 100644
--- a/src/librustc_borrowck/lib.rs
+++ b/src/librustc_borrowck/lib.rs
@@ -2,7 +2,7 @@
#![allow(non_camel_case_types)]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(nll)]
diff --git a/src/librustc_codegen_ssa/lib.rs b/src/librustc_codegen_ssa/lib.rs
index e2917578c0e..c6e689f2e83 100644
--- a/src/librustc_codegen_ssa/lib.rs
+++ b/src/librustc_codegen_ssa/lib.rs
@@ -14,7 +14,7 @@
#![allow(unused_attributes)]
#![allow(dead_code)]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![allow(explicit_outlives_requirements)]
#![recursion_limit="256"]
diff --git a/src/librustc_codegen_utils/lib.rs b/src/librustc_codegen_utils/lib.rs
index 330cfe154e3..437515f1e9a 100644
--- a/src/librustc_codegen_utils/lib.rs
+++ b/src/librustc_codegen_utils/lib.rs
@@ -16,7 +16,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#[macro_use]
extern crate rustc;
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 66c7c9d0eae..6a5accc8d7f 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -17,7 +17,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
pub extern crate getopts;
#[cfg(unix)]
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 71bef54cd17..cb45e13c4d2 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -6,7 +6,7 @@
#![feature(nll)]
#![feature(optin_builtin_traits)]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#[allow(unused_extern_crates)]
extern crate serialize as rustc_serialize; // used by deriving
diff --git a/src/librustc_incremental/lib.rs b/src/librustc_incremental/lib.rs
index d7db324f346..eb82885abee 100644
--- a/src/librustc_incremental/lib.rs
+++ b/src/librustc_incremental/lib.rs
@@ -8,7 +8,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#[macro_use] extern crate rustc;
#[allow(unused_extern_crates)]
diff --git a/src/librustc_interface/lib.rs b/src/librustc_interface/lib.rs
index 353ff6a57a5..d1e2a1a4ad5 100644
--- a/src/librustc_interface/lib.rs
+++ b/src/librustc_interface/lib.rs
@@ -7,7 +7,7 @@
#![cfg_attr(unix, feature(libc))]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![allow(unused_imports)]
diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs
index 9354f203e4e..ff5e4f02554 100644
--- a/src/librustc_lint/lib.rs
+++ b/src/librustc_lint/lib.rs
@@ -20,7 +20,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#[macro_use]
extern crate rustc;
diff --git a/src/librustc_metadata/lib.rs b/src/librustc_metadata/lib.rs
index 4078171733f..d052e13f9c0 100644
--- a/src/librustc_metadata/lib.rs
+++ b/src/librustc_metadata/lib.rs
@@ -14,7 +14,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
extern crate libc;
#[allow(unused_extern_crates)]
diff --git a/src/librustc_mir/lib.rs b/src/librustc_mir/lib.rs
index deeed9a0b98..a16eaf011c8 100644
--- a/src/librustc_mir/lib.rs
+++ b/src/librustc_mir/lib.rs
@@ -28,7 +28,7 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![allow(explicit_outlives_requirements)]
#[macro_use] extern crate log;
diff --git a/src/librustc_passes/lib.rs b/src/librustc_passes/lib.rs
index 20442a4a566..db8fcaa5693 100644
--- a/src/librustc_passes/lib.rs
+++ b/src/librustc_passes/lib.rs
@@ -12,7 +12,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#[macro_use]
extern crate rustc;
diff --git a/src/librustc_privacy/lib.rs b/src/librustc_privacy/lib.rs
index 44621e5dc95..ef315c5f955 100644
--- a/src/librustc_privacy/lib.rs
+++ b/src/librustc_privacy/lib.rs
@@ -1,7 +1,7 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(nll)]
#![feature(rustc_diagnostic_macros)]
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index 96aac977297..864fc2ebaec 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -9,7 +9,7 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
pub use rustc::hir::def::{Namespace, PerNS};
diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs
index ce0decaee49..d901fb2bff8 100644
--- a/src/librustc_save_analysis/lib.rs
+++ b/src/librustc_save_analysis/lib.rs
@@ -2,7 +2,7 @@
#![feature(custom_attribute)]
#![feature(nll)]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![allow(unused_attributes)]
#![recursion_limit="256"]
diff --git a/src/librustc_target/lib.rs b/src/librustc_target/lib.rs
index f1812c20dcc..3fcf08adb5c 100644
--- a/src/librustc_target/lib.rs
+++ b/src/librustc_target/lib.rs
@@ -16,7 +16,7 @@
#![feature(step_trait)]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#[macro_use] extern crate log;
diff --git a/src/librustc_traits/lib.rs b/src/librustc_traits/lib.rs
index bc034e1fb16..959130f1cf2 100644
--- a/src/librustc_traits/lib.rs
+++ b/src/librustc_traits/lib.rs
@@ -2,7 +2,7 @@
//! the guts are broken up into modules; see the comments in those modules.
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(crate_visibility_modifier)]
#![feature(in_band_lifetimes)]
diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs
index 21d1af229dd..4320e28d676 100644
--- a/src/librustc_typeck/lib.rs
+++ b/src/librustc_typeck/lib.rs
@@ -71,7 +71,7 @@ This API is completely unstable and subject to change.
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![allow(explicit_outlives_requirements)]
#[macro_use] extern crate log;
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index 6cb937d9216..5b76f6861de 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -1,5 +1,5 @@
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
html_playground_url = "https://play.rust-lang.org/")]
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 9905b981395..1486909b276 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -8,7 +8,7 @@
test(attr(deny(warnings))))]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(crate_visibility_modifier)]
#![feature(label_break_value)]
diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs
index ee0b86963f3..8371d272075 100644
--- a/src/libsyntax_ext/lib.rs
+++ b/src/libsyntax_ext/lib.rs
@@ -3,7 +3,7 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(in_band_lifetimes)]
#![feature(proc_macro_diagnostic)]
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs
index 1ad556bbcfa..3f09405a5c8 100644
--- a/src/libsyntax_pos/lib.rs
+++ b/src/libsyntax_pos/lib.rs
@@ -7,7 +7,7 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
-#![cfg_attr(not(stage0), deny(internal))]
+#![deny(internal)]
#![feature(const_fn)]
#![feature(crate_visibility_modifier)]
diff --git a/src/stage0.txt b/src/stage0.txt
index 43610f9068f..17dba63054e 100644
--- a/src/stage0.txt
+++ b/src/stage0.txt
@@ -12,7 +12,7 @@
# source tarball for a stable release you'll likely see `1.x.0` for rustc and
# `0.x.0` for Cargo where they were released on `date`.
-date: 2019-03-20
+date: 2019-04-11
rustc: beta
cargo: beta
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index 9e3c49119de..431fd7969be 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -523,6 +523,7 @@ pub fn run_tests(config: &Config) {
pub fn test_opts(config: &Config) -> test::TestOpts {
test::TestOpts {
+ exclude_should_panic: false,
filter: config.filter.clone(),
filter_exact: config.filter_exact,
run_ignored: if config.run_ignored {
diff --git a/src/tools/compiletest/src/raise_fd_limit.rs b/src/tools/compiletest/src/raise_fd_limit.rs
index 7f1d7e0d3cd..e9c91094104 100644
--- a/src/tools/compiletest/src/raise_fd_limit.rs
+++ b/src/tools/compiletest/src/raise_fd_limit.rs
@@ -7,7 +7,6 @@
#[cfg(any(target_os = "macos", target_os = "ios"))]
#[allow(non_camel_case_types)]
pub unsafe fn raise_fd_limit() {
- use libc;
use std::cmp;
use std::io;
use std::mem::size_of_val;