diff options
| author | Alex Tokarev <aleksator@gmail.com> | 2020-03-23 11:02:46 +0300 |
|---|---|---|
| committer | Alex Tokarev <aleksator@gmail.com> | 2020-03-23 12:14:45 +0300 |
| commit | b35c30251f441f44a5e3ea9c99ced8d75162897f (patch) | |
| tree | 120e549e91d10981c66aa5f06a972cd132f04762 /src/doc/rustc | |
| parent | 8ff785011be6625e32afceee3a08e5cff7470feb (diff) | |
| download | rust-b35c30251f441f44a5e3ea9c99ced8d75162897f.tar.gz rust-b35c30251f441f44a5e3ea9c99ced8d75162897f.zip | |
Reword unused variable warning
Diffstat (limited to 'src/doc/rustc')
| -rw-r--r-- | src/doc/rustc/src/json.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/json.md b/src/doc/rustc/src/json.md index b7378495163..c46380f1505 100644 --- a/src/doc/rustc/src/json.md +++ b/src/doc/rustc/src/json.md @@ -168,7 +168,7 @@ Diagnostics have the following format: "rendered": null }, { - "message": "consider prefixing with an underscore", + "message": "if this is intentional, prefix it with an underscore", "code": null, "level": "help", "spans": [ @@ -201,7 +201,7 @@ Diagnostics have the following format: /* Optional string of the rendered version of the diagnostic as displayed by rustc. Note that this may be influenced by the `--json` flag. */ - "rendered": "warning: unused variable: `x`\n --> lib.rs:2:9\n |\n2 | let x = 123;\n | ^ help: consider prefixing with an underscore: `_x`\n |\n = note: `#[warn(unused_variables)]` on by default\n\n" + "rendered": "warning: unused variable: `x`\n --> lib.rs:2:9\n |\n2 | let x = 123;\n | ^ help: if this is intentional, prefix it with an underscore: `_x`\n |\n = note: `#[warn(unused_variables)]` on by default\n\n" } ``` |
