mirror of
https://github.com/servo/servo.git
synced 2025-07-12 18:03:49 +01:00
Upgrade to rustc 1.17.0-nightly (ea7a6486a 2017-02-04)
This commit is contained in:
parent
fb7f65fc57
commit
1aa0b16299
4 changed files with 16 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue