<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_parse/src/parser/expr.rs, branch 1.71.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.71.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.71.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-05-24T14:20:41+00:00</updated>
<entry>
<title>Use `Option::is_some_and` and `Result::is_ok_and` in the compiler</title>
<updated>2023-05-24T14:20:41+00:00</updated>
<author>
<name>Maybe Waffle</name>
<email>waffle.lapkin@gmail.com</email>
</author>
<published>2023-05-24T14:19:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fb0f74a8c9e8b8f488ec5894d5d314caebf4c662'/>
<id>urn:sha1:fb0f74a8c9e8b8f488ec5894d5d314caebf4c662</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fmt</title>
<updated>2023-05-13T11:40:17+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-05-13T10:06:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=83789b8b068ad38c6a3c937d0a2c6ca64e588c85'/>
<id>urn:sha1:83789b8b068ad38c6a3c937d0a2c6ca64e588c85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix ice caused by shorthand fields in NoFieldsForFnCall</title>
<updated>2023-05-13T10:06:16+00:00</updated>
<author>
<name>yukang</name>
<email>moorekang@gmail.com</email>
</author>
<published>2023-05-13T10:06:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ce6cfc37d033eb1fb1f2e3af1c17c218917b54ec'/>
<id>urn:sha1:ce6cfc37d033eb1fb1f2e3af1c17c218917b54ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #110694 - est31:builtin, r=petrochenkov</title>
<updated>2023-05-09T07:03:45+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2023-05-09T07:03:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dbd090c655b4a4389fe51cbd3ad6f401e2953dbe'/>
<id>urn:sha1:dbd090c655b4a4389fe51cbd3ad6f401e2953dbe</id>
<content type='text'>
Implement builtin # syntax and use it for offset_of!(...)

Add `builtin #` syntax to the parser, as well as a generic infrastructure to support both item and expression position builtin syntaxes. The PR also uses this infrastructure for the implementation of the `offset_of!` macro, added by #106934.

cc `@petrochenkov` `@DrMeepster`

cc #110680 `builtin #` tracking issue
cc #106655 `offset_of!` tracking issue
</content>
</entry>
<entry>
<title>Rollup merge of #111230 - zacklukem:eq-less-to-less-eq, r=compiler-errors</title>
<updated>2023-05-06T11:30:05+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-05-06T11:30:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=83b29ec743924dc3944ca2a50312ecbdef153588'/>
<id>urn:sha1:83b29ec743924dc3944ca2a50312ecbdef153588</id>
<content type='text'>
add hint for =&lt; as &lt;=

Adds a compiler hint for when `=&lt;` is typed instead of `&lt;=`

Example hint:
```rust
fn foo() {
    if 1 =&lt; 3 {
        println!("Hello, World!");
    }
}
```
```
error: expected type, found `3`
 --&gt; main.rs:2:13
  |
2 |     if 1 =&lt; 3 {
  |          -- ^ expected type
  |          |
  |          help: did you mean: `&lt;=`
```

This PR only emits the suggestion if there is no space between the `=` and `&lt;`.  This hopefully narrows the scope of when this error is emitted, however this still allows this error to be emitted in cases such as this:
```
error: expected expression, found `;`
 --&gt; main.rs:2:18
  |
2 |     if 1 =&lt; [i32;; 3]&gt;::hello() {
  |          --      ^ expected expression
  |          |
  |          help: did you mean: `&lt;=`
```

Which could be a good reason not to merge since I haven't been able to think of any other ways of narrowing the scope of this diagnostic.

closes #111128
</content>
</entry>
<entry>
<title>Add feature gate</title>
<updated>2023-05-05T19:44:48+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2023-04-29T12:57:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=83b4df4e611961373ffaf4bfcd9f8940a4f37c09'/>
<id>urn:sha1:83b4df4e611961373ffaf4bfcd9f8940a4f37c09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Migrate offset_of from a macro to builtin # syntax</title>
<updated>2023-05-05T19:44:13+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2023-04-22T14:29:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5eb29c7f49c2d99e9bfc778f30984f7fdcf5fc08'/>
<id>urn:sha1:5eb29c7f49c2d99e9bfc778f30984f7fdcf5fc08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add parsing for builtin # in expression and item context</title>
<updated>2023-05-05T19:44:13+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2023-01-19T09:24:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=59ecbd2cea20839f1288b917cbf5ba8c23864df7'/>
<id>urn:sha1:59ecbd2cea20839f1288b917cbf5ba8c23864df7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add hint for =&lt; as &lt;=</title>
<updated>2023-05-05T15:17:14+00:00</updated>
<author>
<name>Zachary Mayhew</name>
<email>mayhew.zachary2003@gmail.com</email>
</author>
<published>2023-05-05T03:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a183ac6f90dc43a550a8afa5c01fdc797cf3d1d4'/>
<id>urn:sha1:a183ac6f90dc43a550a8afa5c01fdc797cf3d1d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #108801 - fee1-dead-contrib:c-str, r=compiler-errors</title>
<updated>2023-05-05T13:10:33+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2023-05-05T13:10:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4891f02cff9a282df96b368b2f3f8151a78e9676'/>
<id>urn:sha1:4891f02cff9a282df96b368b2f3f8151a78e9676</id>
<content type='text'>
Implement RFC 3348, `c"foo"` literals

RFC: https://github.com/rust-lang/rfcs/pull/3348
Tracking issue: #105723
</content>
</entry>
</feed>
