1
Fork 0
rust/compiler/rustc_const_eval/src
Matthias Krüger 937a18daf9
Rollup merge of #129344 - compiler-errors:less-option-unit-diagnostics, r=jieyouxu
Use `bool` in favor of `Option<()>` for diagnostics

We originally only supported `Option<()>` for optional notes/labels, but we now support `bool`. Let's use that, since it usually leads to more readable code.

I'm not removing the support from the derive macro, though I guess we could error on it... 🤔
2024-08-21 18:15:05 +02:00
..
check_consts Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
const_eval ctfe: make CompileTimeInterpCx type alias public 2024-08-20 14:58:10 +02:00
interpret rename AddressOf -> RawBorrow inside the compiler 2024-08-18 19:46:53 +02:00
util Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00
errors.rs Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
lib.rs stabilize is_none_or 2024-08-14 18:28:40 +08:00