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

Bump Rust to 2016-04-06 #10173

Merged
merged 1 commit into from Apr 6, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Bump Rust to 2016-04-06

  • Loading branch information
Ms2ger authored and nox committed Apr 6, 2016
commit bfadfe03490e79a2fd1a8bb14f6a57ae8604afa8
@@ -15,7 +15,7 @@ rev = "9dca15de3e8ea266d3e7e868c0f358ed4fa5f195"
optional = true

[dependencies]
tenacious = "0.1.0"
tenacious = "0.1.2"
url = {version = "0.5.7", features = ["heap_size"]}

[features]
@@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use rustc::lint::{LateContext, LintPass, LintArray, LateLintPass, LintContext};
use rustc::middle::ty;
use rustc::ty;
use rustc_front::hir;

declare_lint!(STR_TO_STRING, Deny,
@@ -5,7 +5,7 @@
use rustc::front::map as ast_map;
use rustc::lint::{LateContext, LintPass, LintArray, LateLintPass, LintContext};
use rustc::middle::pat_util::pat_is_binding;
use rustc::middle::ty;
use rustc::ty;
use rustc_front::hir;
use rustc_front::intravisit as visit;
use syntax::attr::AttrMetaMethods;
@@ -125,11 +125,11 @@ impl LateLintPass for UnrootedPass {
fn check_fn(&mut self, cx: &LateContext, kind: visit::FnKind, decl: &hir::FnDecl,
block: &hir::Block, span: codemap::Span, _id: ast::NodeId) {
let in_new_function = match kind {
visit::FnKind::ItemFn(n, _, _, _, _, _) |
visit::FnKind::Method(n, _, _) => {
visit::FnKind::ItemFn(n, _, _, _, _, _, _) |
visit::FnKind::Method(n, _, _, _) => {
n.as_str() == "new" || n.as_str().starts_with("new_")
}
visit::FnKind::Closure => return,
visit::FnKind::Closure(_) => return,
};

for arg in &decl.inputs {
@@ -223,7 +223,7 @@ impl<'a, 'b: 'a, 'tcx: 'a+'b> visit::Visitor<'a> for FnDefVisitor<'a, 'b, 'tcx>

fn visit_fn(&mut self, kind: visit::FnKind<'a>, decl: &'a hir::FnDecl,
block: &'a hir::Block, span: codemap::Span, _id: ast::NodeId) {
if kind == visit::FnKind::Closure {
if let visit::FnKind::Closure(_) = kind {
visit::walk_fn(self, kind, decl, block, span);
}
}

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

@@ -1 +1 @@
2016-03-18
2016-04-06
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.