mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Upgrade to rustc 1.16.0-nightly (2782e8f8f 2017-01-12)
This commit is contained in:
parent
6e26197c06
commit
5cf10622bb
4 changed files with 7 additions and 7 deletions
|
@ -29,11 +29,10 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TransmutePass {
|
||||||
if path.segments.last()
|
if path.segments.last()
|
||||||
.map_or(false, |ref segment| &*segment.name.as_str() == "transmute") &&
|
.map_or(false, |ref segment| &*segment.name.as_str() == "transmute") &&
|
||||||
args.len() == 1 {
|
args.len() == 1 {
|
||||||
let tcx = cx.tcx;
|
|
||||||
cx.span_lint(TRANSMUTE_TYPE_LINT, ex.span,
|
cx.span_lint(TRANSMUTE_TYPE_LINT, ex.span,
|
||||||
&format!("Transmute to {:?} from {:?} detected",
|
&format!("Transmute to {:?} from {:?} detected",
|
||||||
tcx.tables().expr_ty(ex),
|
cx.tables.expr_ty(ex),
|
||||||
tcx.tables().expr_ty(&args.get(0).unwrap())
|
cx.tables.expr_ty(&args.get(0).unwrap())
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
|
||||||
let cx = self.cx;
|
let cx = self.cx;
|
||||||
|
|
||||||
fn require_rooted(cx: &LateContext, in_new_function: bool, subexpr: &hir::Expr) {
|
fn require_rooted(cx: &LateContext, in_new_function: bool, subexpr: &hir::Expr) {
|
||||||
let ty = cx.tcx.tables().expr_ty(&subexpr);
|
let ty = cx.tables.expr_ty(&subexpr);
|
||||||
if is_unrooted_ty(cx, ty, in_new_function) {
|
if is_unrooted_ty(cx, ty, in_new_function) {
|
||||||
cx.span_lint(UNROOTED_MUST_ROOT,
|
cx.span_lint(UNROOTED_MUST_ROOT,
|
||||||
subexpr.span,
|
subexpr.span,
|
||||||
|
@ -203,7 +203,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
|
||||||
let cx = self.cx;
|
let cx = self.cx;
|
||||||
|
|
||||||
if let hir::PatKind::Binding(hir::BindingMode::BindByValue(_), _, _, _) = pat.node {
|
if let hir::PatKind::Binding(hir::BindingMode::BindByValue(_), _, _, _) = pat.node {
|
||||||
let ty = cx.tcx.tables().pat_ty(pat);
|
let ty = cx.tables.pat_ty(pat);
|
||||||
if is_unrooted_ty(cx, ty, self.in_new_function) {
|
if is_unrooted_ty(cx, ty, self.in_new_function) {
|
||||||
cx.span_lint(UNROOTED_MUST_ROOT,
|
cx.span_lint(UNROOTED_MUST_ROOT,
|
||||||
pat.span,
|
pat.span,
|
||||||
|
|
|
@ -40,7 +40,8 @@ use encoding::all::UTF_8;
|
||||||
use encoding::label::encoding_from_whatwg_label;
|
use encoding::label::encoding_from_whatwg_label;
|
||||||
use encoding::types::{DecoderTrap, EncoderTrap, Encoding, EncodingRef};
|
use encoding::types::{DecoderTrap, EncoderTrap, Encoding, EncodingRef};
|
||||||
use euclid::length::Length;
|
use euclid::length::Length;
|
||||||
use html5ever::serialize::{self, SerializeOpts};
|
use html5ever::serialize;
|
||||||
|
use html5ever::serialize::SerializeOpts;
|
||||||
use hyper::header::{ContentLength, ContentType};
|
use hyper::header::{ContentLength, ContentType};
|
||||||
use hyper::header::Headers;
|
use hyper::header::Headers;
|
||||||
use hyper::method::Method;
|
use hyper::method::Method;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
2017-01-06
|
2017-01-12
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue