<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/const-generics/generic_const_exprs, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-01-11T09:32:08+00:00</updated>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak wording of fn call with wrong number of args</title>
<updated>2023-01-05T03:02:10+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2023-01-05T03:02:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5393c6bbd172bb87b49033e755f538228b14440b'/>
<id>urn:sha1:5393c6bbd172bb87b49033e755f538228b14440b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #105994 - JohnTitor:issue-99647, r=compiler-errors</title>
<updated>2022-12-27T15:37:47+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-27T15:37:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5b975cb7c227b5eec4a83c4651d1225f479c230'/>
<id>urn:sha1:d5b975cb7c227b5eec4a83c4651d1225f479c230</id>
<content type='text'>
Add regression test for #99647

Closes #99647
r? `@compiler-errors`

Signed-off-by: Yuki Okushi &lt;jtitor@2k36.org&gt;
</content>
</entry>
<entry>
<title>Add regression test for #94293</title>
<updated>2022-12-22T11:29:20+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>jtitor@2k36.org</email>
</author>
<published>2022-12-22T11:29:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=34ae96868fcbdb2d2fa4a0b269fab94279c13e6b'/>
<id>urn:sha1:34ae96868fcbdb2d2fa4a0b269fab94279c13e6b</id>
<content type='text'>
Signed-off-by: Yuki Okushi &lt;jtitor@2k36.org&gt;
</content>
</entry>
<entry>
<title>Add regression test for #99647</title>
<updated>2022-12-22T08:02:09+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>jtitor@2k36.org</email>
</author>
<published>2022-12-21T12:13:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ba8d7cd3e193983dbfee757a83532043c10d4529'/>
<id>urn:sha1:ba8d7cd3e193983dbfee757a83532043c10d4529</id>
<content type='text'>
Signed-off-by: Yuki Okushi &lt;jtitor@2k36.org&gt;
</content>
</entry>
<entry>
<title>Highlight conflicting param-env candidates, again</title>
<updated>2022-12-14T18:44:26+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2022-11-15T23:11:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=34d194d41c8ffea79b8816a811b2fe626b1a6c39'/>
<id>urn:sha1:34d194d41c8ffea79b8816a811b2fe626b1a6c39</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #105611 - BoxyUwU:more_granular_placeholderification, r=wesleywiser</title>
<updated>2022-12-14T09:31:08+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-14T09:31:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=01469693de40f8318766904278f3ad21f7a7db75'/>
<id>urn:sha1:01469693de40f8318766904278f3ad21f7a7db75</id>
<content type='text'>
fold instead of obliterating args

Fixes #105608

we call `const_eval_resolve` on the following constant:
```
def: playground::{impl#0}::and::{constant#0},
substs: [
  ConstKind::Unevaluated {
    def: playground::{impl#0}::and::{constant#0},
    substs: [
      ConstKind::Value(0x0),
      _,
    ]
  }
  _,
],
```
when expanded out to `ConstKind::Expr` there are no infer vars so we attempt to evaluate it after replacing infer vars with garbage, however the current logic for replacing with garbage replaces _the whole arg containing the infer var_ rather than just the infer var. This means that after garbage replacement has occured we attempt to evaluate:
```
def: playground::{impl#0}::and::{constant#0},
substs: [
  PLACEHOLDER,
  PLACEHOLDER,
],
```
Which then leads to ctfe being unable to evaluate the const. With this PR we attempt to evaluate:
```
def: playground::{impl#0}::and::{constant#0},
substs: [
  ConstKind::Unevaluated {
    def: playground::{impl#0}::and::{constant#0},
    substs: [
      ConstKind::Value(0x0),
      PLACEHOLDER,
    ]
  }
  PLACEHOLDER,
],
```
which ctfe _can_ handle.

I am not entirely sure why this function is supposed to replace params with placeholders rather than just inference vars :thinking:
</content>
</entry>
<entry>
<title>Rollup merge of #105523 - estebank:suggest-collect-vec, r=compiler-errors</title>
<updated>2022-12-14T09:31:07+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-12-14T09:31:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e5fde968dbbb87e5721ff5da91a49cab88b90b91'/>
<id>urn:sha1:e5fde968dbbb87e5721ff5da91a49cab88b90b91</id>
<content type='text'>
Suggest `collect`ing into `Vec&lt;_&gt;`

Fix #105510.
</content>
</entry>
<entry>
<title>Mention implementations that satisfy the trait</title>
<updated>2022-12-13T18:39:44+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-12-11T01:39:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3e25bcb02093bad56beb1dff6be7dd0d80115fb1'/>
<id>urn:sha1:3e25bcb02093bad56beb1dff6be7dd0d80115fb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make some diagnostics not depend on the source of what they reference being available</title>
<updated>2022-12-13T09:48:22+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2022-12-09T15:56:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cb26b35b12d810d7a8215869d9e434c4b0c7f25c'/>
<id>urn:sha1:cb26b35b12d810d7a8215869d9e434c4b0c7f25c</id>
<content type='text'>
</content>
</entry>
</feed>
