<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_incremental/src/errors.rs, branch cargo_update</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=cargo_update</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=cargo_update'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-04-16T23:50:52+00:00</updated>
<entry>
<title>Replace infallible `name_or_empty` methods with fallible `name` methods.</title>
<updated>2025-04-16T23:50:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-04-10T04:33:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2fef0a30ae6b2687dfb286cb544d2a542f7e2335'/>
<id>urn:sha1:2fef0a30ae6b2687dfb286cb544d2a542f7e2335</id>
<content type='text'>
I'm removing empty identifiers everywhere, because in practice they
always mean "no identifier" rather than "empty identifier". (An empty
identifier is impossible.) It's better to use `Option` to mean "no
identifier" because you then can't forget about the "no identifier"
possibility.

Some specifics:
- When testing an attribute for a single name, the commit uses the
  `has_name` method.
- When testing an attribute for multiple names, the commit uses the new
  `has_any_name` method.
- When using `match` on an attribute, the match arms now have `Some` on
  them.

In the tests, we now avoid printing empty identifiers by not printing
the identifier in the `error:` line at all, instead letting the carets
point out the problem.
</content>
</entry>
<entry>
<title>Re-export more `rustc_span::symbol` things from `rustc_span`.</title>
<updated>2024-12-18T02:38:53+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-12-12T23:29:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2620eb42d72d24baa1ca1056a769862b92c85f7f'/>
<id>urn:sha1:2620eb42d72d24baa1ca1056a769862b92c85f7f</id>
<content type='text'>
`rustc_span::symbol` defines some things that are re-exported from
`rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some
closely related things such as `Ident` and `kw`. So you can do `use
rustc_span::{Symbol, sym}` but you have to do `use
rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good
reason.

This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`,
and changes many `rustc_span::symbol::` qualifiers in `compiler/` to
`rustc_span::`. This is a 200+ net line of code reduction, mostly
because many files with two `use rustc_span` items can be reduced to
one.
</content>
</entry>
<entry>
<title>Add `warn(unreachable_pub)` to `rustc_incremental`.</title>
<updated>2024-08-27T04:30:20+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-08-27T04:30:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=37becf7bdcff5037cbb214277eb74ef17d8527f0'/>
<id>urn:sha1:37becf7bdcff5037cbb214277eb74ef17d8527f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removes dead code from the compiler</title>
<updated>2024-08-25T05:41:39+00:00</updated>
<author>
<name>mu001999</name>
<email>mu001999@outlook.com</email>
</author>
<published>2024-08-08T00:17:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7f11b6913eb1549847be2173a20d08f3cbf46ff'/>
<id>urn:sha1:e7f11b6913eb1549847be2173a20d08f3cbf46ff</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>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>Add a footer in FileEncoder and check for it in MemDecoder</title>
<updated>2024-05-22T00:12:29+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2024-05-04T01:17:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=95150d72465db491f4b04b73545e106462bd003b'/>
<id>urn:sha1:95150d72465db491f4b04b73545e106462bd003b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unused LoadResult::DecodeIncrCache variant</title>
<updated>2023-11-04T20:16:03+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2023-11-04T20:16:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a3b964b9ea362b42da05b8b69a5be4a6a2cca9a7'/>
<id>urn:sha1:a3b964b9ea362b42da05b8b69a5be4a6a2cca9a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove cgu_reuse_tracker from Session</title>
<updated>2023-10-09T18:39:41+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2023-09-19T11:23:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e9fa2ca6add1db7f77c90bdc06210be694ed2571'/>
<id>urn:sha1:e9fa2ca6add1db7f77c90bdc06210be694ed2571</id>
<content type='text'>
This removes a bit of global mutable state
</content>
</entry>
<entry>
<title>incremental: migrate diagnostics</title>
<updated>2023-01-30T17:11:35+00:00</updated>
<author>
<name>David Wood</name>
<email>david.wood@huawei.com</email>
</author>
<published>2022-09-26T14:42:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2ff46641a92c27a32db3e0dc94ae86295e6c3277'/>
<id>urn:sha1:2ff46641a92c27a32db3e0dc94ae86295e6c3277</id>
<content type='text'>
Migrate the `rustc_incremental` crate's diagnostics to translatable
diagnostic structs.

Signed-off-by: David Wood &lt;david.wood@huawei.com&gt;
</content>
</entry>
</feed>
