about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/util/literal.rs
AgeCommit message (Expand)AuthorLines
2025-07-31Deduplicate `IntTy`/`UintTy`/`FloatTy`.Nicholas Nethercote-3/+3
2025-07-08update to literal-escaper-0.0.5Marijn Schouten-3/+3
2025-06-30Introduce `ByteSymbol`.Nicholas Nethercote-13/+12
2025-06-23update to literal-escaper 0.0.4 for better API without `unreachable` and fast...Marijn Schouten-8/+7
2025-04-04Replace `rustc_lexer/unescape` with `rustc-literal-escaper` crateGuillaume Gomez-1/+1
2025-03-18Revert "Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retriev...Ralf Jung-1/+1
2025-02-10Extract `unescape` from `rustc_lexer` into its own crateGuillaume Gomez-1/+1
2025-02-03tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`Askar Safin-2/+2
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+5
2024-04-30Remove `extern crate tracing` from numerous crates.Nicholas Nethercote-0/+1
2024-03-14Add compiler support for parsing `f16` and `f128`Trevor Gross-0/+2
2024-02-15Add suffixes to `LitError`.Nicholas Nethercote-11/+13
2024-02-15Add `ErrorGuaranteed` to `ast::LitKind::Err`, `token::LitKind::Err`.Nicholas Nethercote-3/+3
2024-02-15Remove `LitError::LexerError`.Nicholas Nethercote-8/+3
2024-01-25Rename the unescaping functions.Nicholas Nethercote-5/+4
2024-01-25Rework `CStrUnit`.Nicholas Nethercote-3/+3
2024-01-25Avoid useless checking in `from_token_lit`.Nicholas Nethercote-62/+21
2024-01-19Pack the u128 in LitKind::IntJosh Stone-1/+1
2024-01-12Detect `NulInCStr` error earlier.Nicholas Nethercote-10/+2
2023-12-13Unify single-char and multi-char `CStrUnit::Char` handling.Nicholas Nethercote-1/+0
2023-12-13Don't rebuild raw strings when unescaping.Nicholas Nethercote-43/+30
2023-05-24Use `Option::is_some_and` and `Result::is_ok_and` in the compilerMaybe Waffle-2/+1
2023-05-02make it semantic errorDeadbeef-0/+2
2023-05-02fix TODO commentsDeadbeef-2/+8
2023-05-02update and add a few testsDeadbeef-2/+2
2023-05-02initial step towards implementing C string literalsDeadbeef-1/+54
2023-01-05Fix `uninlined_format_args` for some compiler cratesnils-3/+3
2023-01-02Print correct base for too-large literalsclubby789-2/+2
2022-12-12Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkovbors-48/+94
2022-12-05Remove `LitKind::synthesize_token_lit`.Nicholas Nethercote-39/+44
2022-12-05Remove `ExtCtxt::expr_lit`.Nicholas Nethercote-11/+23
2022-12-02Remove `token::Lit` from `ast::MetaItemLit`.Nicholas Nethercote-2/+25
2022-12-02Add `StrStyle` to `ast::LitKind::ByteStr`.Nicholas Nethercote-5/+11
2022-12-02Rename `LitKind::to_token_lit` as `LitKind::synthesize_token_lit`.Nicholas Nethercote-2/+2
2022-12-01Remove useless borrows and derefsMaybe Waffle-5/+5
2022-11-29Avoid more `MetaItem`-to-`Attribute` conversions.Nicholas Nethercote-9/+0
2022-11-29Inline and remove `MetaItemLit::from_lit_kind`.Nicholas Nethercote-7/+0
2022-11-28Rename `ast::Lit` as `ast::MetaItemLit`.Nicholas Nethercote-12/+12
2022-11-28Remove `Lit::from_included_bytes`.Nicholas Nethercote-8/+0
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-22/+5
2022-11-11Introduce `ExprKind::IncludedBytes`clubby789-0/+8
2022-11-05Remove `unescape_byte_literal`.Nicholas Nethercote-18/+11
2022-09-12Rollup merge of #100767 - kadiwa4:escape_ascii, r=jackh726Dylan DPC-6/+1
2022-09-01Always import all tracing macros for the entire crate instead of piecemeal by...Oli Scherer-1/+0
2022-08-25Handle `Err` in `ast::LitKind::to_token_lit`.Nicholas Nethercote-1/+3
2022-08-23Remove the symbol from `ast::LitKind::Err`.Nicholas Nethercote-2/+2
2022-08-19use <[u8]>::escape_ascii instead of core::ascii::escape_defaultKaDiWa-6/+1
2022-08-16Rename some things related to literals.Nicholas Nethercote-9/+9