1
Fork 0

Rustup to *1.11.0-nightly (7d2f75a95 2016-06-09)*

This commit is contained in:
mcarton 2016-06-10 19:47:10 +02:00
parent 91d922aeb8
commit 350f3a7fe5
No known key found for this signature in database
GPG key ID: 5E427C794CBA45E8
9 changed files with 18 additions and 18 deletions

View file

@ -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);