<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_index_macros/src, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-04-12T11:53:07+00:00</updated>
<entry>
<title>In `rustc_mir_tranform`, iterate over index newtypes instead of ints</title>
<updated>2025-04-12T11:53:07+00:00</updated>
<author>
<name>Yotam Ofek</name>
<email>yotam.ofek@gmail.com</email>
</author>
<published>2025-04-11T14:26:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c36e8fcc3c128e31eaa643904c9b8b33d9a5c1a6'/>
<id>urn:sha1:c36e8fcc3c128e31eaa643904c9b8b33d9a5c1a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `unreachable_pub` to `RUSTC_LINT_FLAGS` for `compiler/` crates.</title>
<updated>2025-03-11T02:14:21+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-03-11T00:51:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=55505ab1d3da2ad201303674cb6d3ebeb53e395d'/>
<id>urn:sha1:55505ab1d3da2ad201303674cb6d3ebeb53e395d</id>
<content type='text'>
And fix the new errors in the handful of crates that didn't have a
`#![warn(unreachable_pub)]`.
</content>
</entry>
<entry>
<title>Revert "Use workspace lints for crates in `compiler/` #138084"</title>
<updated>2025-03-10T10:12:47+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2025-03-10T10:12:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=063ef18fdc10cb0eb49e1af855e1a8e807e73eed'/>
<id>urn:sha1:063ef18fdc10cb0eb49e1af855e1a8e807e73eed</id>
<content type='text'>
Revert &lt;https://github.com/rust-lang/rust/pull/138084&gt; to buy time to
consider options that avoids breaking downstream usages of cargo on
distributed `rustc-src` artifacts, where such cargo invocations fail due
to inability to inherit `lints` from workspace root manifest's
`workspace.lints` (this is only valid for the source rust-lang/rust
workspace, but not really the distributed `rustc-src` artifacts).

This breakage was reported in
&lt;https://github.com/rust-lang/rust/issues/138304&gt;.

This reverts commit 48caf81484b50dca5a5cebb614899a3df81ca898, reversing
changes made to c6662879b27f5161e95f39395e3c9513a7b97028.
</content>
</entry>
<entry>
<title>Add `unreachable_pub` to the default lints for `compiler/` crates.</title>
<updated>2025-03-07T21:41:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-03-06T03:25:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9212e31c92aba29fac1c1e05a258abe36dd0afee'/>
<id>urn:sha1:9212e31c92aba29fac1c1e05a258abe36dd0afee</id>
<content type='text'>
And fix the new errors in the handful of crates that didn't have a
`#![warn(unreachable_pub)]`.
</content>
</entry>
<entry>
<title>distinguish overflow and unimplemented in Step::steps_between</title>
<updated>2024-11-21T23:49:55+00:00</updated>
<author>
<name>michirakara</name>
<email>michirakara@gmail.com</email>
</author>
<published>2024-09-26T01:09:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de741d209382c6da125030c52500e57878932bc1'/>
<id>urn:sha1:de741d209382c6da125030c52500e57878932bc1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove usage of specialization from newtype_index!</title>
<updated>2024-06-30T16:42:53+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2023-12-31T18:35:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f23c1fdaeba6a1c8237996ae2efecaf938ba9ef8'/>
<id>urn:sha1:f23c1fdaeba6a1c8237996ae2efecaf938ba9ef8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_span: Minor improvements</title>
<updated>2024-06-16T11:08:25+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2024-06-15T21:53:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=14da80c37279ada8d92d3f900414ebc0d7935e13'/>
<id>urn:sha1:14da80c37279ada8d92d3f900414ebc0d7935e13</id>
<content type='text'>
Introduce `{IndexNewtype,SyntaxContext}::from_u16` for convenience because small indices are sometimes encoded as `u16`.
Use `SpanData::span` instead of `Span::new` where appropriate.
Add a clarifying comment about decoding span parents.
</content>
</entry>
<entry>
<title>Use `tidy` to sort crate attributes for all compiler crates.</title>
<updated>2024-06-12T05:49:10+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-06-12T03:49:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=75b164d836ff82b459dfb05646bf0328dd23d2fd'/>
<id>urn:sha1:75b164d836ff82b459dfb05646bf0328dd23d2fd</id>
<content type='text'>
We already do this for a number of crates, e.g. `rustc_middle`,
`rustc_span`, `rustc_metadata`, `rustc_span`, `rustc_errors`.

For the ones we don't, in many cases the attributes are a mess.
- There is no consistency about order of attribute kinds (e.g.
  `allow`/`deny`/`feature`).
- Within attribute kind groups (e.g. the `feature` attributes),
  sometimes the order is alphabetical, and sometimes there is no
  particular order.
- Sometimes the attributes of a particular kind aren't even grouped
  all together, e.g. there might be a `feature`, then an `allow`, then
  another `feature`.

This commit extends the existing sorting to all compiler crates,
increasing consistency. If any new attribute line is added there is now
only one place it can go -- no need for arbitrary decisions.

Exceptions:
- `rustc_log`, `rustc_next_trait_solver` and `rustc_type_ir_macros`,
  because they have no crate attributes.
- `rustc_codegen_gcc`, because it's quasi-external to rustc (e.g. it's
  ignored in `rustfmt.toml`).
</content>
</entry>
<entry>
<title>rustc_index: Add a `ZERO` constant to index types</title>
<updated>2024-04-03T16:06:22+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2024-04-03T14:49:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b40ea03f8a9a94c294679b9f261b86ded120454f'/>
<id>urn:sha1:b40ea03f8a9a94c294679b9f261b86ded120454f</id>
<content type='text'>
It is commonly used.
</content>
</entry>
<entry>
<title>Remove `SpecOptionPartialEq`</title>
<updated>2024-03-19T16:32:01+00:00</updated>
<author>
<name>clubby789</name>
<email>jamie@hill-daniel.co.uk</email>
</author>
<published>2024-03-05T13:26:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5f254d8b66f995eaeb5316b2e26ca507ebd5d0c4'/>
<id>urn:sha1:5f254d8b66f995eaeb5316b2e26ca507ebd5d0c4</id>
<content type='text'>
</content>
</entry>
</feed>
