1
Fork 0

address review

This commit is contained in:
b-naber 2023-02-21 21:54:53 +00:00
parent c9843d6144
commit 8252a6eddf
5 changed files with 31 additions and 17 deletions

View file

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