<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-04T09:52:21+00:00</updated>
<entry>
<title>replace version placeholder</title>
<updated>2025-08-04T09:52:21+00:00</updated>
<author>
<name>Boxy</name>
<email>rust@boxyuwu.dev</email>
</author>
<published>2025-08-04T09:52:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3c822d038a785fa95124305ee154e88d314b78e7'/>
<id>urn:sha1:3c822d038a785fa95124305ee154e88d314b78e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #144658 - jhpratt:rollup-jdzhz27, r=jhpratt</title>
<updated>2025-07-29T23:53:04+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-29T23:53:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8bb4e8a126cf38cff70cea488a3a423a5321954'/>
<id>urn:sha1:c8bb4e8a126cf38cff70cea488a3a423a5321954</id>
<content type='text'>
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#144034 (tests: Test line number in debuginfo for diverging function calls)
 - rust-lang/rust#144510 (Fix Ord, Eq and Hash implementation of panic::Location)
 - rust-lang/rust#144583 (Enable T-compiler backport nomination)
 - rust-lang/rust#144586 (Update wasi-sdk to 27.0 in CI)
 - rust-lang/rust#144605 (Resolve: cachify `ExternPreludeEntry.binding` through a `Cell`)
 - rust-lang/rust#144632 (Update some tests for LLVM 21)
 - rust-lang/rust#144639 (Update rustc-perf submodule)
 - rust-lang/rust#144640 (Add support for the m68k architecture in 'object_architecture')

r? `@ghost`
`@rustbot` modify labels: rollup
</content>
</entry>
<entry>
<title>Rollup merge of #144510 - orlp:fix-location-ord, r=ibraheemdev</title>
<updated>2025-07-29T22:55:18+00:00</updated>
<author>
<name>Jacob Pratt</name>
<email>jacob@jhpratt.dev</email>
</author>
<published>2025-07-29T22:55:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=48dfddd39e329bd72fa566a0f1e992c76b263386'/>
<id>urn:sha1:48dfddd39e329bd72fa566a0f1e992c76b263386</id>
<content type='text'>
Fix Ord, Eq and Hash implementation of panic::Location

Fixes https://github.com/rust-lang/rust/issues/144486.

Now properly compares/hashes the filename rather than the pointer to the string.
</content>
</entry>
<entry>
<title>Auto merge of #144393 - heiher:str-contains-lsx, r=tgross35</title>
<updated>2025-07-29T20:44:32+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-29T20:44:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ba7e63b63871a429533c189adbfb1d9a6337e000'/>
<id>urn:sha1:ba7e63b63871a429533c189adbfb1d9a6337e000</id>
<content type='text'>
LoongArch64 LSX fast-path for `str.contains(&amp;str)`

Benchmark results with LLVM 21 on LA664:

```
OLD:
test bench_is_contained_in ... bench:          43.63 ns/iter (+/- 0.04)

NEW:
test bench_is_contained_in ... bench:          12.81 ns/iter (+/- 0.01)
```
</content>
</entry>
<entry>
<title>Fix Ord, Eq and Hash implementation of panic::Location</title>
<updated>2025-07-29T20:15:44+00:00</updated>
<author>
<name>Orson Peters</name>
<email>orsonpeters@gmail.com</email>
</author>
<published>2025-07-26T18:13:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05da623016f7bfed812261f2793b4b589631a6b0'/>
<id>urn:sha1:05da623016f7bfed812261f2793b4b589631a6b0</id>
<content type='text'>
Faster equality compare

Add tests

Add missing files for tests
</content>
</entry>
<entry>
<title>Rollup merge of #144634 - lucaswerkmeister:patch-1, r=lqd</title>
<updated>2025-07-29T13:50:38+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-07-29T13:50:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7088bf5cc6f85afe9b5f688bc5de5512c0a10a82'/>
<id>urn:sha1:7088bf5cc6f85afe9b5f688bc5de5512c0a10a82</id>
<content type='text'>
Fix typo in `DropGuard` doc

