about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/build/misc.rs
AgeCommit message (Collapse)AuthorLines
2024-12-17Rename `rustc_mir_build::build` to `builder`Zalathar-65/+0
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-1/+1
the behavior of the type system not only depends on the current assumptions, but also the currentnphase of the compiler. This is mostly necessary as we need to decide whether and how to reveal opaque types. We track this via the `TypingMode`.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-10/+5
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_mir_build`.Nicholas Nethercote-0/+1
2023-10-04Remove mir::LocalDecl::internal.Camille GILLOT-3/+1
2023-09-21rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::ConstRalf Jung-9/+5
2023-03-21remove some trait solver helperslcnr-2/+2
they add more complexity then they are worth. It's confusing which of these helpers should be used in which context.
2022-11-27Prefer doc comments over `//`-comments in compilerMaybe Waffle-2/+2
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-5/+9
2022-05-16use GlobalId in eval_to_valtree query and introduce query for ↵b-naber-6/+1
valtree_to_const_val
2022-04-02do use ty::Const in patterns and abstract constsb-naber-1/+6
2022-04-02change thir to use mir::ConstantKind instead of ty::Constb-naber-3/+2
2022-03-09treat all mir::Constant values as ConstantKind::Valb-naber-1/+1
2022-02-15Overhaul `Const`.Nicholas Nethercote-5/+1
Specifically, rename the `Const` struct as `ConstS` and re-introduce `Const` as this: ``` pub struct Const<'tcx>(&'tcx Interned<ConstS>); ``` This now matches `Ty` and `Predicate` more closely, including using pointer-based `eq` and `hash`. Notable changes: - `mk_const` now takes a `ConstS`. - `Const` was copy, despite being 48 bytes. Now `ConstS` is not, so need a we need separate arena for it, because we can't use the `Dropless` one any more. - Many `&'tcx Const<'tcx>`/`&Const<'tcx>` to `Const<'tcx>` changes - Many `ct.ty` to `ct.ty()` and `ct.val` to `ct.val()` changes. - Lots of tedious sigil fiddling.
2021-08-18Remove box syntax from rustc_mir_buildest31-1/+1
2021-03-12Prepare mir::Constant for ty::Const only supporting valtreesOli Scherer-1/+2
2021-03-09Pull `thir::Cx` out of the MIR `Builder`LeSeulArtichaut-7/+7
2020-08-30mv compiler to compiler/mark-0/+75