mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)
This commit is contained in:
parent
8672ab5447
commit
98e4a53b72
8 changed files with 64 additions and 55 deletions
|
@ -174,12 +174,12 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
|||
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
|
||||
let ref map = cx.tcx.hir();
|
||||
if map
|
||||
.expect_item(map.get_parent_item(var.node.id))
|
||||
.expect_item(map.get_parent_item(var.id))
|
||||
.attrs
|
||||
.iter()
|
||||
.all(|a| !a.check_name(self.symbols.must_root))
|
||||
{
|
||||
match var.node.data {
|
||||
match var.data {
|
||||
hir::VariantData::Tuple(ref fields, ..) => {
|
||||
for ref field in fields {
|
||||
let def_id = cx.tcx.hir().local_def_id(field.hir_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue