Fix ui-fulldeps tests

This commit is contained in:
varkor 2019-09-26 23:17:53 +01:00
parent 0573af0eb2
commit 0c1a038a8d
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ fn check_expr_attrs(es: &str, expected: &[&str]) {
fn check_stmt_attrs(es: &str, expected: &[&str]) {
let ps = ParseSess::new(FilePathMapping::empty());
let e = stmt(es, &ps).expect("parse error");
let actual = e.node.attrs();
let actual = e.kind.attrs();
str_compare(es,
&expected.iter().map(|r| attr(r, &ps).unwrap()).collect::<Vec<_>>(),
actual,

View File

@ -48,7 +48,7 @@ fn parse_expr(ps: &ParseSess, src: &str) -> Option<P<Expr>> {
fn expr(kind: ExprKind) -> P<Expr> {
P(Expr {
id: DUMMY_NODE_ID,
node: kind,
kind,
span: DUMMY_SP,
attrs: ThinVec::new(),
})