about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-reference.js
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-04-16 01:12:37 +0200
committerGitHub <noreply@github.com>2024-04-16 01:12:37 +0200
commit1ad9fea871f78ee0582e57ae253e253a68e3ec49 (patch)
tree32556a843c595eb3658d3e9feb00564e1e17011b /tests/rustdoc-js-std/parser-reference.js
parentc5665990c59c994026f2f85c073f9a20fcbe817e (diff)
parent651d02a2f06e61fb1a2d67c1f90651db1483a5ca (diff)
downloadrust-1ad9fea871f78ee0582e57ae253e253a68e3ec49.tar.gz
rust-1ad9fea871f78ee0582e57ae253e253a68e3ec49.zip
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`
Diffstat (limited to 'tests/rustdoc-js-std/parser-reference.js')
0 files changed, 0 insertions, 0 deletions