]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #91245 - cameron1024:suggest-i32-u32-char-cast, r=nagisa
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 8 Dec 2021 22:18:03 +0000 (23:18 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Dec 2021 22:18:03 +0000 (23:18 +0100)
commit2411cd7c7abd3a4d4aba657961ca1f940e1657bd
treec25a4d21c61974c8014b381375586c81009dd7d2
parente6b883c74f49f32cb5d1cbad3457f2b8805a4a38
parent37ca2eb8c269f48d5a6001394db57ab1c08c4312
Rollup merge of #91245 - cameron1024:suggest-i32-u32-char-cast, r=nagisa

suggest casting between i/u32 and char

As discussed in https://github.com/rust-lang/rust/issues/91063 , this adds a suggestion for converting between i32/u32 <-> char with `as`, and a short explanation for why this is safe
compiler/rustc_typeck/src/check/demand.rs