]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #87875 - asquared31415:generic-lang-items, r=cjgillot
authorbors <bors@rust-lang.org>
Wed, 25 Aug 2021 08:12:16 +0000 (08:12 +0000)
committerbors <bors@rust-lang.org>
Wed, 25 Aug 2021 08:12:16 +0000 (08:12 +0000)
commit9863bf51a52b8e61bcad312f81b5193d53099f9f
treed2d6988720bbccac22c69f4fa9269ab4499b51a8
parent1a9ac38defd67ddb2b830005f8d760861c85a7a3
parent385a233f1836191837e1a7e575425cf0ce1c9843
Auto merge of #87875 - asquared31415:generic-lang-items, r=cjgillot

Improve detection of generics on lang items

Adds detection for the required generics for all lang items.  Many lang items require an exact or minimum amount of generic arguments and if they don't exist, the compiler will ICE.  This does not add any additional validation about bounds on generics or any other lang item restrictions.

Fixes one of the ICEs in #87573

cc `@FabianWolff`
compiler/rustc_passes/src/lang_items.rs