rust/compiler/rustc_mir_build/src
Manish Goregaokar 5ab1245303
Rollup merge of #89441 - Nadrieril:fix-89393, r=tmandry
Normalize after substituting via `field.ty()`

Back in https://github.com/rust-lang/rust/issues/72476 I hadn't understood where the problem was coming from, and only worked around the issue. What happens is that calling `field.ty()` on a field of a generic struct substitutes the appropriate generics but doesn't normalize the resulting type.
As a consumer of types I'm surprised that one would substitute without normalizing, feels like a footgun, so I added a comment.

Fixes https://github.com/rust-lang/rust/issues/89393.
2021-10-01 14:46:52 -07:00
..
build Rollup merge of #89311 - FabianWolff:issue-89305, r=oli-obk 2021-09-29 19:33:39 -07:00
thir Rollup merge of #89441 - Nadrieril:fix-89393, r=tmandry 2021-10-01 14:46:52 -07:00
check_unsafety.rs move thir visitor to rustc_middle 2021-09-09 01:32:03 +01:00
lib.rs Remove box syntax from rustc_mir_build 2021-08-18 09:25:26 +02:00
lints.rs Do not store attrs in FnKind. 2021-03-09 19:09:33 +01:00