rust/compiler/rustc_lint/src
bors f262ca12aa Auto merge of #94527 - oli-obk:undef_scalars, r=nagisa,erikdesjardin
Let CTFE to handle partially uninitialized unions without marking the entire value as uninitialized.

follow up to #94411

To fix https://github.com/rust-lang/rust/issues/69488 and by extension fix https://github.com/rust-lang/rust/issues/94371, we should stop treating types like `MaybeUninit<usize>` as something that the `Scalar` type in the interpreter engine can represent. So we add a new field to `abi::Primitive` that records whether the primitive is nested in a union

cc `@RalfJung`

r? `@ghost`
2022-04-05 16:46:13 +00:00
..
nonstandard_style
array_into_iter.rs Remove a span from hir::ExprKind::MethodCall 2022-01-21 07:48:10 -06:00
builtin.rs errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
context.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
early.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
enum_intrinsics_non_enums.rs initial revert 2022-01-15 01:16:55 +00:00
expect.rs errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
hidden_unicode_codepoints.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
internal.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
late.rs Check lint expectations and emit lint if unfulfilled (RFC-2383) 2022-03-02 17:46:07 +01:00
levels.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
lib.rs Make LintExpectationId stable between compilation sessions (RFC-2383) 2022-03-02 17:46:08 +01:00
methods.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
non_ascii_idents.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
non_fmt_panic.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
nonstandard_style.rs rustc_lint: Remove some redundant fields from EarlyContext 2022-01-23 18:51:51 +08:00
noop_method_call.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
pass_by_value.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
passes.rs
redundant_semicolon.rs
tests.rs
traits.rs Rename ~const Drop to ~const Destruct 2022-03-21 17:04:03 +11:00
types.rs Auto merge of #94527 - oli-obk:undef_scalars, r=nagisa,erikdesjardin 2022-04-05 16:46:13 +00:00
unused.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00