1
Fork 0

Rustup to rustc 1.36.0-nightly (13fde05b1 2019-05-03)

This commit is contained in:
Matthias Krüger 2019-05-04 02:03:12 +02:00 committed by Manish Goregaokar
parent 19316b4cb5
commit d618637c05
39 changed files with 121 additions and 117 deletions

View file

@ -110,7 +110,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Regex {
if let ExprKind::Call(ref fun, ref args) = expr.node;
if let ExprKind::Path(ref qpath) = fun.node;
if args.len() == 1;
if let Some(def_id) = cx.tables.qpath_def(qpath, fun.hir_id).opt_def_id();
if let Some(def_id) = cx.tables.qpath_res(qpath, fun.hir_id).opt_def_id();
then {
if cx.match_def_path(def_id, &paths::REGEX_NEW) ||
cx.match_def_path(def_id, &paths::REGEX_BUILDER_NEW) {