]> git.lizzy.rs Git - rust.git/commit
Fix issue #36036.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 5 Sep 2016 10:56:29 +0000 (12:56 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 5 Sep 2016 10:57:00 +0000 (12:57 +0200)
commit09e6a983805c5f4f7cbb7e244f1fa48c2f91ec95
tree2cd407720216cb82937f39645d4c021e295c676b
parent86995dc8c56b3c2923dff8a4bb79fed7c60a4396
Fix issue #36036.

We were treating an associated type as unsized even when the concrete
instantiation was actually sized. Fix is to normalize before checking
if it is sized.
src/librustc/ty/layout.rs
src/test/run-pass/issue-36036-associated-type-layout.rs [new file with mode: 0644]