commit | f2fcfe82af65dd7a2fbc20ca082e1a6794918d0e | [log] [tgz] |
---|---|---|
author | Zalathar <Zalathar@users.noreply.github.com> | Wed Mar 13 11:53:36 2024 +1100 |
committer | Zalathar <Zalathar@users.noreply.github.com> | Wed Mar 13 13:57:39 2024 +1100 |
tree | 70452cb956d0eff463c2eed045b9b926a660e665 | |
parent | e61dcc7a0ac33ef054d76453307124233edcf545 [diff] |
Various style improvements to `rustc_lint::levels` - Replace some nested if-let with let-chains - Tweak a match pattern to allow shorthand struct syntax - Fuse an `is_empty` check with getting the last element - Merge some common code that emits `MalformedAttribute` and continues - Format `"{tool}::{name}"` in a way that's consistent with other match arms - Replace if-let-else-panic with let-else - Use early-exit to flatten a method body
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Note: this README is for users rather than contributors. If you wish to contribute to the compiler, you should read CONTRIBUTING.md instead.
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 media guide.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.