Skip to main contentModule queries
Source use std::cell::OnceCell; π use std::cell::RefCell; π use std::rc::Rc; π use flux_arc_interner::List; π use flux_common::bug; π use flux_common::bug; π use flux_common::tracked_span_bug; π use flux_config as config; π use flux_errors::E0999; π use flux_errors::ErrorGuaranteed; π use flux_macros::msg; π use flux_rustc_bridge; π use flux_rustc_bridge::def_id_to_string; π use flux_rustc_bridge::lowering; π use flux_rustc_bridge::lowering::Lower; π use flux_rustc_bridge::lowering::UnsupportedErr; π use flux_rustc_bridge::mir; π use flux_rustc_bridge::ty; π use flux_syntax::surface; π use flux_syntax::symbols::sym; π use itertools::Itertools; π use rustc_attr_ir::LangItem; π use rustc_data_structures::unord::ExtendUnord; π use rustc_data_structures::unord::UnordMap; π use rustc_data_structures::unord::UnordSet; π use rustc_errors::DiagMessage; π use rustc_errors::Diagnostic; π use rustc_hir::def::DefKind; π use rustc_hir::def_id::CrateNum; π use rustc_hir::def_id::DefId; π use rustc_hir::def_id::LOCAL_CRATE; π use rustc_hir::def_id::LocalDefId; π use rustc_index::IndexVec; π use rustc_macros::Decodable; π use rustc_macros::Encodable; π use rustc_span::DUMMY_SP; π use rustc_span::Span; π use rustc_span::Symbol; π use crate::PanicSpec; π use crate::def_id::FluxDefId; π use crate::def_id::FluxId; π use crate::def_id::MaybeExternId; π use crate::def_id::ResolvedDefId; π use crate::dep_graph::CallGraph; π use crate::dep_graph::NodeKey; π use crate::fhir; π use crate::global_env::GlobalEnv; π use crate::rty; π use crate::rty::AliasReft; π use crate::rty::Expr; π use crate::rty::GenericArg; π use crate::rty::fold::TypeFoldable; π use crate::rty::refining; π use crate::rty::refining::Refine; π use crate::rty::refining::Refiner; π use crate::rty::refining::refine_generic_param_def; π
- empty_query π
- Providers
- Queries
- QueryErrAt
- A
QueryErr with extra context information
- ErrCtxt
- The βuse siteβ context in which an error is reported
- QueryErr
- An error produced by a query.
- MISSING_ASSOC_REFT π
- OPAQUE_STRUCT π
- DispatchKey
- Logic to dispatch a
def_id to a provider (local, external, or default).
This is a trait so it can be implemented for [DefId] and for FluxDefId.
- run_with_cache π
- try_query
- Cache π
- QueryResult