Fix ui-fulldeps tests
This commit is contained in:
parent
0573af0eb2
commit
0c1a038a8d
@ -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,
|
||||
|
@ -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(),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user