Don't add "struct" to "DIR" or "fd_set".

This commit is contained in:
Dan Gohman 2019-04-19 12:28:35 -07:00
parent 30ed9835ed
commit 49c0dc98d0
1 changed files with 1 additions and 1 deletions

View File

@ -1906,7 +1906,7 @@ fn test_wasi(target: &str) {
}
cfg.type_name(move |ty, is_struct, is_union| match ty {
"FILE" => ty.to_string(),
"FILE" | "fd_set" | "DIR" => ty.to_string(),
t if is_union => format!("union {}", t),
t if t.starts_with("__wasi") && t.ends_with("_u") => {
format!("union {}", t)