Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #139494 - compiler-errors:restrict-queries, r=oli-obk
Restrict some queries by def-kind more
Random cleanup. I prefer things to assert more so as to catch bugs :)
r? oli-obk