]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #78771 - tmiasko:inline-consts, r=oli-obk
authorYuki Okushi <huyuumi.dev@gmail.com>
Fri, 6 Nov 2020 16:02:24 +0000 (01:02 +0900)
committerGitHub <noreply@github.com>
Fri, 6 Nov 2020 16:02:24 +0000 (01:02 +0900)
inliner: Copy unevaluated constants only after successful inlining

Inliner copies the unevaluated constants from the callee body to the
caller at the point where decision to inline is yet to be made. The
constants will be unnecessary if inlining were to fail.

Organize the code moving items from callee to the caller together in one
place to avoid the issue.


Trivial merge