summaryrefslogtreecommitdiff
path: root/compiler/rustc_middle/src/ty/consts
Commit message (Expand)AuthorAgeFilesLines
* format `Const`'s less verboselyBoxy2023-05-161-2/+2
* Suppress "erroneous constant used" for constants tainted by errorsTomasz Miąsko2023-05-151-2/+2
* Remove WithOptconstParam.Camille GILLOT2023-04-201-7/+4
* Store hashes in special types so they aren't accidentally encoded as numbersBen Kimock2023-04-181-3/+7
* Remove identity castsNilstrieb2023-04-091-1/+1
* use and_then/flat_map for map().flatten()Matthias Krüger2023-04-011-1/+1
* unequal → not equalgimbles2023-03-151-7/+7
* Remove type-traversal trait aliasesAlan Egerton2023-02-221-1/+1
* Auto merge of #107542 - compiler-errors:param-envs-with-inference-vars-are-cu...bors2023-02-181-6/+4
|\
| * Don't call with_reveal_all_normalized in evaluate when param-env has inferenc...Michael Goulet2023-02-011-6/+4
* | Use target instead of machine for mir interpreter integer handling.Oli Scherer2023-02-153-5/+5
|/
* rustc: Remove needless lifetimesJeremy Stucki2022-12-201-1/+1
* compiler: remove unnecessary imports and qualified pathsKaDiWa2022-12-102-3/+0
* Make `tcx.mk_const` more permissive wrt `kind` argumentMaybe Waffle2022-11-281-0/+8
* Auto merge of #103917 - oli-obk:layout_math, r=RalfJung,lcnrbors2022-11-271-0/+12
|\
| * Add helper method to `ScalarInt`Oli Scherer2022-11-251-0/+12
* | Add empty ConstKind::Abstractkadmin2022-11-251-1/+18
|/
* cleanup and dedupe CTFE and Miri error reportingRalf Jung2022-11-161-2/+2
* deprecate DelaySpanBugEmitted and use ErrorGuaranteed directlyyukang2022-11-021-1/+1
* Auto merge of #103227 - lcnr:bye-bye-unevaluated-const, r=oli-obkbors2022-10-221-1/+1
|\
| * stop folding `UnevaluatedConst`lcnr2022-10-191-1/+1
* | Deny const variables as wellMichael Goulet2022-10-191-1/+10
|/
* rename Unevaluated to UnevaluatedConstb-naber2022-09-231-10/+13
* introduce mir::Unevaluatedb-naber2022-09-221-21/+9
* Auto merge of #98588 - b-naber:valtrees-cleanup, r=lcnrbors2022-09-171-4/+7
|\
| * use ty::Unevaluated<'tcx, ()> in type systemb-naber2022-09-131-4/+7
* | Replace more manual TypeFoldable and TypeVisitable impls with derivesOli Scherer2022-09-151-1/+1
|/
* don't evaluate with escaping bound varslcnr2022-09-081-0/+1
* Make `const_eval_select` a real intrinsicDeadbeef2022-09-041-1/+4
* Porting 'compiler/rustc_trait_selection' to translatable diagnostics - Part 1Gabriel Bustamante2022-09-011-0/+6
* Allow try_to_raw_bytes on u8 arrayMichael Goulet2022-07-261-20/+14
* clippy::perf fixesMatthias Krüger2022-07-201-6/+4
* don't allow ZST in ScalarIntRalf Jung2022-07-091-26/+20
* Update TypeVisitor pathsAlan Egerton2022-07-061-1/+1
* add AllocRange Debug impl; remove redundant AllocId Display implRalf Jung2022-07-021-0/+4
* implement valtrees as the type-system representation for constant valuesb-naber2022-06-142-13/+129
* Use delayed error handling for `Encodable` and `Encoder` infallible.Nicholas Nethercote2022-06-081-3/+3
* implement valtree -> constvalue conversionb-naber2022-04-211-0/+3
* add helper methods on ValTreeb-naber2022-04-211-0/+16
* add some helper methods to ScalarIntb-naber2022-04-211-0/+92
* Rollup merge of #95426 - b-naber:valtrees-slice, r=RalfJung,oli-obkDylan DPC2022-04-161-1/+1
|\
| * create leafs for slicesb-naber2022-04-081-28/+0
| * Add type for slices in ValTreesb-naber2022-03-291-1/+29
* | rebase and use ty::Const in patterns againb-naber2022-04-021-5/+1
* | do use ty::Const in patterns and abstract constsb-naber2022-04-021-1/+6
* | change thir to use mir::ConstantKind instead of ty::Constb-naber2022-04-021-1/+1
|/
* rename ErrorReported -> ErrorGuaranteedmark2022-03-021-2/+2
* Rollup merge of #94091 - GuillaumeGomez:rustdoc-const-computed-value, r=oli-obkMatthias Krüger2022-02-201-0/+7
|\
| * Don't render Const computed values in hexadecimal for DisplayGuillaume Gomez2022-02-191-0/+7
* | Fix ScalarInt to char conversionTomasz Miąsko2022-02-171-4/+14
|/