1
Fork 0

Add impl_constness query

This commit is contained in:
Deadbeef 2021-07-10 11:15:11 +08:00
parent 032cbe4cce
commit 89d190f090
No known key found for this signature in database
GPG key ID: 6525773485376D92
6 changed files with 29 additions and 3 deletions

View file

@ -1136,6 +1136,10 @@ rustc_queries! {
desc { |tcx| "looking up whether `{}` is a default impl", tcx.def_path_str(def_id) }
}
query impl_constness(def_id: DefId) -> hir::Constness {
desc { |tcx| "looking up whether `{}` is a default impl", tcx.def_path_str(def_id) }
}
query check_item_well_formed(key: LocalDefId) -> () {
desc { |tcx| "checking that `{}` is well-formed", tcx.def_path_str(key.to_def_id()) }
}