Skip to content

Commit 30c17cc

Browse files
committed
Update libsyntax test
1 parent a62c4aa commit 30c17cc

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/libsyntax/print/pprust.rs

+14-4
Original file line numberDiff line numberDiff line change
@@ -3186,10 +3186,20 @@ mod tests {
31863186
variadic: false
31873187
};
31883188
let generics = ast::Generics::default();
3189-
assert_eq!(fun_to_string(&decl, ast::Unsafety::Normal,
3190-
ast::Constness::NotConst,
3191-
abba_ident, &generics),
3192-
"fn abba()");
3189+
assert_eq!(
3190+
fun_to_string(
3191+
&decl,
3192+
ast::FnHeader {
3193+
unsafety: ast::Unsafety::Normal,
3194+
constness: codemap::dummy_spanned(ast::Constness::NotConst),
3195+
asyncness: ast::IsAsync::NotAsync,
3196+
abi: Abi::Rust,
3197+
},
3198+
abba_ident,
3199+
&generics
3200+
),
3201+
"fn abba()"
3202+
);
31933203
})
31943204
}
31953205

0 commit comments

Comments
 (0)