about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-08-26 15:56:26 -0700
committerGitHub <noreply@github.com>2022-08-26 15:56:26 -0700
commit54744601bfae6d3e09ea8c958beab8d58e850434 (patch)
tree55c483d009372461096b597086e2606c076cc1a4 /library/std/src/sys/unix/process/process_unix.rs
parent389dda149c0524c7d5b8d2020ace3cbc97bda60b (diff)
parent69715c903312c3e734bfd9098a5e8773f2e19d01 (diff)
downloadrust-54744601bfae6d3e09ea8c958beab8d58e850434.tar.gz
rust-54744601bfae6d3e09ea8c958beab8d58e850434.zip
Rollup merge of #100817 - vincenzopalazzo:macros/bool_spelling_sugg, r=davidtwco
sugg: suggest the usage of boolean value when there is a typo in the keyword

Fixes https://github.com/rust-lang/rust/issues/100686

This adds a new suggestion when there is a well-known typo

With the following program

```rust
fn main() {
    let x = True;
}
```

Now we have the following suggestion

```
error[E0425]: cannot find value `True` in this scope
 --> test.rs:2:13
  |
2 |     let x = True;
  |             ^^^^ not found in this scope
  |
help: you may want to use a bool value instead
  |
2 |     let x = true;
  |             ~~~~

error: aborting due to previous error
```

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions