<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc/src/boxed/thin.rs, branch 1.82.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.82.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.82.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-07-28T22:26:52+00:00</updated>
<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>Convert some module-level `//` and `///` comments to `//!`.</title>
<updated>2024-06-19T23:23:18+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-06-19T19:02:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=09006d6a88019b80f7158f1a5f754a358751d7f1'/>
<id>urn:sha1:09006d6a88019b80f7158f1a5f754a358751d7f1</id>
<content type='text'>
This makes their intent and expected location clearer. We see some
examples where these comments were not clearly separate from `use`
declarations, which made it hard to understand what the comment is
describing.
</content>
</entry>
<entry>
<title>Do not allocate for ZST ThinBox attempt 2 (using const_allocate)</title>
<updated>2024-04-05T18:55:00+00:00</updated>
<author>
<name>Stepan Koltsov</name>
<email>stepan.koltsov@gmail.com</email>
</author>
<published>2024-03-29T03:24:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f539134e2098bcc02d5c6228034974c67196adab'/>
<id>urn:sha1:f539134e2098bcc02d5c6228034974c67196adab</id>
<content type='text'>
There's PR https://github.com/rust-lang/rust/pull/123184
which avoids allocation for ZST ThinBox.

That PR has an issue with unsoundness with misuse of `MaybeUninit`
(see comments in that PR).

This PR is much simpler implementation which does not have this
problem, but it uses `const_allocate` feature.
</content>
</entry>
<entry>
<title>library: use `addr_of!`</title>
<updated>2024-02-24T13:02:17+00:00</updated>
<author>
<name>Pavel Grigorenko</name>
<email>grigorenkopv@ya.ru</email>
</author>
<published>2024-02-24T13:02:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff187a92d84f352670a9a63e8519eac114456d38'/>
<id>urn:sha1:ff187a92d84f352670a9a63e8519eac114456d38</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #110483 - tleibert:thin-box-try-new, r=dtolnay</title>
<updated>2024-02-11T22:19:07+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-02-11T22:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=251a09e151d9a522737913a1c5244e9b6770e476'/>
<id>urn:sha1:251a09e151d9a522737913a1c5244e9b6770e476</id>
<content type='text'>
Create try_new function for ThinBox

The `allocator_api` feature has proven very useful in my work in the FreeBSD kernel. I've found a few places where a `ThinBox` #92791 would be useful, but it must be able to be fallibly allocated for it to be used in the kernel.

This PR proposes a change to add such a constructor for ThinBox.

ACP: https://github.com/rust-lang/libs-team/issues/213
</content>
</entry>
<entry>
<title>Address ThinBox::try_new PR review</title>
<updated>2024-02-11T19:28:01+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2024-02-11T19:15:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ea6944a065bdc64855c221f8e2fd969df4d21c6d'/>
<id>urn:sha1:ea6944a065bdc64855c221f8e2fd969df4d21c6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove no-longer-needed `allow(dead_code)` from the standard library</title>
<updated>2024-01-18T18:14:42+00:00</updated>
<author>
<name>Jake Goulding</name>
<email>jake.goulding@gmail.com</email>
</author>
<published>2024-01-18T18:14:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fb7762b1c51d67a56324b92fd79c85b33d5d1d3b'/>
<id>urn:sha1:fb7762b1c51d67a56324b92fd79c85b33d5d1d3b</id>
<content type='text'>
`repr(transparent)` now silences the lint.
</content>
</entry>
<entry>
<title>Adjust library tests for unused_tuple_struct_fields -&gt; dead_code</title>
<updated>2024-01-02T20:34:37+00:00</updated>
<author>
<name>Jake Goulding</name>
<email>jake.goulding@gmail.com</email>
</author>
<published>2023-12-27T23:03:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5772818dc8f4c5a0fec1f5b35b33e85764dcd4f4'/>
<id>urn:sha1:5772818dc8f4c5a0fec1f5b35b33e85764dcd4f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Address unused tuple struct fields in the standard library</title>
<updated>2023-11-28T17:00:54+00:00</updated>
<author>
<name>Jake Goulding</name>
<email>jake.goulding@gmail.com</email>
</author>
<published>2023-11-25T20:45:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=115eac03bbd2a4b8b301c3bc627bd0f2c1235525'/>
<id>urn:sha1:115eac03bbd2a4b8b301c3bc627bd0f2c1235525</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More `IS_ZST` in `library`</title>
<updated>2023-04-21T23:29:27+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2023-04-21T03:15:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=56613f8c382351898f9267bac8e8324f118eb79d'/>
<id>urn:sha1:56613f8c382351898f9267bac8e8324f118eb79d</id>
<content type='text'>
I noticed that `post_inc_start` and `pre_dec_end` were doing this check in different ways

https://github.com/rust-lang/rust/blob/d19b64fb54391b64ce99981577c67c93ac2a9ffa/library/core/src/slice/iter/macros.rs#L76-L93

so started making this PR, then added a few more I found since I was already making changes anyway.
</content>
</entry>
</feed>
