Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from Dec 31, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

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

  • Loading branch information
SimonSapin committed Dec 28, 2018
commit 82fc6d9f49a657e2857da3f1b22140e3b6efdf09
@@ -1,5 +1,3 @@
cargo-features = ["rename-dependency"]

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

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

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

[package]
name = "script"
version = "0.0.1"
@@ -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)]
@@ -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())
}
}
@@ -1 +1 @@
nightly-2018-10-05
nightly-2018-12-28
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.