rust/compiler
bors fdaaaf9f92 Auto merge of #116930 - RalfJung:raw-ptr-match, r=davidtwco
patterns: reject raw pointers that are not just integers

Matching against `0 as *const i32` is fine, matching against `&42 as *const i32` is not.

This extends the existing check against function pointers and wide pointers: we now uniformly reject all these pointer types during valtree construction, and then later lint because of that. See [here](https://github.com/rust-lang/rust/pull/116930#issuecomment-1784654073) for some more explanation and context.

Also fixes https://github.com/rust-lang/rust/issues/116929.

Cc `@oli-obk` `@lcnr`
2023-11-08 20:42:32 +00:00
..
rustc
rustc_abi Make the randomize feature of rustc_abi additive 2023-11-05 21:51:47 +03:30
rustc_arena
rustc_ast Add the vis.visit_capture_by() in noop_visit_expr 2023-11-04 21:11:03 +01:00
rustc_ast_lowering Fix remaining uses of CaptureBy::Value 2023-11-04 19:48:44 +01:00
rustc_ast_passes
rustc_ast_pretty Clarify space_between. 2023-11-08 14:39:59 +11:00
rustc_attr
rustc_baked_icu_data
rustc_borrowck Auto merge of #117560 - lqd:issue-117146, r=matthewjasper 2023-11-08 16:13:37 +00:00
rustc_builtin_macros Use the correct span when emitting the env! result 2023-11-04 14:04:01 -07:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm warn when using an unstable feature with -Ctarget-feature 2023-11-06 09:44:00 +01:00
rustc_codegen_ssa Rollup merge of #117616 - RalfJung:unstable-target-features, r=compiler-errors 2023-11-07 19:29:56 +01:00
rustc_const_eval Auto merge of #116930 - RalfJung:raw-ptr-match, r=davidtwco 2023-11-08 20:42:32 +00:00
rustc_data_structures Auto merge of #117435 - SparrowLii:nightly_parallel, r=oli-obk,davidtwco 2023-11-06 07:41:22 +00:00
rustc_driver
rustc_driver_impl Use the actual computed crate name for -Zprint-vtable-sizes 2023-11-05 16:29:15 +00:00
rustc_error_codes Auto merge of #117537 - GKFX:offset-of-enum-feature, r=cjgillot 2023-11-05 13:44:59 +00:00
rustc_error_messages
rustc_errors rustc: minor changes suggested by clippy perf lints. 2023-11-08 08:57:57 +11:00
rustc_expand
rustc_feature Auto merge of #117537 - GKFX:offset-of-enum-feature, r=cjgillot 2023-11-05 13:44:59 +00:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Add suggestion to THIR unsafe_op_in_unsafe_fn lint 2023-11-06 16:23:09 +00:00
rustc_hir_analysis Only use normalize_param_env when normalizing predicate in check_item_bounds 2023-11-08 02:35:25 +00:00
rustc_hir_pretty Fix remaining uses of CaptureBy::Value 2023-11-04 19:48:44 +01:00
rustc_hir_typeck Rollup merge of #117655 - compiler-errors:method-tweaks, r=estebank 2023-11-08 00:47:52 +01:00
rustc_incremental Remove unused LoadResult::DecodeIncrCache variant 2023-11-04 20:16:03 +00:00
rustc_index
rustc_infer
rustc_interface Add -Zcross-crate-inline-threshold=yes 2023-11-07 18:45:11 -05:00
rustc_lexer
rustc_lint
rustc_lint_defs Auto merge of #116930 - RalfJung:raw-ptr-match, r=davidtwco 2023-11-08 20:42:32 +00:00
rustc_llvm llvm-wrapper: Remove include of non-existant Vectorize.h 2023-11-07 16:40:35 +01:00
rustc_log
rustc_macros
rustc_metadata Rollup merge of #115485 - DaniPopes:rustdoc-macro-consts, r=jackh726,fmease 2023-11-07 19:29:56 +01:00
rustc_middle Rollup merge of #117625 - nnethercote:clippy-perf, r=cuviper 2023-11-08 00:47:51 +01:00
rustc_mir_build Auto merge of #116930 - RalfJung:raw-ptr-match, r=davidtwco 2023-11-08 20:42:32 +00:00
rustc_mir_dataflow
rustc_mir_transform Add -Zcross-crate-inline-threshold=yes 2023-11-07 18:45:11 -05:00
rustc_monomorphize
rustc_parse Rollup merge of #117282 - clubby789:recover-wrong-function-header, r=TaKO8Ki 2023-11-08 17:14:36 +01:00
rustc_parse_format
rustc_passes
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve rustc: minor changes suggested by clippy perf lints. 2023-11-08 08:57:57 +11:00
rustc_serialize
rustc_session Rollup merge of #117650 - saethlin:inline-me-please, r=davidtwco 2023-11-08 11:25:54 +01:00
rustc_smir
rustc_span Auto merge of #117297 - clubby789:fn-trait-missing-paren, r=TaKO8Ki 2023-11-07 13:04:56 +00:00
rustc_symbol_mangling
rustc_target rustc_target: move file for uniformity 2023-11-08 14:37:54 +08:00
rustc_trait_selection Rollup merge of #113925 - clubby789:const-ctor-repeat, r=estebank 2023-11-08 00:47:50 +01:00
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir Auto merge of #117578 - compiler-errors:derive-encode-in-rustc_type_ir, r=davidtwco 2023-11-06 10:10:52 +00:00
stable_mir