]> git.lizzy.rs Git - rust.git/commit
Handle `Err` in `ast::LitKind::to_token_lit`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 24 Aug 2022 23:41:48 +0000 (09:41 +1000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 25 Aug 2022 00:50:39 +0000 (10:50 +1000)
commitb997af95fce1f1295f3b90ae33c575b6ded4f914
tree0cf5d7fd9c9404696d17e942ef69e5e30cb30061
parenta1bea1551b8312b6abfbbf7d49bafac2e6ce8ee4
Handle `Err` in `ast::LitKind::to_token_lit`.

Fixes #100948.
compiler/rustc_ast/src/util/literal.rs
src/test/ui/unpretty/bad-literal.rs [new file with mode: 0644]
src/test/ui/unpretty/bad-literal.stderr [new file with mode: 0644]
src/test/ui/unpretty/bad-literal.stdout [new file with mode: 0644]