diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2022-09-27 17:06:38 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2022-09-27 17:44:54 -0700 |
| commit | 4bf789fba7b04c745b8d55b020903f7d64b2720d (patch) | |
| tree | 3e5972a14787a84c9f2d6648efb9aaebb48e31b6 /compiler/rustc_middle/src/query | |
| parent | a63a03dc5442b604cb58ce2aafd2a051072e623f (diff) | |
| download | rust-4bf789fba7b04c745b8d55b020903f7d64b2720d.tar.gz rust-4bf789fba7b04c745b8d55b020903f7d64b2720d.zip | |
rustdoc: Queryify `is_notable_trait`
This might help with #102375.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index eed44240f83..fb867f8b46b 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1126,6 +1126,11 @@ rustc_queries! { desc { |tcx| "checking whether `{}` is `doc(hidden)`", tcx.def_path_str(def_id) } } + /// Determines whether an item is annotated with `doc(notable_trait)`. + query is_doc_notable_trait(def_id: DefId) -> bool { + desc { |tcx| "checking whether `{}` is `doc(notable_trait)`", tcx.def_path_str(def_id) } + } + /// Returns the attributes on the item at `def_id`. /// /// Do not use this directly, use `tcx.get_attrs` instead. |
