Skip to content

Commit 60a18b7

Browse files
committed
Auto merge of rust-lang#11449 - blyxyas:book-write_tests, r=flip1995
Should be final writing_tests commit Fixes that book `FIXME`. r? `@flip1995` changelog: none
2 parents 3de0f19 + 92d47db commit 60a18b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

book/src/development/writing_tests.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ As our `foo_functions` lint is tested, the output would look something like this
9494

9595
```
9696
failures:
97-
9897
---- compile_test stdout ----
9998
normalized stderr:
10099
error: function called "foo"
@@ -104,19 +103,16 @@ LL | pub fn foo(&self) {}
104103
| ^^^
105104
|
106105
= note: `-D clippy::foo-functions` implied by `-D warnings`
107-
108106
error: function called "foo"
109107
--> $DIR/foo_functions.rs:13:8
110108
|
111109
LL | fn foo(&self) {}
112110
| ^^^
113-
114111
error: function called "foo"
115112
--> $DIR/foo_functions.rs:19:4
116113
|
117114
LL | fn foo() {}
118115
| ^^^
119-
120116
error: aborting due to 3 previous errors
121117
```
122118

@@ -202,8 +198,7 @@ Should `span_lint_and_sugg` be used to generate a suggestion, but not all
202198
suggestions lead to valid code, you can use the `//@no-rustfix` comment on top
203199
of the test file, to not run `rustfix` on that file.
204200

205-
We'll talk about suggestions more in depth in a later chapter.
206-
<!-- FIXME: (blyxyas) Link to "Emitting lints" when that gets merged -->
201+
We'll talk about suggestions more in depth in a [later chapter](emitting_lints.md).
207202

208203
Use `cargo bless` to automatically generate the `.fixed` file after running
209204
the tests.

0 commit comments

Comments
 (0)