address review
This commit is contained in:
parent
c9843d6144
commit
8252a6eddf
5 changed files with 31 additions and 17 deletions
|
@ -1752,7 +1752,7 @@ impl<'tcx> Region<'tcx> {
|
|||
matches!(self.kind(), ty::ReVar(_))
|
||||
}
|
||||
|
||||
pub fn try_get_var(self) -> Option<RegionVid> {
|
||||
pub fn as_var(self) -> Option<RegionVid> {
|
||||
match self.kind() {
|
||||
ty::ReVar(vid) => Some(vid),
|
||||
_ => None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue