Accept self in place of mod in use items

[breaking-change]

`mod` is still accepted, but gives a deprecated warning
This commit is contained in:
Nick Cameron
2014-12-31 17:24:42 +13:00
parent ee3c5957ea
commit 74d11d26f4
4 changed files with 12 additions and 6 deletions

View File

@@ -2540,7 +2540,7 @@ impl<'a> State<'a> {
s.print_ident(name)
},
ast::PathListMod { .. } => {
word(&mut s.s, "mod")
word(&mut s.s, "self")
}
}
}));