/// the event of shadowing.
BrNamed(DefId, InternedString),
- /// Fresh bound identifiers created during GLB computations.
- BrFresh(u32),
-
/// Anonymous region for the implicit env pointer parameter
/// to a closure
BrEnv,
}
}
+ #[inline]
+ pub fn is_fn_ptr(&self) -> bool {
+ match self.sty {
+ FnPtr(_) => true,
+ _ => false,
+ }
+ }
+
pub fn is_impl_trait(&self) -> bool {
match self.sty {
Opaque(..) => true,