rustup to rustc 1.15.0-dev (3b248a184 2016-12-05)
This commit is contained in:
parent
2e63a5648a
commit
c6e2967b9c
71 changed files with 517 additions and 335 deletions
|
@ -83,11 +83,11 @@ impl LintPass for Pass {
|
|||
}
|
||||
|
||||
impl LateLintPass for Pass {
|
||||
fn check_crate(&mut self, _: &LateContext, _: &Crate) {
|
||||
fn check_crate<'a, 'tcx: 'a>(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx Crate) {
|
||||
self.spans.clear();
|
||||
}
|
||||
|
||||
fn check_block(&mut self, cx: &LateContext, block: &Block) {
|
||||
fn check_block<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, block: &'tcx Block) {
|
||||
if_let_chain!{[
|
||||
self.last.is_none(),
|
||||
let Some(ref expr) = block.expr,
|
||||
|
@ -106,13 +106,13 @@ impl LateLintPass for Pass {
|
|||
}}
|
||||
}
|
||||
|
||||
fn check_block_post(&mut self, _: &LateContext, block: &Block) {
|
||||
fn check_block_post<'a, 'tcx: 'a>(&mut self, _: &LateContext<'a, 'tcx>, block: &'tcx Block) {
|
||||
if self.last.map_or(false, |id| block.id == id) {
|
||||
self.last = None;
|
||||
}
|
||||
}
|
||||
|
||||
fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
|
||||
fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
||||
if_let_chain!{[
|
||||
let ExprCall(ref fun, ref args) = expr.node,
|
||||
let ExprPath(ref qpath) = fun.node,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue