rust/tests
León Orell Valerian Liehr 1ad9fea871
Rollup merge of #123603 - compiler-errors:no-intrinsic, r=estebank
Don't even parse an intrinsic unless the feature gate is enabled

Don't return true in `tcx.is_intrinsic` if the function is defined locally and `#![feature(intrinsics)]` is not enabled. This is a slightly more general fix than #123526, since #123587 shows that we have simplifying assumptions about intrinsics elsewhere in the compiler.

This will make the code ICE again if the user **enables** `#[feature(intrinsics)]`, but I kind of feel like if we want to fix that, we should make the `INTERNAL_FEATURES` lint `Deny` again. Perhaps we could do that on non-nightly compilers. Or we should just stop compilation altogether if they have `#![feature]` enabled on a non-nightly compiler.

As for the UX of *real* cases of hitting these ICEs, I believe pretty strongly that if a compiler/stdlib dev is modifying internal intrinsics (intentionally, like when making a change to rustc) we have no guarantee to make the ICE better looking for them. Honestly, *not* spitting out a stack trace is probably a disservice to the people who hit those ICEs in that case.

r? `@Nilstrieb` `@estebank`
2024-04-16 01:12:37 +02:00
..
assembly Add support for Arm64EC inline assembly 2024-04-10 10:06:44 -07:00
auxiliary
codegen Auto merge of #122917 - saethlin:atomicptr-to-int, r=nikic 2024-04-15 08:07:47 +00:00
codegen-units
coverage
coverage-run-rustdoc
crashes crashes: limit a couple tests to only run on x86_64 and/or not on windows 2024-04-14 23:53:39 +02:00
debuginfo
incremental
mir-opt
pretty
run-make Auto merge of #123656 - lqd:linker-features, r=petrochenkov 2024-04-13 11:10:01 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc Rollup merge of #123459 - GuillaumeGomez:fix-123435, r=notriddle 2024-04-11 20:20:49 +02:00
rustdoc-gui
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui rustdoc: check redundant explicit links with correct itemid 2024-04-13 19:32:39 -07:00
ui Rollup merge of #123603 - compiler-errors:no-intrinsic, r=estebank 2024-04-16 01:12:37 +02:00
ui-fulldeps Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
COMPILER_TESTS.md