<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_serialize/src, branch 1.84.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.84.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.84.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-10-16T13:44:16+00:00</updated>
<entry>
<title>Fix explicit_iter_loop in rustc_serialize</title>
<updated>2024-10-16T13:44:16+00:00</updated>
<author>
<name>Michal Piotrowski</name>
<email>practicalrs.com@gmail.com</email>
</author>
<published>2024-10-16T13:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b2b4ad4cc94077eba1331acc534b5e36ae3e2603'/>
<id>urn:sha1:b2b4ad4cc94077eba1331acc534b5e36ae3e2603</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stabilize `const_option`</title>
<updated>2024-10-12T21:07:13+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2024-10-01T21:11:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19f6c17df486c5f70c1000ecada39c62b9c93550'/>
<id>urn:sha1:19f6c17df486c5f70c1000ecada39c62b9c93550</id>
<content type='text'>
This makes the following API stable in const contexts:

    impl&lt;T&gt; Option&lt;T&gt; {
        pub const fn as_mut(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
        pub const fn expect(self, msg: &amp;str) -&gt; T;
        pub const fn unwrap(self) -&gt; T;
        pub const unsafe fn unwrap_unchecked(self) -&gt; T;
        pub const fn take(&amp;mut self) -&gt; Option&lt;T&gt;;
        pub const fn replace(&amp;mut self, value: T) -&gt; Option&lt;T&gt;;
    }

    impl&lt;T&gt; Option&lt;&amp;T&gt; {
        pub const fn copied(self) -&gt; Option&lt;T&gt;
        where T: Copy;
    }

    impl&lt;T&gt; Option&lt;&amp;mut T&gt; {
        pub const fn copied(self) -&gt; Option&lt;T&gt;
        where T: Copy;
    }

    impl&lt;T, E&gt; Option&lt;Result&lt;T, E&gt;&gt; {
        pub const fn transpose(self) -&gt; Result&lt;Option&lt;T&gt;, E&gt;
    }

    impl&lt;T&gt; Option&lt;Option&lt;T&gt;&gt; {
        pub const fn flatten(self) -&gt; Option&lt;T&gt;;
    }

The following functions make use of the unstable
`const_precise_live_drops` feature:

- `expect`
- `unwrap`
- `unwrap_unchecked`
- `transpose`
- `flatten`

Fixes: &lt;https://github.com/rust-lang/rust/issues/67441&gt;
</content>
</entry>
<entry>
<title>Fix needless_lifetimes in rustc_serialize</title>
<updated>2024-10-08T13:17:45+00:00</updated>
<author>
<name>Michal Piotrowski</name>
<email>practicalrs.com@gmail.com</email>
</author>
<published>2024-10-08T13:17:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7ab466697faf64aaeda40d6407c01f6bfff83fdb'/>
<id>urn:sha1:7ab466697faf64aaeda40d6407c01f6bfff83fdb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix used_underscore_binding in rustc_serialize</title>
<updated>2024-10-07T13:02:45+00:00</updated>
<author>
<name>Michal Piotrowski</name>
<email>practicalrs.com@gmail.com</email>
</author>
<published>2024-10-07T13:02:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4085b48dfddd742fa4d46c594ee5662b972ae6de'/>
<id>urn:sha1:4085b48dfddd742fa4d46c594ee5662b972ae6de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #129777 - nnethercote:unreachable_pub-4, r=Urgau</title>
<updated>2024-09-03T01:27:20+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-09-03T01:27:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6199b69c53a8c275ca3cd59647ea0af5ca29aae2'/>
<id>urn:sha1:6199b69c53a8c275ca3cd59647ea0af5ca29aae2</id>
<content type='text'>
Add `unreachable_pub`, round 4

A follow-up to #129732.

r? `@Urgau`
</content>
</entry>
<entry>
<title>Add `warn(unreachable_pub)` to `rustc_serialize`.</title>
<updated>2024-09-02T22:49:54+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-08-30T00:45:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21a37da26840ae34a02246ea9141b28efd6e8ce5'/>
<id>urn:sha1:21a37da26840ae34a02246ea9141b28efd6e8ce5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: Fix typos in 'compiler' (batch 2)</title>
<updated>2024-09-02T05:50:22+00:00</updated>
<author>
<name>Alexander Cyon</name>
<email>alex.cyon@gmail.com</email>
</author>
<published>2024-09-02T05:50:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00de006f22f2304bddabb2d00a13af242ea21c17'/>
<id>urn:sha1:00de006f22f2304bddabb2d00a13af242ea21c17</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>chore: remove duplicate words</title>
<updated>2024-07-02T03:25:31+00:00</updated>
<author>
<name>hattizai</name>
<email>hattizai@gmail.com</email>
</author>
<published>2024-07-02T03:25:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ada9fda7c38b1be39b4e8273ee6af150985df064'/>
<id>urn:sha1:ada9fda7c38b1be39b4e8273ee6af150985df064</id>
<content type='text'>
</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>
</feed>
