<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.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>2021-08-31T08:41:22+00:00</updated>
<entry>
<title>Rollup merge of #88450 - notriddle:notriddle/maybe_whole_expr, r=cjgillot</title>
<updated>2021-08-31T08:41:22+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2021-08-31T08:41:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7696aca55f8f5820cbe80a2b455616f10a81af83'/>
<id>urn:sha1:7696aca55f8f5820cbe80a2b455616f10a81af83</id>
<content type='text'>
fix(rustc_parse): correct span in `maybe_whole_expr!`

Fixes #87812
</content>
</entry>
<entry>
<title>Auto merge of #88262 - klensy:pprust-cow, r=nagisa</title>
<updated>2021-08-29T17:46:29+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2021-08-29T17:46:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ae0b03bc6b4e1544f43b9a8053bdb0f0ed4a19e1'/>
<id>urn:sha1:ae0b03bc6b4e1544f43b9a8053bdb0f0ed4a19e1</id>
<content type='text'>
Cow'ify some pprust methods

Reduce number of potential needless de/allocations by using `Cow&lt;'static, str&gt;` instead of explicit `String` type.
</content>
</entry>
<entry>
<title>fix(rustc_parse): incorrect span information for macro path expr</title>
<updated>2021-08-29T03:56:55+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2021-08-29T00:35:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f7c0566b1209fc7c29d9621cb482acdf58dabd65'/>
<id>urn:sha1:f7c0566b1209fc7c29d9621cb482acdf58dabd65</id>
<content type='text'>
Old error output:

    3  |         let _: usize = $f;
       |                -----     ^ expected `usize`, found struct `Baz`
       |                |
       |                expected due to this

New error output:

    3  |         let _: usize = $f;
       |                -----   ^^ expected `usize`, found struct `Baz`
       |                |
       |                expected due to this
</content>
</entry>
<entry>
<title>fix(rustc_parse): incorrect span information for macro block expr</title>
<updated>2021-08-29T00:59:00+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2021-08-29T00:28:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d562848268e02d6cf342598551bc663fcd4ff341'/>
<id>urn:sha1:d562848268e02d6cf342598551bc663fcd4ff341</id>
<content type='text'>
Old error output:

   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
help: wrap this expression in parentheses
   |
4  |             break '_l $f(;)
   |                         ^ ^

New error output:

   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
help: wrap this expression in parentheses
   |
4  |             break '_l ($f);
   |                       ^  ^
</content>
</entry>
<entry>
<title>Convert some functions to return Cow&lt;'static,str&gt; instead of String to reduce potential reallocations</title>
<updated>2021-08-24T21:24:44+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2021-08-22T16:55:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c565339c37def41500c6d3175c2db3be8c5c4f76'/>
<id>urn:sha1:c565339c37def41500c6d3175c2db3be8c5c4f76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix typos “a”→“an”</title>
<updated>2021-08-22T13:35:11+00:00</updated>
<author>
<name>Frank Steffahn</name>
<email>frank.steffahn@stu.uni-kiel.de</email>
</author>
<published>2021-08-22T12:46:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bf88b113eab9c36e63f8461f5849138cb60d810a'/>
<id>urn:sha1:bf88b113eab9c36e63f8461f5849138cb60d810a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce hir::ExprKind::Let - Take 2</title>
<updated>2021-08-15T19:18:26+00:00</updated>
<author>
<name>Caio</name>
<email>c410.f3r@gmail.com</email>
</author>
<published>2021-08-08T14:49:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6aa9937a768bf13e5f7bd0ee6dd8579403b39058'/>
<id>urn:sha1:6aa9937a768bf13e5f7bd0ee6dd8579403b39058</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Require parentheses to avoid confusions around labeled break and loop expressions</title>
<updated>2021-07-31T17:10:58+00:00</updated>
<author>
<name>Fabian Wolff</name>
<email>fabian.wolff@alumni.ethz.ch</email>
</author>
<published>2021-07-10T14:38:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=470cbc0e2eb52c2b80ba6940b6446aecb20f9b04'/>
<id>urn:sha1:470cbc0e2eb52c2b80ba6940b6446aecb20f9b04</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use multispan suggestions more often</title>
<updated>2021-07-30T16:26:31+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2021-06-28T18:22:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b8f192cfee2f107867e7b9a0b0f781a5cb48787'/>
<id>urn:sha1:0b8f192cfee2f107867e7b9a0b0f781a5cb48787</id>
<content type='text'>
* Use more accurate span for `async move` suggestion
* Use more accurate span for deref suggestion
* Use `multipart_suggestion` more often
</content>
</entry>
<entry>
<title>Auto merge of #87071 - inquisitivecrystal:inclusive-range, r=estebank</title>
<updated>2021-07-18T05:58:16+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2021-07-18T05:58:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3ab6b60337edeb49339d173853fee1f8569421e0'/>
<id>urn:sha1:3ab6b60337edeb49339d173853fee1f8569421e0</id>
<content type='text'>
Add diagnostics for mistyped inclusive range

Inclusive ranges are correctly typed as `..=`. However, it's quite easy to think of it as being like `==`, and type `..==` instead. This PR adds helpful diagnostics for this case.

Resolves #86395 (there are some other cases there, but I think those should probably have separate issues).

r? `@estebank`
</content>
</entry>
</feed>
