<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_error_codes/src, branch 1.77.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.77.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.77.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-03-04T17:35:03+00:00</updated>
<entry>
<title>Improve wording of static_mut_ref</title>
<updated>2024-03-04T17:35:03+00:00</updated>
<author>
<name>Obei Sideg</name>
<email>obei.sideg@gmail.com</email>
</author>
<published>2024-02-17T19:01:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0656ed6afbbd190d0824d3810e8e57194109f075'/>
<id>urn:sha1:0656ed6afbbd190d0824d3810e8e57194109f075</id>
<content type='text'>
Rename `static_mut_ref` lint to `static_mut_refs`.

(cherry picked from commit 408eeae59d35cbcaab2cfb345d24373954e74fc5)
</content>
</entry>
<entry>
<title>Stop using `String` for error codes.</title>
<updated>2024-01-28T20:41:41+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-01-13T23:57:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5d9dfbd08f38c2a9bc71d39de8f5c7776afe0f9e'/>
<id>urn:sha1:5d9dfbd08f38c2a9bc71d39de8f5c7776afe0f9e</id>
<content type='text'>
Error codes are integers, but `String` is used everywhere to represent
them. Gross!

This commit introduces `ErrCode`, an integral newtype for error codes,
replacing `String`. It also introduces a constant for every error code,
e.g. `E0123`, and removes the `error_code!` macro. The constants are
imported wherever used with `use rustc_errors::codes::*`.

With the old code, we have three different ways to specify an error code
at a use point:
```
error_code!(E0123)  // macro call

struct_span_code_err!(dcx, span, E0123, "msg");  // bare ident arg to macro call

\#[diag(name, code = "E0123")]  // string
struct Diag;
```

With the new code, they all use the `E0123` constant.
```
E0123  // constant

struct_span_code_err!(dcx, span, E0123, "msg");  // constant

\#[diag(name, code = E0123)]  // constant
struct Diag;
```

The commit also changes the structure of the error code definitions:
- `rustc_error_codes` now just defines a higher-order macro listing the
  used error codes and nothing else.
- Because that's now the only thing in the `rustc_error_codes` crate, I
  moved it into the `lib.rs` file and removed the `error_codes.rs` file.
- `rustc_errors` uses that macro to define everything, e.g. the error
  code constants and the `DIAGNOSTIC_TABLES`. This is in its new
  `codes.rs` file.
</content>
</entry>
<entry>
<title>Stabilize simple offset_of</title>
<updated>2024-01-19T20:38:51+00:00</updated>
<author>
<name>George Bateman</name>
<email>george.bateman16@gmail.com</email>
</author>
<published>2023-12-05T22:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=615946db4fc812bff3bb015dfe860c10da4b20c1'/>
<id>urn:sha1:615946db4fc812bff3bb015dfe860c10da4b20c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Async closures will move params into the future always</title>
<updated>2024-01-16T17:12:10+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-01-14T23:12:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f1ee076f8188c02a2f4d06fc2fde2f58bdb3d6f4'/>
<id>urn:sha1:f1ee076f8188c02a2f4d06fc2fde2f58bdb3d6f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add error code for missing base expression in struct update syntax</title>
<updated>2024-01-09T19:25:54+00:00</updated>
<author>
<name>clubby789</name>
<email>jamie@hill-daniel.co.uk</email>
</author>
<published>2023-05-26T13:49:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f1b8b7d7ae190a9cfc14a9c6ac5e4f78445ade46'/>
<id>urn:sha1:f1b8b7d7ae190a9cfc14a9c6ac5e4f78445ade46</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #117556 - obeis:static-mut-ref-lint, r=davidtwco</title>
<updated>2024-01-09T12:23:15+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2024-01-09T12:23:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a24b5bc054f78c165cbdf4dd3e0a7f56f468d7d'/>
<id>urn:sha1:4a24b5bc054f78c165cbdf4dd3e0a7f56f468d7d</id>
<content type='text'>
Disallow reference to `static mut` and adding `static_mut_ref` lint

Closes #114447

r? `@scottmcm`
</content>
</entry>
<entry>
<title>Last nits</title>
<updated>2024-01-08T20:32:06+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-01-08T14:31:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a756034a981b0aa15598f990381203dffe96a1c'/>
<id>urn:sha1:9a756034a981b0aa15598f990381203dffe96a1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't check for recursion in generator witness fields</title>
<updated>2024-01-08T20:30:21+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-11-08T06:56:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=82a22154815b70e5701064bef59d3334f5bc1cf7'/>
<id>urn:sha1:82a22154815b70e5701064bef59d3334f5bc1cf7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Disallow reference to `static mut` for expressions</title>
<updated>2024-01-06T03:31:35+00:00</updated>
<author>
<name>Obei Sideg</name>
<email>obei.sideg@gmail.com</email>
</author>
<published>2023-12-22T11:56:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c088f95202400084987ed874822b4969f678d20'/>
<id>urn:sha1:2c088f95202400084987ed874822b4969f678d20</id>
<content type='text'>
Add `E0796` error code.
Add `static_mut_ref` lint.

This is the idea for the 2024 edition.
</content>
</entry>
<entry>
<title>Rollup merge of #119505 - fmease:no-host-param-for-trait-fns, r=fee1-dead</title>
<updated>2024-01-03T15:08:30+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2024-01-03T15:08:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bce6fc35eeb9c0e4260766f2c734a89c1523f5d'/>
<id>urn:sha1:8bce6fc35eeb9c0e4260766f2c734a89c1523f5d</id>
<content type='text'>
Don't synthesize host effect params for trait associated functions marked const

Fixes #113378.

r? fee1-dead or compiler
</content>
</entry>
</feed>
