mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update to latest nightly.
This commit is contained in:
parent
0847d2b316
commit
801dfeff17
2 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
|
|||
/// must be #[unrooted_must_root_lint::must_root] themselves
|
||||
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant) {
|
||||
let ref map = cx.tcx.hir();
|
||||
let parent_item = map.expect_item(map.get_parent_item(var.id).def_id);
|
||||
let parent_item = map.expect_item(map.get_parent_item(var.hir_id).def_id);
|
||||
let attrs = cx.tcx.hir().attrs(parent_item.hir_id());
|
||||
if !has_lint_attr(&self.symbols, &attrs, self.symbols.must_root) {
|
||||
match var.data {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue