commit | 1a851da73cdeb02e2c62d301aa6bd98e515a50da | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Sat May 04 16:08:48 2024 +0000 |
committer | bors <bors@rust-lang.org> | Sat May 04 16:08:48 2024 +0000 |
tree | 87958b43e7902ba38b5df6b1fce451211a1acd43 | |
parent | d7ea27808deb5e10a0f7384e339e4e6165e33398 [diff] | |
parent | f43e3e2023f28d7e7a9f870612c6f2ef867a2acb [diff] |
Auto merge of #124704 - Urgau:fix-ignored-tests-fmt, r=GuillaumeGomez Fix ignored tests for formatting This PR fixes the ignored rules in `rustfmt.toml` that were changed in https://github.com/rust-lang/rust/pull/124613 to allow formatting `rmake.rs` but ended up allowing formatting every Rust files in `tests/`. The fix is a bit involved since we need to workaround a [`.gitignore` pattern limitation](https://git-scm.com/docs/gitignore#_pattern_format): > An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is excluded. Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined. Workaround using https://stackoverflow.com/a/5534865 I tested the fix by changing the formatting in an `rmake.rs` and UI test, and verifying that only the `rmake.rs` files were formatted. Fixes https://github.com/rust-lang/rust/pull/124613#issuecomment-2094094670 cc `@GuillaumeGomez` r? `@onur-ozkan`
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 integrate 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 media guide.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.