Skip to content

Commit 1bab41d

Browse files
Rollup merge of rust-lang#96781 - koic:fix_an_incorrect_link_in_the_unstable_book, r=ehuss
Fix an incorrect link in The Unstable Book https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs returns page not found. The following is the background of the move. First rust-lang#74862 moves from src/librustc_session/lint/builtin.rs to compiler/rustc_session/src/lint/builtin.rs. Then rust-lang@23018a5 moves from compiler/rustc_session/src/lint/builtin.rs to compiler/rustc_lint_defs/src/builtin.rs. So, the current correct link is https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs. This PR fixes a broken link on the following page: https://doc.rust-lang.org/beta/unstable-book/language-features/plugin.html
2 parents 633cd5e + d6c64f4 commit 1bab41d

File tree

1 file changed

+1
-1
lines changed
  • src/doc/unstable-book/src/language-features

1 file changed

+1
-1
lines changed

src/doc/unstable-book/src/language-features/plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The components of a lint plugin are:
102102

103103
Lint passes are syntax traversals, but they run at a late stage of compilation
104104
where type information is available. `rustc`'s [built-in
105-
lints](https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs)
105+
lints](https://github.com/rust-lang/rust/blob/master/compiler/rustc_lint_defs/src/builtin.rs)
106106
mostly use the same infrastructure as lint plugins, and provide examples of how
107107
to access type information.
108108

0 commit comments

Comments
 (0)