diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-30 19:55:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-30 19:55:53 +0200 |
| commit | 6ee667374eb66953d76358e0b1663a2cf5f26cd8 (patch) | |
| tree | 2392b97aad81c4ac191545e237e68e52eab412ce /compiler | |
| parent | b1403d6b7880db79529cd3adc5ffc3b0b10d6f6a (diff) | |
| parent | 15d3ea504a6340ad15d2203e7bbc7dd95ebd8a09 (diff) | |
| download | rust-6ee667374eb66953d76358e0b1663a2cf5f26cd8.tar.gz rust-6ee667374eb66953d76358e0b1663a2cf5f26cd8.zip | |
Rollup merge of #98677 - lyming2007:issue-98492-fix, r=lcnr
For diagnostic information of Boolean, remind it as use the type: 'bool' Fixes #98492. It helps programmers coming from other languages modified: compiler/rustc_resolve/src/late/diagnostics.rs
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index 2b4e64bddc2..03cb1cfcfc9 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -1503,6 +1503,8 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> { Some(match name { "byte" => sym::u8, // In Java, bytes are signed, but in practice one almost always wants unsigned bytes. "short" => sym::i16, + "Bool" => sym::bool, + "Boolean" => sym::bool, "boolean" => sym::bool, "int" => sym::i32, "long" => sym::i64, |
