Skip to content

Commit

Permalink
Fix ui-fulldeps tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Sep 26, 2019
1 parent 0573af0 commit 0c1a038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/ast_stmt_expr_attr.rs
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/pprust-expr-roundtrip.rs
Expand Up @@ -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(),
})
Expand Down

0 comments on commit 0c1a038

Please sign in to comment.