<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/polymorphization/issue-74636.rs, branch 1.56.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-07-31T15:36:42+00:00</updated>
<entry>
<title>interp: needs_subst -&gt; ensure_monomorphic_enough</title>
<updated>2020-07-31T15:36:42+00:00</updated>
<author>
<name>David Wood</name>
<email>david@davidtw.co</email>
</author>
<published>2020-07-24T12:16:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=59e621c1969fb03c5d367e9c713c0279461e772f'/>
<id>urn:sha1:59e621c1969fb03c5d367e9c713c0279461e772f</id>
<content type='text'>
This commit adds a `ensure_monomorphic_enough` utility function which
checks whether a type needs substitution, but only for parameters
that the `unused_generic_params` query considers used.

`ensure_monomorphic_enough` is then used throughout interpret where
`needs_subst` checks previously existed (in particular, for some
pointer casts and for reflection intrinsics more precise).

Signed-off-by: David Wood &lt;david@davidtw.co&gt;
</content>
</entry>
</feed>
