1
Fork 0
Empowering everyone to build reliable and efficient software. Gabriel's commits. https://www.rust-lang.org/
Find a file
Matthias Krüger ec6bdda983
Rollup merge of #139880 - compiler-errors:rpitit-nameless, r=nnethercote
Don't compute name of associated item if it's an RPITIT

Use `Option::then` in favor of `Option::then_some` to not compute `AssocItem::name` if it fails the condition. Alternatively, I'd be open to changing this just to an `if`.

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

r? ```@nnethercote```
2025-04-16 13:45:30 +02:00
.github Use rust-cache to speed-up citool compilation 2025-04-15 10:04:25 +02:00
compiler Rollup merge of #139880 - compiler-errors:rpitit-nameless, r=nnethercote 2025-04-16 13:45:30 +02:00
library Add warning comment to Take::get_ref and Chain::get_ref 2025-04-15 10:54:08 -07:00
LICENSES
src Rollup merge of #139867 - WaffleLapkin:tidypaper, r=jieyouxu 2025-04-16 13:45:29 +02:00
tests Rollup merge of #139880 - compiler-errors:rpitit-nameless, r=nnethercote 2025-04-16 13:45:30 +02:00
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.ignore
.mailmap Add myself to mailmap 2025-04-14 14:27:15 +01:00
bootstrap.example.toml create new option build.compiletest-use-stage0-libtest 2025-04-05 14:22:08 +03:00
Cargo.lock Rollup merge of #139813 - RalfJung:miri-sync, r=RalfJung 2025-04-14 21:55:41 +02:00
Cargo.toml
CODE_OF_CONDUCT.md
configure
CONTRIBUTING.md
COPYRIGHT
INSTALL.md
LICENSE-APACHE
license-metadata.json
LICENSE-MIT
README.md
RELEASES.md
REUSE.toml
rust-bors.toml
rustfmt.toml rustfmt does not support use closures yet 2025-04-07 16:53:11 -03:00
triagebot.toml Rollup merge of #139687 - spastorino:add-spastorino-to-vacation, r=Urgau 2025-04-11 21:21:02 +02:00
x
x.ps1
x.py

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

Why Rust?

  • 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).

Quick Start

Read "Installation" from The Book.

Installing from Source

If you really want to install from source (though this is not recommended), see INSTALL.md.

Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

Contributing

See CONTRIBUTING.md.

License

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.

Trademark

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.