about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-07-02 06:20:28 +0900
committerGitHub <noreply@github.com>2021-07-02 06:20:28 +0900
commitab4d16fe7abbbc14617e2d5c311578034b9f1646 (patch)
tree6bb7f56e2e93ba5c3eaf718ff114efcf426cb11d /library/std/src/sys/unix/stack_overflow.rs
parentecef52abeba37f24157005ce0e3dfb06a79bfd21 (diff)
parentfe9334910998308f797207f05ed98beb37242973 (diff)
downloadrust-ab4d16fe7abbbc14617e2d5c311578034b9f1646.tar.gz
rust-ab4d16fe7abbbc14617e2d5c311578034b9f1646.zip
Rollup merge of #86148 - FabianWolff:issue-85855, r=varkor
Check the number of generic lifetime and const parameters of intrinsics

This pull request fixes #85855. The current code for type checking intrinsics only checks the number of generic _type_ parameters, but does not check for an incorrect number of lifetime or const parameters, which can cause problems later on, such as the ICE in #85855, where the code thought that it was looking at a type parameter but found a lifetime parameter:
```
error: internal compiler error: compiler/rustc_middle/src/ty/generics.rs:188:18:
    expected type parameter, but found another generic parameter
```

The changes in this PR add checks for the number of lifetime and const parameters, expand the scope of `E0094` to also apply to these cases, and improve the error message by properly pluralizing the number of expected generic parameters.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions