]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #81500 - CraftSpider:union-kind, r=jyn514
authorMara Bos <m-ou.se@m-ou.se>
Fri, 5 Feb 2021 11:25:59 +0000 (12:25 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Feb 2021 11:25:59 +0000 (12:25 +0100)
commite98e42b881227113979092fb48a3096a115d2217
tree57293086b546bf4ea37fd339acdb71a379dc0c2b
parent2451bf90db0b17c5f3cb8010d76730048a405c56
parent3106de5f2a0983f617433d6e3429ff1a90d71f8d
Rollup merge of #81500 - CraftSpider:union-kind, r=jyn514

Remove struct_type from union output

Also bumps the format number and adds a test

Rationale: It's illegal to have unions of the form `union Union(i32, f32);`, or `union Union;`. The struct_type field was recently removed from the rustdoc Union AST, at which time this field was changed to always just read "union". It makes sense to completely remove it, as it provides no information.
src/librustdoc/json/conversions.rs