Auto merge of #54601 - cuviper:prep-1.31, r=Mark-Simulacrum
Bump to 1.31.0 and bootstrap from 1.30 beta Closes #54594.
This commit is contained in:
commit
6310be458f
74 changed files with 94 additions and 571 deletions
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#![feature(plugin_registrar, rustc_private)]
|
||||
#![feature(box_syntax)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
#[macro_use] extern crate rustc;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#![feature(plugin_registrar)]
|
||||
#![feature(box_syntax, rustc_private)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
// Load rustc as a plugin to get macros
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#![feature(plugin_registrar)]
|
||||
#![feature(box_syntax, rustc_private)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
extern crate syntax;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#![feature(plugin_registrar, rustc_private)]
|
||||
#![feature(box_syntax)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
#[macro_use] extern crate rustc;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![feature(box_syntax, plugin, plugin_registrar, rustc_private)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
#![crate_type = "dylib"]
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
|
||||
//{{{ issue 40569 ==============================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
// run-pass
|
||||
#![allow(dead_code, unused_imports)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#![feature(plugin_registrar)]
|
||||
#![feature(box_syntax, rustc_private)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
// Load rustc as a plugin to get macros
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#![feature(plugin_registrar)]
|
||||
#![feature(box_syntax, rustc_private)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
extern crate syntax;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#![feature(plugin_registrar)]
|
||||
#![feature(box_syntax, rustc_private)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
extern crate syntax;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
|
||||
macro_rules! foo {
|
||||
($($p:vis)*) => {} //~ ERROR repetition matches empty token tree
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error: repetition matches empty token tree
|
||||
--> $DIR/issue-42755.rs:14:7
|
||||
--> $DIR/issue-42755.rs:13:7
|
||||
|
|
||||
LL | ($($p:vis)*) => {} //~ ERROR repetition matches empty token tree
|
||||
| ^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
// compile-pass
|
||||
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
|
||||
#![allow(unused)]
|
||||
#![warn(unreachable_pub)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:26:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:25:5
|
||||
|
|
||||
LL | pub use std::fmt;
|
||||
| ---^^^^^^^^^^^^^^
|
||||
|
|
@ -7,14 +7,14 @@ LL | pub use std::fmt;
|
|||
| help: consider restricting its visibility: `pub(crate)`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:22:9
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:21:9
|
||||
|
|
||||
LL | #![warn(unreachable_pub)]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:27:24
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:26:24
|
||||
|
|
||||
LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
|
||||
| --- ^^^^
|
||||
|
|
@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:29:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:28:5
|
||||
|
|
||||
LL | pub struct Hydrogen {
|
||||
| ---^^^^^^^^^^^^^^^^
|
||||
|
|
@ -34,7 +34,7 @@ LL | pub struct Hydrogen {
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` field
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:31:9
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:30:9
|
||||
|
|
||||
LL | pub neutrons: usize,
|
||||
| ---^^^^^^^^^^^^^^^^
|
||||
|
|
@ -42,7 +42,7 @@ LL | pub neutrons: usize,
|
|||
| help: consider restricting its visibility: `pub(crate)`
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:37:9
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:36:9
|
||||
|
|
||||
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -50,7 +50,7 @@ LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
|
|||
| help: consider restricting its visibility: `pub(crate)`
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:41:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:40:5
|
||||
|
|
||||
LL | pub enum Helium {}
|
||||
| ---^^^^^^^^^^^^
|
||||
|
|
@ -60,7 +60,7 @@ LL | pub enum Helium {}
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:42:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:41:5
|
||||
|
|
||||
LL | pub union Lithium { c1: usize, c2: u8 }
|
||||
| ---^^^^^^^^^^^^^^
|
||||
|
|
@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:43:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:42:5
|
||||
|
|
||||
LL | pub fn beryllium() {}
|
||||
| ---^^^^^^^^^^^^^^^
|
||||
|
|
@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:44:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:43:5
|
||||
|
|
||||
LL | pub trait Boron {}
|
||||
| ---^^^^^^^^^^^^
|
||||
|
|
@ -90,7 +90,7 @@ LL | pub trait Boron {}
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:45:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:44:5
|
||||
|
|
||||
LL | pub const CARBON: usize = 1;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:46:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:45:5
|
||||
|
|
||||
LL | pub static NITROGEN: usize = 2;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:47:5
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:46:5
|
||||
|
|
||||
LL | pub type Oxygen = bool;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:50:47
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:49:47
|
||||
|
|
||||
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -134,7 +134,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:55:9
|
||||
--> $DIR/unreachable_pub-pub_crate.rs:54:9
|
||||
|
|
||||
LL | pub fn catalyze() -> bool;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// compile-pass
|
||||
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![cfg_attr(stage0, feature(macro_vis_matcher))]
|
||||
|
||||
#![allow(unused)]
|
||||
#![warn(unreachable_pub)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:21:5
|
||||
--> $DIR/unreachable_pub.rs:20:5
|
||||
|
|
||||
LL | pub use std::fmt;
|
||||
| ---^^^^^^^^^^^^^^
|
||||
|
|
@ -7,14 +7,14 @@ LL | pub use std::fmt;
|
|||
| help: consider restricting its visibility: `crate`
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/unreachable_pub.rs:17:9
|
||||
--> $DIR/unreachable_pub.rs:16:9
|
||||
|
|
||||
LL | #![warn(unreachable_pub)]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:22:24
|
||||
--> $DIR/unreachable_pub.rs:21:24
|
||||
|
|
||||
LL | pub use std::env::{Args}; // braced-use has different item spans than unbraced
|
||||
| --- ^^^^
|
||||
|
|
@ -24,7 +24,7 @@ LL | pub use std::env::{Args}; // braced-use has different item spans than u
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:24:5
|
||||
--> $DIR/unreachable_pub.rs:23:5
|
||||
|
|
||||
LL | pub struct Hydrogen {
|
||||
| ---^^^^^^^^^^^^^^^^
|
||||
|
|
@ -34,7 +34,7 @@ LL | pub struct Hydrogen {
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` field
|
||||
--> $DIR/unreachable_pub.rs:26:9
|
||||
--> $DIR/unreachable_pub.rs:25:9
|
||||
|
|
||||
LL | pub neutrons: usize,
|
||||
| ---^^^^^^^^^^^^^^^^
|
||||
|
|
@ -42,7 +42,7 @@ LL | pub neutrons: usize,
|
|||
| help: consider restricting its visibility: `crate`
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:32:9
|
||||
--> $DIR/unreachable_pub.rs:31:9
|
||||
|
|
||||
LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -50,7 +50,7 @@ LL | pub fn count_neutrons(&self) -> usize { self.neutrons }
|
|||
| help: consider restricting its visibility: `crate`
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:36:5
|
||||
--> $DIR/unreachable_pub.rs:35:5
|
||||
|
|
||||
LL | pub enum Helium {}
|
||||
| ---^^^^^^^^^^^^
|
||||
|
|
@ -60,7 +60,7 @@ LL | pub enum Helium {}
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:37:5
|
||||
--> $DIR/unreachable_pub.rs:36:5
|
||||
|
|
||||
LL | pub union Lithium { c1: usize, c2: u8 }
|
||||
| ---^^^^^^^^^^^^^^
|
||||
|
|
@ -70,7 +70,7 @@ LL | pub union Lithium { c1: usize, c2: u8 }
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:38:5
|
||||
--> $DIR/unreachable_pub.rs:37:5
|
||||
|
|
||||
LL | pub fn beryllium() {}
|
||||
| ---^^^^^^^^^^^^^^^
|
||||
|
|
@ -80,7 +80,7 @@ LL | pub fn beryllium() {}
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:39:5
|
||||
--> $DIR/unreachable_pub.rs:38:5
|
||||
|
|
||||
LL | pub trait Boron {}
|
||||
| ---^^^^^^^^^^^^
|
||||
|
|
@ -90,7 +90,7 @@ LL | pub trait Boron {}
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:40:5
|
||||
--> $DIR/unreachable_pub.rs:39:5
|
||||
|
|
||||
LL | pub const CARBON: usize = 1;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -100,7 +100,7 @@ LL | pub const CARBON: usize = 1;
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:41:5
|
||||
--> $DIR/unreachable_pub.rs:40:5
|
||||
|
|
||||
LL | pub static NITROGEN: usize = 2;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -110,7 +110,7 @@ LL | pub static NITROGEN: usize = 2;
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:42:5
|
||||
--> $DIR/unreachable_pub.rs:41:5
|
||||
|
|
||||
LL | pub type Oxygen = bool;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -120,7 +120,7 @@ LL | pub type Oxygen = bool;
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:45:47
|
||||
--> $DIR/unreachable_pub.rs:44:47
|
||||
|
|
||||
LL | ($visibility: vis, $name: ident) => { $visibility struct $name {} }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -134,7 +134,7 @@ LL | define_empty_struct_with_visibility!(pub, Fluorine);
|
|||
= help: or consider exporting it for use by other crates
|
||||
|
||||
warning: unreachable `pub` item
|
||||
--> $DIR/unreachable_pub.rs:50:9
|
||||
--> $DIR/unreachable_pub.rs:49:9
|
||||
|
|
||||
LL | pub fn catalyze() -> bool;
|
||||
| ---^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue