Upgrade to rustc 1.17.0-nightly (ea7a6486a 2017-02-04)

This commit is contained in:
Simon Sapin 2017-02-02 17:43:58 +01:00
parent fb7f65fc57
commit 1aa0b16299
4 changed files with 16 additions and 14 deletions

View file

@ -28,7 +28,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PrivatizePass {
_n: ast::Name,
_gen: &hir::Generics,
id: ast::NodeId) {
if cx.tcx.has_attr(cx.tcx.map.local_def_id(id), "privatize") {
if cx.tcx.has_attr(cx.tcx.hir.local_def_id(id), "privatize") {
for field in def.fields() {
if field.vis == hir::Public {
cx.span_lint(PRIVATIZE, field.span,