<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/tools/error_index_generator, branch 1.87.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.87.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.87.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-02-17T18:58:15+00:00</updated>
<entry>
<title>Move error_index_generator to the rustbook workspace</title>
<updated>2025-02-17T18:58:15+00:00</updated>
<author>
<name>Eric Huss</name>
<email>eric@huss.org</email>
</author>
<published>2025-02-17T18:57:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2773456f5f3560bb0590d32452ca58f21b0181d0'/>
<id>urn:sha1:2773456f5f3560bb0590d32452ca58f21b0181d0</id>
<content type='text'>
I had forgotten that error_index_generator is using mdbook. This moves
it to be part of the rustbook workspace so that it can share the
dependency with rustbook.
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</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>Rename `EarlyErrorHandler` as `EarlyDiagCtxt`.</title>
<updated>2023-12-18T05:06:21+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-12-17T11:01:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cce1701c4c3c37c96753ddb15fd822e71558d141'/>
<id>urn:sha1:cce1701c4c3c37c96753ddb15fd822e71558d141</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_log: provide a way to init logging based on the values, not names, of the env vars</title>
<updated>2023-11-11T14:24:33+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2023-11-11T12:34:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=581a317bbbbad807fd88eab490516787f1e9249e'/>
<id>urn:sha1:581a317bbbbad807fd88eab490516787f1e9249e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide more context for `rustc +nightly -Zunstable-options` on stable</title>
<updated>2023-06-27T15:23:33+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>jieyouxu@outlook.com</email>
</author>
<published>2023-06-22T21:56:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cef812bd958d5037224aebe3721f3ffc9c80965e'/>
<id>urn:sha1:cef812bd958d5037224aebe3721f3ffc9c80965e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor: improve `error-index-generator` dependency</title>
<updated>2023-02-26T07:13:06+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-02-25T09:59:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=53044158eff0d64673a6100f701c57b484232aca'/>
<id>urn:sha1:53044158eff0d64673a6100f701c57b484232aca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor: statically guarantee that current error codes are documented</title>
<updated>2023-02-26T07:12:36+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-02-25T07:14:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=90677edcba063ee83316ef109e0fe54116015575'/>
<id>urn:sha1:90677edcba063ee83316ef109e0fe54116015575</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: fix issue in  macro</title>
<updated>2023-02-25T09:12:30+00:00</updated>
<author>
<name>Ezra Shaw</name>
<email>ezrasure@outlook.com</email>
</author>
<published>2023-02-25T09:12:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b51e9fde8e86e6a082922bc7db2f673ed981836'/>
<id>urn:sha1:3b51e9fde8e86e6a082922bc7db2f673ed981836</id>
<content type='text'>
</content>
</entry>
</feed>