Follows-up rust-lang/rust#144236 (I happened to see the typo yesterday but didn’t think it should delay the PR’s merge so I kept quiet, sorryyyyy).
</content>
</entry>
<entry>
<title>LoongArch64 LSX fast-path for `str.contains(&amp;str)`</title>
<updated>2025-07-29T13:38:37+00:00</updated>
<author>
<name>WANG Rui</name>
<email>wangrui@loongson.cn</email>
</author>
<published>2025-06-24T12:19:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1ceacf55a0e207c08bbedfea422c0842a4983e3d'/>
<id>urn:sha1:1ceacf55a0e207c08bbedfea422c0842a4983e3d</id>
<content type='text'>
Benchmark results with LLVM 21 on LA664:

```
OLD:
test bench_is_contained_in ... bench:          43.63 ns/iter (+/- 0.04)

NEW:
test bench_is_contained_in ... bench:          12.81 ns/iter (+/- 0.01)
```
</content>
</entry>
<entry>
<title>Fix typo in `DropGuard` doc</title>
<updated>2025-07-29T11:24:41+00:00</updated>
<author>
<name>Lucas Werkmeister</name>
<email>mail@lucaswerkmeister.de</email>
</author>
<published>2025-07-29T11:24:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de02a32cf1203a9c9efb97a66dac44b7c646bb24'/>
<id>urn:sha1:de02a32cf1203a9c9efb97a66dac44b7c646bb24</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #144167 - zachs18:rangebounds-not-unsized-reason, r=tgross35</title>
<updated>2025-07-29T10:19:48+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-07-29T10:19:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9cba49896c2a7d491c92b7c2e6159adfec369af9'/>
<id>urn:sha1:9cba49896c2a7d491c92b7c2e6159adfec369af9</id>
<content type='text'>
Document why `Range*&lt;&amp;T&gt; as RangeBounds&lt;T&gt;` impls are not `T: ?Sized`, and give an alternative.

`Range*&lt;&amp;T&gt; as RangeBounds&lt;T&gt;` impls have been tried to be relaxed to `T: ?Sized` at least twice:

* https://github.com/rust-lang/rust/pull/61584
* https://github.com/rust-lang/rust/pull/64327

I also was just about to make another PR to do it again until I `./x.py test library/alloc` and rediscovered the type inference regression, then searched around and found the previous PRs. Hence this PR instead so hopefully that doesn't keep happening :stuck_out_tongue:.

These impls cannot be relaxed for two reasons:

1. Type inference regressions: See ``@SimonSapin's`` explanation from a previous PR: https://github.com/rust-lang/rust/pull/61584#issuecomment-499601046
2. It's a breaking change: `impl RangeBounds&lt;MyUnsizedType&gt; for std::ops::Range&lt;&amp;MyUnsizedType&gt;` is allowed after the coherence rebalance ([playground link](https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2024&amp;gist=f704a6fe53bfc33e55b2fc246d895ec2)), and relaxing these impls would conflict with that downstream impl.

This PR adds doc-comments explaining that not having `T: ?Sized` is intentional[^1], and gives an explicit alternative: `(Bound&lt;&amp;T&gt;, Bound&lt;&amp;T&gt;)`.

Technically, the impls for the unstable new `std::range` types could be relaxed, as they are still unstable so the change would not be breaking, but having them be different in this regard seems worse (and the non-iterable `RangeTo/RangeToInclusive` range types are shared between the "new" and "old" so cannot be changed anyway), and then the type inference regression would pop up in whatever edition the new range types stabilize in.

The "see \&lt;link\&gt; for discussion of those issues" is intentionally left as a non-doc comment just for whoever may try to relax these impls again in the future, but if it is preferred to have the link in the docs I can add that.

Closes https://github.com/rust-lang/rust/issues/107196 (as wontfix)
CC https://github.com/rust-lang/rust/issues/64027

[^1]: "intentional" is maybe a bit of strong wording, should it instead say something like "was stabilized without it and it would be breaking to change it now"?
</content>
</entry>
<entry>
<title>Rollup merge of #144582 - usamoi:docs, r=RalfJung</title>
<updated>2025-07-29T06:16:45+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-07-29T06:16:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=95781464e0114ceb388f4a5d3dece46f4551935a'/>
<id>urn:sha1:95781464e0114ceb388f4a5d3dece46f4551935a</id>
<content type='text'>
fix `Atomic*::as_ptr` wording

r? `````@RalfJung`````

cc rust-lang/rust#144072
</content>
</entry>
</feed>
