]> git.lizzy.rs Git - rust.git/blobdiff - Contributing.md
chore: disable clippy::matches_like_macro lint
[rust.git] / Contributing.md
index 1cf6a86e54696327f0604e6faa1a452791b14871..a108195beb9a6d16996a85395cebd607fa0b8c2f 100644 (file)
@@ -38,7 +38,7 @@ colourised diff will be printed so that the offending line(s) can quickly be
 identified.
 
 Without explicit settings, the tests will be run using rustfmt's default
-configuration. It is possible to run a test using non-default settings in several 
+configuration. It is possible to run a test using non-default settings in several
 ways. Firstly, you can include configuration parameters in comments at the top
 of the file. For example: to use 3 spaces per tab, start your test with
 `// rustfmt-tab_spaces: 3`. Just remember that the comment is part of the input,
@@ -115,6 +115,8 @@ When the next major release is done, the code block of the previous formatting
 can be deleted, e.g., the first block in the example above when going from `1.x`
 to `2.x`.
 
+| Note: Only formatting changes with default options need to be gated. |
+| --- |
 
 ### A quick tour of Rustfmt
 
@@ -136,8 +138,8 @@ format.
 
 There are different nodes for every kind of item and expression in Rust. For
 more details see the source code in the compiler -
-[ast.rs](https://dxr.mozilla.org/rust/source/src/libsyntax/ast.rs) - and/or the
-[docs](https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ast/index.html).
+[ast.rs](https://github.com/rust-lang/rust/blob/master/compiler/rustc_ast/src/ast.rs) - and/or the
+[docs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/ast/index.html).
 
 Many nodes in the AST (but not all, annoyingly) have a `Span`. A `Span` is a
 range in the source code, it can easily be converted to a snippet of source