Skip to content

Commit

Permalink
Fix a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Feb 21, 2023
1 parent c7f443a commit 9c7570b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ui-fulldeps/pprust-expr-roundtrip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use rustc_session::parse::ParseSess;
use rustc_span::source_map::FilePathMapping;
use rustc_span::source_map::{FileName, Spanned, DUMMY_SP};
use rustc_span::symbol::Ident;
use thin_vec::thin_vec;
use thin_vec::{thin_vec, ThinVec};

fn parse_expr(ps: &ParseSess, src: &str) -> Option<P<Expr>> {
let src_as_string = src.to_string();
Expand Down Expand Up @@ -111,7 +111,7 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
}
10 => {
let block = P(Block {
stmts: Vec::new(),
stmts: ThinVec::new(),
id: DUMMY_NODE_ID,
rules: BlockCheckMode::Default,
span: DUMMY_SP,
Expand Down Expand Up @@ -165,7 +165,7 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
g(ExprKind::Struct(P(StructExpr {
qself: None,
path,
fields: vec![],
fields: thin_vec![],
rest: StructRest::Base(make_x()),
})));
}
Expand Down

0 comments on commit 9c7570b

Please sign in to comment.