Skip to content

Commit

Permalink
Update libsyntax test
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj committed Jun 23, 2018
1 parent a62c4aa commit 30c17cc
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/libsyntax/print/pprust.rs
Expand Up @@ -3186,10 +3186,20 @@ mod tests {
variadic: false
};
let generics = ast::Generics::default();
assert_eq!(fun_to_string(&decl, ast::Unsafety::Normal,
ast::Constness::NotConst,
abba_ident, &generics),
"fn abba()");
assert_eq!(
fun_to_string(
&decl,
ast::FnHeader {
unsafety: ast::Unsafety::Normal,
constness: codemap::dummy_spanned(ast::Constness::NotConst),
asyncness: ast::IsAsync::NotAsync,
abi: Abi::Rust,
},
abba_ident,
&generics
),
"fn abba()"
);
})
}

Expand Down

0 comments on commit 30c17cc

Please sign in to comment.