Upgrade to rustc 1.33.0-nightly (fb86d604b 2018-12-27)

This commit is contained in:
Simon Sapin 2018-12-08 11:24:26 +01:00
parent ec846e3c86
commit 82fc6d9f49
7 changed files with 8 additions and 17 deletions

View file

@ -1,5 +1,3 @@
cargo-features = ["rename-dependency"]
[package]
name = "net"
version = "0.0.1"

View file

@ -1,5 +1,3 @@
cargo-features = ["rename-dependency"]
[package]
name = "net_traits"
version = "0.0.1"

View file

@ -1,5 +1,3 @@
cargo-features = ["rename-dependency"]
[package]
name = "profile"
version = "0.0.1"

View file

@ -1,5 +1,3 @@
cargo-features = ["rename-dependency"]
[package]
name = "script"
version = "0.0.1"

View file

@ -14,7 +14,6 @@
//! Use this for structs that correspond to a DOM type
#![deny(unsafe_code)]
#![feature(macro_at_most_once_rep)]
#![feature(plugin)]
#![feature(plugin_registrar)]
#![feature(rustc_private)]

View file

@ -103,13 +103,13 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
_gen: &hir::Generics,
id: ast::NodeId,
) {
let item = match cx.tcx.hir.get(id) {
let item = match cx.tcx.hir().get(id) {
hir::Node::Item(item) => item,
_ => cx.tcx.hir.expect_item(cx.tcx.hir.get_parent(id)),
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent(id)),
};
if item.attrs.iter().all(|a| !a.check_name("must_root")) {
for ref field in def.fields() {
let def_id = cx.tcx.hir.local_def_id(field.id);
let def_id = cx.tcx.hir().local_def_id(field.id);
if is_unrooted_ty(cx, cx.tcx.type_of(def_id), false) {
cx.span_lint(UNROOTED_MUST_ROOT, field.span,
"Type must be rooted, use #[must_root] on the struct definition to propagate")
@ -120,7 +120,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
/// All enums containing #[must_root] types must be #[must_root] themselves
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
let ref map = cx.tcx.hir;
let ref map = cx.tcx.hir();
if map
.expect_item(map.get_parent(var.node.data.id()))
.attrs
@ -130,7 +130,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
match var.node.data {
hir::VariantData::Tuple(ref fields, _) => {
for ref field in fields {
let def_id = cx.tcx.hir.local_def_id(field.id);
let def_id = cx.tcx.hir().local_def_id(field.id);
if is_unrooted_ty(cx, cx.tcx.type_of(def_id), false) {
cx.span_lint(
UNROOTED_MUST_ROOT,
@ -164,7 +164,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
};
if !in_derive_expn(span) {
let def_id = cx.tcx.hir.local_def_id(id);
let def_id = cx.tcx.hir().local_def_id(id);
let sig = cx.tcx.type_of(def_id).fn_sig(cx.tcx);
for (arg, ty) in decl.inputs.iter().zip(sig.inputs().skip_binder().iter()) {
@ -262,6 +262,6 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
fn visit_ty(&mut self, _: &'tcx hir::Ty) {}
fn nested_visit_map<'this>(&'this mut self) -> hir::intravisit::NestedVisitorMap<'this, 'tcx> {
hir::intravisit::NestedVisitorMap::OnlyBodies(&self.cx.tcx.hir)
hir::intravisit::NestedVisitorMap::OnlyBodies(&self.cx.tcx.hir())
}
}

View file

@ -1 +1 @@
nightly-2018-10-05
nightly-2018-12-28