]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #83424 - cjgillot:noparam, r=lcnr
authorbors <bors@rust-lang.org>
Thu, 25 Mar 2021 16:35:19 +0000 (16:35 +0000)
committerbors <bors@rust-lang.org>
Thu, 25 Mar 2021 16:35:19 +0000 (16:35 +0000)
commitcb473c2c5b72289470fa4de00474b7239013f11f
treea7691ae8a7716ceeda9072e87ceb02b7634721c9
parent6e17a5c5fd086ebe6f57216fb3ce5d1d8d6c83e5
parent4c0b7ac7ba97092faf4a1322981ad6e5b1f01111
Auto merge of #83424 - cjgillot:noparam, r=lcnr

GenericParam does not need to be a HIR owner.

The special case is not required.

Universal impl traits design to regular generic parameters, and their content is owned by the enclosing item.

Existential (and opaque) impl traits generate their own enclosing item, and are collected through it.
compiler/rustc_ast_lowering/src/lib.rs
compiler/rustc_middle/src/hir/map/collector.rs