<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_ty_utils/src/errors.rs, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-03-06T20:58:32+00:00</updated>
<entry>
<title>Implement .use keyword as an alias of clone</title>
<updated>2025-03-06T20:58:32+00:00</updated>
<author>
<name>Santiago Pastorino</name>
<email>spastorino@gmail.com</email>
</author>
<published>2024-10-02T19:35:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05c516446a0f6105ce695da00d5cf5a0eb54e808'/>
<id>urn:sha1:05c516446a0f6105ce695da00d5cf5a0eb54e808</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove layouting dead code for non-array SIMD types.</title>
<updated>2025-03-02T11:50:14+00:00</updated>
<author>
<name>Moulins</name>
<email>arthur.heuillard@orange.fr</email>
</author>
<published>2025-03-01T11:40:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cbe32a76476c5fffa65783c82cf04072ac5886a6'/>
<id>urn:sha1:cbe32a76476c5fffa65783c82cf04072ac5886a6</id>
<content type='text'>
These aren't supported anymore, and are already rejected in type checking.
</content>
</entry>
<entry>
<title>Add `warn(unreachable_pub)` to `rustc_ty_utils`.</title>
<updated>2024-09-02T22:50:33+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-08-30T06:32:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d7caea129d3703d3021d29d873fc87ef9a97602f'/>
<id>urn:sha1:d7caea129d3703d3021d29d873fc87ef9a97602f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use bool in favor of Option&lt;()&gt; for diagnostics</title>
<updated>2024-08-21T05:31:11+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-08-21T04:57:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25ff9b6bcbba9e7831eb4d6eba2df6bbcd267c55'/>
<id>urn:sha1:25ff9b6bcbba9e7831eb4d6eba2df6bbcd267c55</id>
<content type='text'>
</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>Re-use error code for duplicate error</title>
<updated>2023-06-22T15:51:14+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2023-06-16T20:20:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=30ff127036b685aca52d121807d13e8e1d2db684'/>
<id>urn:sha1:30ff127036b685aca52d121807d13e8e1d2db684</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the opaque_types_defined_by query to cheaply check for whether a hidden type may be registered for an opaque type</title>
<updated>2023-05-12T10:26:50+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>git-spam-no-reply9815368754983@oli-obk.de</email>
</author>
<published>2023-04-25T08:07:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4e92f761fe54fc602ec2bf63819e8c973d1facd5'/>
<id>urn:sha1:4e92f761fe54fc602ec2bf63819e8c973d1facd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix typos in compiler</title>
<updated>2023-04-10T20:02:52+00:00</updated>
<author>
<name>DaniPopes</name>
<email>57450786+DaniPopes@users.noreply.github.com</email>
</author>
<published>2023-04-10T20:02:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=677357d32bd402ff1096803cb00b52124204af08'/>
<id>urn:sha1:677357d32bd402ff1096803cb00b52124204af08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move SIMD layout errors to `SessionDiagnostic`</title>
<updated>2023-04-08T19:28:32+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2023-04-08T19:01:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=804e93871dfc879380fdd3bcde6c6958466814af'/>
<id>urn:sha1:804e93871dfc879380fdd3bcde6c6958466814af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move `FnPtrAddr` error to `SessionDiagnostic`</title>
<updated>2023-04-07T18:48:27+00:00</updated>
<author>
<name>Matthew Jasper</name>
<email>mjjasper1@gmail.com</email>
</author>
<published>2023-04-07T18:45:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f7f2eb3e4171e4b87dbcab3a9a6709d5d084c54f'/>
<id>urn:sha1:f7f2eb3e4171e4b87dbcab3a9a6709d5d084c54f</id>
<content type='text'>
</content>
</entry>
</feed>
