diff options
author | Kirill Bulatov <[email protected]> | 2019-07-21 22:10:29 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-07-21 22:10:29 +0100 |
commit | 31aef808d96b779dbc8ce41e27857965e79bd96f (patch) | |
tree | 254d69a1ec3abe6d70b2dd9737ef699f33f88f62 /crates/ra_hir/src/ty.rs | |
parent | ba76017d2eb1b7606106c15478ac658dc32b6dbd (diff) | |
parent | d690249bc81bc265cb3d1836c2922325f4fdb8af (diff) |
Merge branch 'master' into add-type-lenses
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r-- | crates/ra_hir/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index 4cf714f5d..82589e504 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -472,7 +472,7 @@ impl Ty { | |||
472 | 472 | ||
473 | /// Returns the type parameters of this type if it has some (i.e. is an ADT | 473 | /// Returns the type parameters of this type if it has some (i.e. is an ADT |
474 | /// or function); so if `self` is `Option<u32>`, this returns the `u32`. | 474 | /// or function); so if `self` is `Option<u32>`, this returns the `u32`. |
475 | fn substs(&self) -> Option<Substs> { | 475 | pub fn substs(&self) -> Option<Substs> { |
476 | match self { | 476 | match self { |
477 | Ty::Apply(ApplicationTy { parameters, .. }) => Some(parameters.clone()), | 477 | Ty::Apply(ApplicationTy { parameters, .. }) => Some(parameters.clone()), |
478 | _ => None, | 478 | _ => None, |