rust/compiler
Michael Goulet 54744601bf
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>
2022-08-26 15:56:26 -07:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #100978 - nnethercote:fix-100948, r=petrochenkov 2022-08-26 09:51:46 +09:00
rustc_ast_lowering Rollup merge of #100724 - JeanCASPAR:migrate-ast_lowering-to-session-diagnostic, r=davidtwco 2022-08-26 15:56:21 -07:00
rustc_ast_passes Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petrochenkov 2022-08-25 08:50:54 +09:00
rustc_ast_pretty
rustc_attr
rustc_borrowck
rustc_builtin_macros
rustc_codegen_cranelift Rustfmt 2022-08-24 17:06:47 +00:00
rustc_codegen_gcc Rollup merge of #100604 - dtolnay:okorerr, r=m-ou-se 2022-08-26 09:51:44 +09:00
rustc_codegen_llvm
rustc_codegen_ssa
rustc_const_eval Rollup merge of #100738 - nidnogg:diagnostics_migr_const_eval, r=davidtwco 2022-08-26 15:56:23 -07:00
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_error_messages Rollup merge of #100776 - Rejyr:diagnostic-migration-rustc-lint, r=davidtwco 2022-08-26 15:56:25 -07:00
rustc_errors
rustc_expand
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petrochenkov 2022-08-25 08:50:54 +09:00
rustc_interface Rollup merge of #100808 - SkiFire13:migrate_diagnostics_rustc_interface, r=davidtwco 2022-08-25 08:50:58 +09:00
rustc_lexer
rustc_lint Rollup merge of #100776 - Rejyr:diagnostic-migration-rustc-lint, r=davidtwco 2022-08-26 15:56:25 -07:00
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros Auto merge of #100748 - SparrowLii:query_depth, r=cjgillot 2022-08-25 21:27:38 +00:00
rustc_metadata Auto merge of #100436 - jyn514:macro-query-system, r=cjgillot 2022-08-25 05:35:27 +00:00
rustc_middle Auto merge of #100944 - nnethercote:shrink-thir-Expr, r=cjgillot 2022-08-26 10:00:27 +00:00
rustc_mir_build Auto merge of #100944 - nnethercote:shrink-thir-Expr, r=cjgillot 2022-08-26 10:00:27 +00:00
rustc_mir_dataflow Rollup merge of #100744 - 5225225:migrate-rustc-mir-dataflow, r=davidtwco 2022-08-26 15:56:24 -07:00
rustc_mir_transform Rollup merge of #100034 - tmiasko:elaborate-box-derefs, r=oli-obk 2022-08-26 09:51:42 +09:00
rustc_monomorphize
rustc_parse Rollup merge of #100188 - chenyukang:fix-issue-100165, r=estebank 2022-08-25 08:50:56 +09:00
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_impl Auto merge of #100748 - SparrowLii:query_depth, r=cjgillot 2022-08-25 21:27:38 +00:00
rustc_query_system
rustc_resolve Rollup merge of #100817 - vincenzopalazzo:macros/bool_spelling_sugg, r=davidtwco 2022-08-26 15:56:26 -07:00
rustc_save_analysis
rustc_serialize Adding support for rustc_serialize encode and decode for Box and Vec that use a custom allocator 2022-08-25 20:19:49 +00:00
rustc_session Rollup merge of #100738 - nidnogg:diagnostics_migr_const_eval, r=davidtwco 2022-08-26 15:56:23 -07:00
rustc_smir
rustc_span Rollup merge of #100188 - chenyukang:fix-issue-100165, r=estebank 2022-08-25 08:50:56 +09:00
rustc_symbol_mangling
rustc_target Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser 2022-08-26 15:47:26 +00:00
rustc_trait_selection Don't catch overflow when running with cargo doc 2022-08-26 21:02:35 +03:00
rustc_traits
rustc_transmute Rollup merge of #100604 - dtolnay:okorerr, r=m-ou-se 2022-08-26 09:51:44 +09:00
rustc_ty_utils Migrate rustc_ty_utils to use SessionDiagnostic 2022-08-26 14:36:51 +01:00
rustc_type_ir
rustc_typeck Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank 2022-08-26 09:51:40 +09:00