| commit | 6159a44067ebce42b38f062cc7df267a1348e092 | [log] [tgz] |
|---|---|---|
| author | bors <bors@rust-lang.org> | Wed Nov 19 02:23:56 2025 +0000 |
| committer | bors <bors@rust-lang.org> | Wed Nov 19 02:23:56 2025 +0000 |
| tree | c0e34b3d88a2d299ff2af07466c3cde635cf309a | |
| parent | 7c2c3c0ded2de378bfab2f5b55c387c66fbaf353 [diff] | |
| parent | b41c2a28705bb1b5d6c93d67f1eb24af210ea426 [diff] |
Auto merge of #148434 - oli-obk:inherent-const-impl, r=fee1-dead Inherent const impl Some constifications are annoying because we need to repeat `T: Trait` bounds from an impl block on the individual constified `const fn`s as `T: [const] Trait`. We've brainstormed solutions before, and one would be to have separate `const impl` blocks or sth. However the final syntax will look, I decided to just impl this syntax and either have sth nice on nightly to work with or at least move the discussion along. Also interacts with the discussion around `impl const Trait for Type` vs `const impl Trait for Type`, as we may want to use the latter to keep inherent and trait impls in sync (unless we come up with even another scheme). * [ ] rustdoc + tests * [ ] macro stability /regression tests r? `@fee1-dead` cc `@traviscross` `@rust-lang/project-const-traits`
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.