1
Fork 0

Track bound vars

This commit is contained in:
Jack Huey 2020-10-05 20:41:46 -04:00
parent 62a49c3bb8
commit 30187c81f6
33 changed files with 478 additions and 362 deletions

View file

@ -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 {