Noah Lev
d96234bed7
Retrieve DefKind
from HIR map to reduce chance of cycles
...
`tcx.def_kind()` could theoretically invoke another query, which could
cause an infinite query loop. Accessing the HIR map directly makes that
less likely to happen.
I also changed it to use `as_local()` (`tcx.def_kind()` seems to
implicitly call `expect_local()`) and `opt_def_kind()` to reduce the
chance of panicking on valid code.
2021-08-29 19:38:47 -07:00
..
2021-08-18 09:25:26 +02:00
2021-08-15 16:18:26 -03:00
2021-08-18 01:00:17 +00:00
2021-08-15 16:18:26 -03:00
2021-08-18 09:25:26 +02:00
2021-08-21 21:14:07 +00:00
2021-08-21 09:25:28 +00:00
2021-08-21 21:14:07 +00:00
2021-08-21 15:51:50 +00:00
2021-08-15 16:18:26 -03:00
2021-08-21 09:25:28 +00:00
2021-08-15 16:18:26 -03:00
2021-08-15 16:18:26 -03:00
2021-08-20 17:27:50 -04:00
2021-08-21 15:51:50 +00:00
2021-08-16 18:28:17 +02:00
2021-08-19 19:30:04 +02:00
2021-08-15 15:17:37 -05:00
2021-08-21 18:30:25 -07:00
2021-08-21 21:14:07 +00:00
2021-08-20 02:19:58 +00:00
2021-08-18 09:25:26 +02:00
2021-08-18 19:54:59 +02:00
2021-08-19 00:01:12 +03:00
2021-08-29 19:38:47 -07:00
2021-08-27 14:50:52 -07:00
2021-08-18 14:05:15 +00:00
2021-08-15 15:17:37 -05:00
2021-08-18 09:25:26 +02:00
2021-08-15 15:17:37 -05:00
2021-08-19 19:30:07 +02:00
2021-08-21 09:25:28 +00:00
2021-08-21 21:14:07 +00:00
2021-08-19 17:28:24 -04:00
2021-08-18 13:00:27 +08:00
2021-08-21 01:29:12 +00:00