From cbbec3b8a6996f623e6d17d8ac05916208a6d697 Mon Sep 17 00:00:00 2001 From: Michael Murphy Date: Mon, 14 Jun 2021 19:44:34 +0100 Subject: [PATCH 1/3] Updating outdated links Updating the links to the docs and source code for `ast.rs`. Seems like it was moved to a new crate at some point. --- Contributing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contributing.md b/Contributing.md index 131f38dd06a..b4c94f97e0c 100644 --- a/Contributing.md +++ b/Contributing.md @@ -138,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://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_ast/ast.rs.html) - 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 From 31b789d0ba7195cafe4f2aaa12e5e4dee4dbf1f4 Mon Sep 17 00:00:00 2001 From: murchu27 Date: Mon, 14 Jun 2021 20:38:39 +0100 Subject: [PATCH 2/3] Updating more outdated links This time, the links to the `fmt-rfcs` repository, which is now owned by `rust-dev-tools` (although GitHub was redirecting anyway). --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a97d31bab9..0f178759648 100644 --- a/README.md +++ b/README.md @@ -230,5 +230,5 @@ Apache License (Version 2.0). See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) for details. [rust]: https://github.com/rust-lang/rust -[fmt rfcs]: https://github.com/rust-lang-nursery/fmt-rfcs -[style guide]: https://github.com/rust-lang-nursery/fmt-rfcs/blob/master/guide/guide.md +[fmt rfcs]: https://github.com/rust-dev-tools/fmt-rfcs +[style guide]: https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md From 15dd92cd0fb8714aa95faf9a85f8f0c2ea200f26 Mon Sep 17 00:00:00 2001 From: Michael Murphy Date: Tue, 15 Jun 2021 07:23:04 +0100 Subject: [PATCH 3/3] Update Contributing.md Co-authored-by: Caleb Cartwright --- Contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contributing.md b/Contributing.md index b4c94f97e0c..87c6b64f415 100644 --- a/Contributing.md +++ b/Contributing.md @@ -138,7 +138,7 @@ 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://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_ast/ast.rs.html) - and/or the +[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