de-alias same symbol with different layouts in borrow inference

This commit is contained in:
Folkert 2021-02-18 15:51:09 +01:00
parent 418be685ad
commit 0b6975fa77
4 changed files with 76 additions and 48 deletions

View file

@ -79,7 +79,7 @@ impl<'a> UnionLayout<'a> {
let tags_doc = tags.iter().map(|fields| {
alloc.text("C ").append(alloc.intersperse(
fields.iter().map(|x| x.to_doc(alloc, Parens::InTypeParam)),
", ",
" ",
))
});