Rustup to *1.11.0-nightly (7d2f75a95
2016-06-09)*
This commit is contained in:
parent
91d922aeb8
commit
350f3a7fe5
9 changed files with 18 additions and 18 deletions
|
@ -103,7 +103,7 @@ impl LateLintPass for RegexPass {
|
|||
args.len() == 1,
|
||||
let Some(def) = cx.tcx.def_map.borrow().get(&fun.id),
|
||||
], {
|
||||
let def_id = def.def_id();
|
||||
let def_id = def.full_def().def_id();
|
||||
if match_def_path(cx, def_id, &paths::REGEX_NEW) ||
|
||||
match_def_path(cx, def_id, &paths::REGEX_BUILDER_NEW) {
|
||||
check_regex(cx, &args[0], true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue