about summary refs log tree commit diff
diff options
context:
space:
mode:
authorblyxyas <blyxyas@gmail.com>2023-08-18 20:02:40 +0200
committerblyxyas <blyxyas@gmail.com>2023-09-02 12:26:13 +0200
commit92d47dbb2993d9ce7c6f83a387b1674535c76bb3 (patch)
tree08ac04483b7dc6fc027cb0505a9f39fc5bf35bcb
parent3cf1087dcd980a47a1bf685ac4d5f6546b7fd7b3 (diff)
downloadrust-92d47dbb2993d9ce7c6f83a387b1674535c76bb3.tar.gz
rust-92d47dbb2993d9ce7c6f83a387b1674535c76bb3.zip
Add `emitting_lints` link to `Writing tests` and remove that `FIXME`
-rw-r--r--book/src/development/writing_tests.md7
1 files changed, 1 insertions, 6 deletions
diff --git a/book/src/development/writing_tests.md b/book/src/development/writing_tests.md
index 7cb530a3bb9..8937e0d8e94 100644
--- a/book/src/development/writing_tests.md
+++ b/book/src/development/writing_tests.md
@@ -94,7 +94,6 @@ As our `foo_functions` lint is tested, the output would look something like this
 
 ```
 failures:
-
 ---- compile_test stdout ----
 normalized stderr:
 error: function called "foo"
@@ -104,19 +103,16 @@ LL |     pub fn foo(&self) {}
    |            ^^^
    |
    = note: `-D clippy::foo-functions` implied by `-D warnings`
-
 error: function called "foo"
   --> $DIR/foo_functions.rs:13:8
    |
 LL |     fn foo(&self) {}
    |        ^^^
-
 error: function called "foo"
   --> $DIR/foo_functions.rs:19:4
    |
 LL | fn foo() {}
    |    ^^^
-
 error: aborting due to 3 previous errors
 ```
 
@@ -202,8 +198,7 @@ Should `span_lint_and_sugg` be used to generate a suggestion, but not all
 suggestions lead to valid code, you can use the `//@no-rustfix` comment on top
 of the test file, to not run `rustfix` on that file.
 
-We'll talk about suggestions more in depth in a later chapter.
-<!-- FIXME: (blyxyas) Link to "Emitting lints" when that gets merged -->
+We'll talk about suggestions more in depth in a [later chapter](emitting_lints.md).
 
 Use `cargo bless` to automatically generate the `.fixed` file after running
 the tests.