Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Nicholas Nethercote
84ac80f192
Reformat use declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Nicholas Nethercote
2539364053
Remove #[macro_use] extern crate tracing from rustc_mir_build.
2024-05-23 18:02:40 +10:00
Camille GILLOT
e63d19c4dd
Remove mir::LocalDecl::internal.
2023-10-04 17:55:15 +00:00
Ralf Jung
c94410c145
rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::Const
2023-09-21 08:12:30 +02:00
lcnr
791ce0b7b5
remove some trait solver helpers
...
they add more complexity then they are worth. It's confusing
which of these helpers should be used in which context.
2023-03-21 09:57:20 +01:00
Maybe Waffle
1d42936b18
Prefer doc comments over //-comments in compiler
2022-11-27 11:19:04 +00:00
Jacob Pratt
49c82f31a8
Remove crate visibility usage in compiler
2022-05-20 20:04:54 -04:00
b-naber
96b36d6eb2
use GlobalId in eval_to_valtree query and introduce query for valtree_to_const_val
2022-05-16 15:58:15 +02:00
b-naber
ac60db231c
do use ty::Const in patterns and abstract consts
2022-04-02 12:20:59 +02:00
b-naber
b38077ea0b
change thir to use mir::ConstantKind instead of ty::Const
2022-04-02 12:20:56 +02:00
b-naber
40e4bd2d02
treat all mir::Constant values as ConstantKind::Val
2022-03-09 10:52:04 +01:00
Nicholas Nethercote
a95fb8b150
Overhaul Const.
...
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.
2022-02-15 16:19:59 +11:00
est31
8b0b7ef812
Remove box syntax from rustc_mir_build
2021-08-18 09:25:26 +02:00
Oli Scherer
3127a9c60f
Prepare mir::Constant for ty::Const only supporting valtrees
2021-03-12 12:43:54 +00:00
LeSeulArtichaut
2a2b4d7257
Pull thir::Cx out of the MIR Builder
2021-03-09 20:13:58 +01:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00