Skip to content
Permalink
Browse files

Fix ui-fulldeps tests

  • Loading branch information...
varkor committed Sep 26, 2019
1 parent 0573af0 commit 0c1a038a8d9496ca58a533d6ee20d214bb99ff16
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/test/ui-fulldeps/ast_stmt_expr_attr.rs
  2. +1 −1 src/test/ui-fulldeps/pprust-expr-roundtrip.rs
@@ -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(),
})

0 comments on commit 0c1a038

Please sign in to comment.
You can’t perform that action at this time.