about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-03-20 17:02:05 +0900
committerGitHub <noreply@github.com>2020-03-20 17:02:05 +0900
commit9dc699430f55af49a7e4f17de9a4482bfd54d481 (patch)
treee38d50b0c02be2668d6cbfe23a212f375564d01d /src/test/codegen/src-hash-algorithm
parent3554f2d9411b0924fea8c78dfa82060b9500f261 (diff)
parentbee151308d5c5090627772c04e17f783aa53451a (diff)
downloadrust-9dc699430f55af49a7e4f17de9a4482bfd54d481.tar.gz
rust-9dc699430f55af49a7e4f17de9a4482bfd54d481.zip
Rollup merge of #69935 - davidtwco:issue-69925, r=eddyb
codegen/mir: support polymorphic `InstanceDef`s

cc #69925

This PR modifies the use of `subst_and_normalize_erasing_regions` on parts of the MIR bodies returned from `instance_mir`, so that `InstanceDef::CloneShim` and `InstanceDef::DropGlue` (where there is a type) do not perform substitutions. This avoids double substitutions and enables polymorphic `InstanceDef`s.

r? @eddyb
cc @nikomatsakis
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions