about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/constant.rs
AgeCommit message (Expand)AuthorLines
2025-07-07compiler: Parse `p-` specs in datalayout string, allow definition of custom d...Edoardo Marangoni-1/+1
2025-06-30Introduce `ByteSymbol`.Nicholas Nethercote-15/+11
2025-04-22make `[u8]` and `[u8;N]` literal patterns usable in deref patternsdianne-2/+6
2025-04-22make `str` literal patterns usable in deref patternsdianne-0/+6
2025-02-13intern valtreesLukas Markeffsky-6/+6
2025-01-30Avoid calling the layout_of query in lit_to_constOli Scherer-13/+15
2025-01-30Don't allow negative unsigned literalsOli Scherer-1/+5
2025-01-09Remove the now-useless `Result` from `lit_to_const`Oli Scherer-9/+9
2025-01-09Always take the `Ok` path in `lit_to_const` and produce error constants insteadOli Scherer-1/+1
2025-01-09Use error constant instead of explicit error handlingOli Scherer-3/+3
2024-12-17Rename `rustc_mir_build::build` to `builder`Zalathar-1/+1
2024-12-06Silence follow-up errors from `lit_to_const`Oli Scherer-1/+5
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-3/+2
2024-08-25Avoid taking reference of &TyKindMichael Goulet-1/+1
2024-06-14Use is_lang_item more aggressivelyMichael Goulet-1/+2
2024-06-10ScalarInt: size mismatches are a bug, do not delay the panicRalf Jung-5/+3
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_mir_build`.Nicholas Nethercote-0/+1
2024-05-13Remove `extern crate rustc_middle` from `rustc_mir_build`.Nicholas Nethercote-0/+1
2024-02-21Convert `bug`s back to `delayed_bug`s.Nicholas Nethercote-5/+5
2024-02-21Convert `delayed_bug`s to `bug`s.Nicholas Nethercote-18/+11
2024-02-15Add `ErrorGuaranteed` to `ast::LitKind::Err`, `token::LitKind::Err`.Nicholas Nethercote-5/+1
2024-01-19Pack the u128 in LitKind::IntJosh Stone-1/+1
2024-01-10Add `DiagCtxt::delayed_bug`.Nicholas Nethercote-19/+19
2023-12-24Remove `Session` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-3/+3
2023-12-02Rename `HandlerInner::delay_span_bug` as `HandlerInner::span_delayed_bug`.Nicholas Nethercote-3/+3
2023-07-04Replace `mk_const` with `Const::new_x` methodsBoxy-1/+1
2023-05-31Remove `lit_to_mir_constant` queryOli Scherer-0/+5
2023-05-30Get `lit_to_const` in sync with `const_to_valtree_inner`Oli Scherer-0/+13
2022-12-02Add `StrStyle` to `ast::LitKind::ByteStr`.Nicholas Nethercote-2/+2
2022-11-28Remove `Const::from_value`Maybe Waffle-1/+1
2022-11-10Use const_error_with_guaranteed moreMichael Goulet-2/+15
2022-08-23Remove the symbol from `ast::LitKind::Err`.Nicholas Nethercote-1/+1
2022-06-14address reviewb-naber-71/+1
2022-06-14implement valtrees as the type-system representation for constant valuesb-naber-33/+42
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-1/+1
2022-03-23change thir to lazily create constantsb-naber-1/+7
2022-02-19Adopt let else in more placesest31-8/+2
2022-02-15Overhaul `Const`.Nicholas Nethercote-1/+1
2021-12-19Fix an ICE when lowering a float with missing exponent magnitudethreadexception-9/+13
2021-07-17Auto merge of #87123 - RalfJung:miri-provenance-overhaul, r=oli-obkbors-1/+1
2021-07-17Changed dec2flt to use the Eisel-Lemire algorithm.Alex Huszagh-7/+9
2021-07-14consistently treat None-tagged pointers as ints; get rid of some deprecated S...Ralf Jung-1/+1
2021-05-23support creating mutable allocations from byte slicesRalf Jung-2/+2
2021-03-11Reintroduce accidentally deleted assertions.Oli Scherer-2/+23
2021-01-18Use ty::{IntTy,UintTy,FloatTy} in rustcLeSeulArtichaut-4/+4
2020-11-04`u128` truncation and sign extension are not just interpreter relatedoli-2/+2
2020-10-04Remove extra indirection in LitKind::ByteStrRobin Schoonover-1/+1
2020-09-04Change ty.kind to a methodLeSeulArtichaut-5/+7
2020-08-30mv compiler to compiler/mark-0/+84