mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
b4736b4d35
This change simply moves the `rust` macro definition directly into the attributes for `*.rs` files. git commands that recurse from the rust toplevel tree into submodules produce errors in clippy due to the fact that: "Custom macro attributes can be defined only in top-level gitattributes files" For example, from the toplevel `rust` directory in a rustc development build, try: $ git grep "search string" --recurse-submodules Embedded within the actual results is the error message: [attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4 not allowed: src/tools/clippy/.gitattributes:1
4 lines
118 B
Plaintext
4 lines
118 B
Plaintext
* text=auto eol=lf
|
|
*.rs text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
|
|
*.fixed linguist-language=Rust
|