rust/compiler/rustc_lint/src
bors 02654a0844 Auto merge of #98919 - 5225225:stricter-invalid-value, r=RalfJung
Strengthen invalid_value lint to forbid uninit primitives, adjust docs to say that's UB

For context: https://github.com/rust-lang/rust/issues/66151#issuecomment-1174477404=

This does not make it a FCW, but it does explicitly state in the docs that uninit integers are UB.

This also doesn't affect any runtime behavior, uninit u32's will still successfully be created through mem::uninitialized.
2022-08-30 20:39:01 +00:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs lint: port array-into-iter diagnostics 2022-06-30 08:59:19 +01:00
builtin.rs Auto merge of #98919 - 5225225:stricter-invalid-value, r=RalfJung 2022-08-30 20:39:01 +00:00
context.rs Rollup merge of #100776 - Rejyr:diagnostic-migration-rustc-lint, r=davidtwco 2022-08-26 15:56:25 -07:00
early.rs Use DiagnosticMessage for BufferedEarlyLint.msg 2022-08-22 00:57:21 +09:00
enum_intrinsics_non_enums.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
errors.rs refactor: migrate to kind-less SessionDiagnostic derives 2022-08-22 08:33:47 -04:00
expect.rs lint: port expectation diagnostics 2022-06-30 08:59:21 +01:00
hidden_unicode_codepoints.rs Rename some things related to literals. 2022-08-16 13:41:34 +10:00
internal.rs lint: add bad opt access internal lint 2022-07-27 11:24:27 +01:00
late.rs Simplify rustc_hir::intravisit::Visitor::visit_variant_data. 2022-08-11 10:54:01 +10:00
levels.rs cleanup: commented lints 2022-08-23 10:41:02 -04:00
lib.rs Revert let_chains stabilization 2022-08-29 19:34:11 +02:00
methods.rs lint: port CString ptr diagnostics 2022-06-30 08:59:21 +01:00
non_ascii_idents.rs lint: port non-ascii-idents diagnostics 2022-06-30 08:59:21 +01:00
non_fmt_panic.rs lint: port non-fmt-panic diagnostics 2022-06-30 08:59:21 +01:00
nonstandard_style.rs Add visitors for PatField and ExprField. 2022-08-11 21:48:39 -07:00
noop_method_call.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
pass_by_value.rs lint: port pass-by-value diagnostics 2022-06-30 08:59:21 +01:00
passes.rs Remove Sync requirement from lint pass objects as they are created on demand 2022-08-29 10:00:22 -04:00
redundant_semicolon.rs lint: port redundant semicolons diagnostics 2022-06-30 08:59:21 +01:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs lint: port drop trait/glue diagnostics 2022-06-30 08:59:21 +01:00
types.rs Replace #[lint/warning/error] with #[diag] 2022-08-21 09:17:43 +02:00
unused.rs Do not consider method call receiver as an argument in AST. 2022-08-10 18:34:54 +02:00