Track bound vars
This commit is contained in:
parent
62a49c3bb8
commit
30187c81f6
33 changed files with 478 additions and 362 deletions
|
@ -314,12 +314,12 @@ pub struct GenericArgs<'hir> {
|
|||
pub parenthesized: bool,
|
||||
}
|
||||
|
||||
impl GenericArgs<'_> {
|
||||
impl<'tcx> GenericArgs<'tcx> {
|
||||
pub const fn none() -> Self {
|
||||
Self { args: &[], bindings: &[], parenthesized: false }
|
||||
}
|
||||
|
||||
pub fn inputs(&self) -> &[Ty<'_>] {
|
||||
pub fn inputs(&self) -> &[Ty<'tcx>] {
|
||||
if self.parenthesized {
|
||||
for arg in self.args {
|
||||
match arg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue