add a comment

This commit is contained in:
Niko Matsakis 2018-09-29 05:45:58 -04:00
parent 5bee46108d
commit 4054817a96

View file

@ -31,6 +31,10 @@ pub trait QueryContext: Sized + HasQueryContextDescriptor {
fn salsa_runtime(&self) -> &runtime::Runtime<Self>;
}
/// Defines the `QueryDescriptor` associated type. An impl of this
/// should be generated for your query-context type automatically by
/// the `query_context_storage` macro, so you shouldn't need to mess
/// with this trait directly.
pub trait HasQueryContextDescriptor {
/// A "query descriptor" packages up all the possible queries and a key.
/// It is used to store information about (e.g.) the stack.