| commit | 1f2d7db11215fcbf34f82a2a5f910e09edf1176f | [log] [tgz] |
|---|---|---|
| author | Stuart Cook <Zalathar@users.noreply.github.com> | Thu Nov 13 11:57:09 2025 +1100 |
| committer | GitHub <noreply@github.com> | Thu Nov 13 11:57:09 2025 +1100 |
| tree | b60b195d0c24b4c1159cc34d464c1e75b10db64b | |
| parent | 20f111f0d8d3abbb32b3f6c7a58d1c0659f335ba [diff] | |
| parent | f5f91cc4a740dace9a882d35d5e28dc6d4aefe56 [diff] |
Rollup merge of #148846 - folkertdev:tail-call-rpit, r=WaffleLapkin add a test for combining RPIT with explicit tail calls tracking issue: https://github.com/rust-lang/rust/issues/112788 fixes https://github.com/rust-lang/rust/issues/139305 Combining return position impl trait (RPIT) with guaranteed tail calls does not currently work, but at least it does not ICE any more. Using RPIT probably should work, see also https://github.com/rust-lang/rust/issues/144953. The snippet in the issue is not valid for a variety of reasons, and based on the assert that got triggered the ICE was just any `-> impl Trait` at all, so I've made a minimal example using RPIT. r? `@WaffleLapkin`
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the Rust language trademark policy.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.