mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Upgrade to rustc 1.33.0-nightly (fb86d604b 2018-12-27)
This commit is contained in:
parent
ec846e3c86
commit
82fc6d9f49
7 changed files with 8 additions and 17 deletions
|
@ -1,5 +1,3 @@
|
||||||
cargo-features = ["rename-dependency"]
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "net"
|
name = "net"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
cargo-features = ["rename-dependency"]
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "net_traits"
|
name = "net_traits"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
cargo-features = ["rename-dependency"]
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "profile"
|
name = "profile"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
cargo-features = ["rename-dependency"]
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "script"
|
name = "script"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
//! Use this for structs that correspond to a DOM type
|
//! Use this for structs that correspond to a DOM type
|
||||||
|
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
#![feature(macro_at_most_once_rep)]
|
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
#![feature(plugin_registrar)]
|
#![feature(plugin_registrar)]
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
|
@ -103,13 +103,13 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
||||||
_gen: &hir::Generics,
|
_gen: &hir::Generics,
|
||||||
id: ast::NodeId,
|
id: ast::NodeId,
|
||||||
) {
|
) {
|
||||||
let item = match cx.tcx.hir.get(id) {
|
let item = match cx.tcx.hir().get(id) {
|
||||||
hir::Node::Item(item) => item,
|
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")) {
|
if item.attrs.iter().all(|a| !a.check_name("must_root")) {
|
||||||
for ref field in def.fields() {
|
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) {
|
if is_unrooted_ty(cx, cx.tcx.type_of(def_id), false) {
|
||||||
cx.span_lint(UNROOTED_MUST_ROOT, field.span,
|
cx.span_lint(UNROOTED_MUST_ROOT, field.span,
|
||||||
"Type must be rooted, use #[must_root] on the struct definition to propagate")
|
"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
|
/// All enums containing #[must_root] types must be #[must_root] themselves
|
||||||
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
|
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
|
if map
|
||||||
.expect_item(map.get_parent(var.node.data.id()))
|
.expect_item(map.get_parent(var.node.data.id()))
|
||||||
.attrs
|
.attrs
|
||||||
|
@ -130,7 +130,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
||||||
match var.node.data {
|
match var.node.data {
|
||||||
hir::VariantData::Tuple(ref fields, _) => {
|
hir::VariantData::Tuple(ref fields, _) => {
|
||||||
for ref field in 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) {
|
if is_unrooted_ty(cx, cx.tcx.type_of(def_id), false) {
|
||||||
cx.span_lint(
|
cx.span_lint(
|
||||||
UNROOTED_MUST_ROOT,
|
UNROOTED_MUST_ROOT,
|
||||||
|
@ -164,7 +164,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
||||||
};
|
};
|
||||||
|
|
||||||
if !in_derive_expn(span) {
|
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);
|
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()) {
|
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 visit_ty(&mut self, _: &'tcx hir::Ty) {}
|
||||||
|
|
||||||
fn nested_visit_map<'this>(&'this mut self) -> hir::intravisit::NestedVisitorMap<'this, 'tcx> {
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue