<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/expr, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<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>Suppress errors due to TypeError not coercing with inference variables</title>
<updated>2022-12-30T19:53:34+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2022-12-30T18:40:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f6b45e399e5c75429e66b11760e97d56fc010091'/>
<id>urn:sha1:f6b45e399e5c75429e66b11760e97d56fc010091</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid rendering empty annotations</title>
<updated>2022-12-13T10:06:08+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2022-12-12T15:25:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=59554a2b54c3510b062825801064541a4caa662d'/>
<id>urn:sha1:59554a2b54c3510b062825801064541a4caa662d</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>
<entry>
<title>Use `with_forced_trimmed_paths`</title>
<updated>2022-12-11T19:38:43+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2022-12-11T19:38:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ce486d538b909658f72d6016dae758f075089d3c'/>
<id>urn:sha1:ce486d538b909658f72d6016dae758f075089d3c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #102720 - lyming2007:issue-102397-fix, r=compiler-errors</title>
<updated>2022-10-07T05:28:10+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-10-07T05:28:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=047ff20875171597f61437c739cdc4f1aa825738'/>
<id>urn:sha1:047ff20875171597f61437c739cdc4f1aa825738</id>
<content type='text'>
do not reverse the expected type and found type for ObligationCauseCo…

…de of IfExpressionWithNoElse

this will fix #102397
</content>
</entry>
<entry>
<title>Rollup merge of #102708 - TaKO8Ki:improve-eqeq-suggestion, r=estebank</title>
<updated>2022-10-06T05:07:37+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-10-06T05:07:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0512a06186916d097a1a1f8ae1210e1295cc1a1c'/>
<id>urn:sha1:0512a06186916d097a1a1f8ae1210e1295cc1a1c</id>
<content type='text'>
Suggest `==` to wrong assign expr

Given the following code:

```rust
fn main() {
    let x = 3;
    let y = 3;
    if x == x &amp;&amp; y = y {
        println!("{}", x);
    }
}
```

Current output is:

```
error[E0308]: mismatched types
 --&gt; src/main.rs:4:18
  |
4 |     if x == x &amp;&amp; y = y {
  |                  ^ expected `bool`, found integer

error[E0308]: mismatched types
 --&gt; src/main.rs:4:8
  |
4 |     if x == x &amp;&amp; y = y {
  |        ^^^^^^^^^^^^^^^ expected `bool`, found `()`
```

This adds a suggestion:

```diff
error[E0308]: mismatched types
 --&gt; src/main.rs:6:18
  |
6 |     if x == x &amp;&amp; y = y {
  |                  ^ expected `bool`, found integer

error[E0308]: mismatched types
 --&gt; src/main.rs:6:8
  |
6 |     if x == x &amp;&amp; y = y {
  |        ^^^^^^^^^^^^^^^ expected `bool`, found `()`
  |
+ help: you might have meant to compare for equality
+   |
+ 6 |     if x == x &amp;&amp; y == y {
+   |                     +
```

And this fixes a part of #97469
</content>
</entry>
<entry>
<title>do not reverse the expected type and found type for ObligationCauseCode of IfExpressionWithNoElse</title>
<updated>2022-10-05T21:00:51+00:00</updated>
<author>
<name>Yiming Lei</name>
<email>yiming.lei@futurewei.com</email>
</author>
<published>2022-10-05T21:00:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0501d615bb1484fbbd6e2035cff4c3c44e94f10d'/>
<id>urn:sha1:0501d615bb1484fbbd6e2035cff4c3c44e94f10d</id>
<content type='text'>
this will fix #102397
</content>
</entry>
<entry>
<title>suggest `==` to the rest of assign expr</title>
<updated>2022-10-05T13:51:22+00:00</updated>
<author>
<name>Takayuki Maeda</name>
<email>takoyaki0316@gmail.com</email>
</author>
<published>2022-10-05T13:51:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b7c42c55a2e64e77d4eced0ccd51b5f2603395a0'/>
<id>urn:sha1:b7c42c55a2e64e77d4eced0ccd51b5f2603395a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bless ui tests</title>
<updated>2022-10-01T10:03:06+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2022-09-18T15:55:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=13b67fb9d2849b4e59d5651b0e4fc82ef8b088aa'/>
<id>urn:sha1:13b67fb9d2849b4e59d5651b0e4fc82ef8b088aa</id>
<content type='text'>
</content>
</entry>
</feed>
