]> git.lizzy.rs Git - rust.git/commit
Add `StrStyle` to `ast::LitKind::ByteStr`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 29 Nov 2022 02:35:44 +0000 (13:35 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 1 Dec 2022 23:38:58 +0000 (10:38 +1100)
commita7f35c42d474f893c56b6e0f7df3f8bb965f2650
treefd74e94ab25afc4fbffdf40ffb3836b6911606d4
parente658144586e0fe4f77a7dadf7c80185fd0b71279
Add `StrStyle` to `ast::LitKind::ByteStr`.

This is required to distinguish between cooked and raw byte string
literals in an `ast::LitKind`, without referring to an adjacent
`token::Lit`. It's a prerequisite for the next commit.
18 files changed:
compiler/rustc_ast/src/ast.rs
compiler/rustc_ast/src/util/literal.rs
compiler/rustc_ast_lowering/src/expr.rs
compiler/rustc_ast_pretty/src/pprust/state/expr.rs
compiler/rustc_builtin_macros/src/concat_bytes.rs
compiler/rustc_expand/src/base.rs
compiler/rustc_expand/src/build.rs
compiler/rustc_expand/src/proc_macro_server.rs
compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs
compiler/rustc_hir_typeck/src/pat.rs
compiler/rustc_mir_build/src/build/expr/as_constant.rs
compiler/rustc_mir_build/src/thir/constant.rs
src/tools/clippy/clippy_lints/src/invalid_utf8_in_unchecked.rs
src/tools/clippy/clippy_lints/src/large_include_file.rs
src/tools/clippy/clippy_lints/src/matches/match_same_arms.rs
src/tools/clippy/clippy_lints/src/utils/author.rs
src/tools/clippy/clippy_utils/src/check_proc_macro.rs
src/tools/clippy/clippy_utils/src/consts.rs