]> git.lizzy.rs Git - rust.git/commit
Allow projections to be promoted to constants in MIR.
authorEduard-Mihai Burtescu <edy.burt@gmail.com>
Thu, 5 Jan 2017 00:33:09 +0000 (02:33 +0200)
committerEduard-Mihai Burtescu <edy.burt@gmail.com>
Thu, 5 Jan 2017 00:33:09 +0000 (02:33 +0200)
commit8f84e955e006dd9e116f69eaba6efbbcd2e3ca8a
treefdbde6930700b2db5ebbda95a2617503668a6ba1
parent05f4a75ebaccdf3646fbea4b560a3a0dfc1be9e2
Allow projections to be promoted to constants in MIR.
src/librustc_mir/transform/promote_consts.rs
src/librustc_trans/collector.rs
src/test/run-pass/issue-38074.rs [new file with mode: 0644]