rust/compiler
Stuart Cook 3bf838d790
Rollup merge of #148118 - saethlin:nullary-intrinsic-check-bug-msg, r=Noratrieb,dianqk
Improve the ICE message for invalid nullary intrinsic calls

In https://github.com/rust-lang/rust/issues/148104, we found the panic message here rather confusing, and (if I'm reading the tea leaves right) that's because the intended audience for either side of the phrase is very different. I think this is more clear if/when this is encountered by users.

I expect this ICE to be hit in practice by people calling the `size_of` and `align_of` intrinsics, so it's now _kind of_ helpful for those users too.

The original effort to stop backends from needing to support nullary intrinsics added a note to all these const-only intrinsics, but when https://github.com/rust-lang/rust/pull/147793 ported two more the paragraph wasn't added. I've added it.
2025-10-26 22:15:09 +11:00
..
rustc Make llvm_enzyme a regular cargo feature 2025-09-15 15:31:56 +00:00
rustc_abi Rollup merge of #147134 - workingjubilee:remove-explicit-abialign-deref, r=Zalathar 2025-09-29 15:44:55 +10:00
rustc_arena some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_ast Retire ast::TyAliasWhereClauses. 2025-10-23 00:40:01 +00:00
rustc_ast_ir turn pointer width into an integer in target.json 2025-08-27 23:44:49 +02:00
rustc_ast_lowering Stop passing resolver disambiguator state to AST lowering. 2025-10-24 02:41:52 +00:00
rustc_ast_passes Retire ast::TyAliasWhereClauses. 2025-10-23 00:40:01 +00:00
rustc_ast_pretty Retire ast::TyAliasWhereClauses. 2025-10-23 00:40:01 +00:00
rustc_attr_parsing Rollup merge of #148000 - JonathanBrouwer:wipnew2, r=jdonszelmann 2025-10-25 12:57:39 +02:00
rustc_baked_icu_data Use default locale fallback data 2025-08-28 09:48:54 +00:00
rustc_borrowck Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_builtin_macros Retire ast::TyAliasWhereClauses. 2025-10-23 00:40:01 +00:00
rustc_codegen_cranelift Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_codegen_gcc remove broken link 2025-10-20 20:50:44 +00:00
rustc_codegen_llvm rustc_codegen_llvm: adapt for LLVM 22 change to pass masked intrinsic alignment as an attribute 2025-10-23 17:23:01 -04:00
rustc_codegen_ssa Improve the ICE message for invalid nullary intrinsic calls 2025-10-25 21:32:27 -04:00
rustc_const_eval Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_data_structures Rollup merge of #147716 - zhetaicheleba:master, r=jdonszelmann 2025-10-15 23:41:05 +02:00
rustc_driver compiler: Add Windows resources to rustc-main and rustc_driver 2025-09-05 14:06:31 -04:00
rustc_driver_impl Auto merge of #147207 - Muscraft:anstyle-anstream, r=davidtwco 2025-10-22 16:22:51 +00:00
rustc_error_codes Rollup merge of #146585 - hkBst:indexing-1, r=jdonszelmann 2025-10-02 10:27:49 +02:00
rustc_error_messages Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_errors chore: Update to the latest annotate-snippets 2025-10-24 12:50:19 -06:00
rustc_expand Rollup merge of #147438 - reddevilmidzy:rename-non-inline-module-in-msg, r=fee1-dead 2025-10-18 23:54:44 +02:00
rustc_feature Add AcceptContext::suggestions 2025-10-22 21:43:50 +02:00
rustc_fluent_macro some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_fs_util Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_graphviz some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hashes some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_hir Stop passing resolver disambiguator state to AST lowering. 2025-10-24 02:41:52 +00:00
rustc_hir_analysis hir_analysis: add missing sizedness bounds 2025-10-24 15:28:34 +01:00
rustc_hir_id rustc_hir_id: Add a comment explaining why the crate exists 2025-08-20 15:04:00 -07:00
rustc_hir_pretty Add not-null pointer patterns to pattern types 2025-10-21 11:22:51 +00:00
rustc_hir_typeck Auto merge of #147826 - Muscraft:update-typos, r=Noratrieb 2025-10-22 13:11:47 +00:00
rustc_incremental Do not GC the current active incremental session directory 2025-10-20 02:39:55 +00:00
rustc_index Introduce indexvec macro. 2025-10-22 00:52:52 +00:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer rename select_where_possible and select_all_or_error 2025-10-07 23:02:23 +01:00
rustc_interface Remove current code for embedding command-line args in PDB 2025-10-18 12:24:40 +11:00
rustc_lexer Fix a crash/mislex when more than one frontmatter closing possibility is considered 2025-09-22 15:10:41 -04:00
rustc_lint Auto merge of #147826 - Muscraft:update-typos, r=Noratrieb 2025-10-22 13:11:47 +00:00
rustc_lint_defs remove useless #![deny]s 2025-10-19 19:48:21 +02:00
rustc_llvm Rollup merge of #147948 - aeubanks:summarylist, r=durin42 2025-10-22 07:12:12 +02:00
rustc_log Restrict sysroot crate imports to those defined in this repo. 2025-10-15 13:17:25 +01:00
rustc_macros use declarative macro for #[derive(TryFromU32)] 2025-10-06 14:54:38 +00:00
rustc_metadata Auto merge of #147695 - cjgillot:deduce-param-freeze, r=tmiasko 2025-10-18 12:37:45 +00:00
rustc_middle Rollup merge of #143361 - cjgillot:split-disambig, r=oli-obk 2025-10-25 12:57:38 +02:00
rustc_mir_build Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_mir_dataflow Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_mir_transform Insert assignment after Retag. 2025-10-24 02:41:51 +00:00
rustc_monomorphize Allow unsizing pattern types with pointer base 2025-10-21 11:22:51 +00:00
rustc_next_trait_solver gamer 2025-10-24 15:34:45 +02:00
rustc_parse Retire ast::TyAliasWhereClauses. 2025-10-23 00:40:01 +00:00
rustc_parse_format Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_passes Rollup merge of #138679 - Shunpoco:issue-125323, r=oli-obk 2025-10-18 23:54:43 +02:00
rustc_pattern_analysis Rename various "concrete opaque type" terminology to say "hidden type" 2025-09-27 22:58:02 +01:00
rustc_privacy privacy: Introduce some caching to type visiting in DefIdVisitorSkeleton 2025-10-22 17:31:12 +03:00
rustc_proc_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_public_bridge Rollup merge of #147800 - makai410:rp-cache-obj, r=celinval 2025-10-21 12:20:56 +11:00
rustc_query_impl fixup limit handling code 2025-09-08 15:07:12 -07:00
rustc_query_system Rollup merge of #147830 - Noratrieb:reword-unstable-fingerprint-ice, r=jackh726 2025-10-22 13:20:23 -04:00
rustc_resolve Stop passing resolver disambiguator state to AST lowering. 2025-10-24 02:41:52 +00:00
rustc_sanitizers Stop passing resolver disambiguator state to AST lowering. 2025-10-24 02:41:52 +00:00
rustc_serialize Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_session Rollup merge of #148007 - Muscraft:annotate-snippets, r=jdonszelmann 2025-10-25 12:57:39 +02:00
rustc_span Replace NullOp::SizeOf and NullOp::AlignOf by lang items. 2025-10-23 00:38:28 +00:00
rustc_symbol_mangling Stop passing resolver disambiguator state to AST lowering. 2025-10-24 02:41:52 +00:00
rustc_target Rollup merge of #147454 - ferrocene:hoverbear/panic-abort-uwtables-qnx, r=wesleywiser 2025-10-18 08:08:37 +02:00
rustc_thread_pool some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_trait_selection Rollup merge of #142339 - oli-obk:not-null-pattern-types, r=BoxyUwU 2025-10-22 07:12:09 +02:00
rustc_traits Auto merge of #146096 - adwinwhite:handle_normalization_overflow_in_mono1, r=saethlin 2025-10-13 00:20:10 +00:00
rustc_transmute prefer to use repeat_n over repeat and take 2025-10-09 01:24:55 +08:00
rustc_ty_utils Add not-null pointer patterns to pattern types 2025-10-21 11:22:51 +00:00
rustc_type_ir Rollup merge of #142339 - oli-obk:not-null-pattern-types, r=BoxyUwU 2025-10-22 07:12:09 +02:00
rustc_type_ir_macros some cleanups in compiler 2025-10-12 08:08:30 +00:00
rustc_windows_rc [win] Use find-msvc-tools instead of cc to find the linker and rc on Windows 2025-09-19 12:00:30 -07:00