pub struct HirQuery {
pub arenas: HirArenas,
pub parts: Vec<QueryPart>,
pub diagnostics: Vec<HirDiagnostic>,
}Available on crate feature
hir only.Expand description
A fully lowered and scope-resolved HIR query.
Produced by lower::lower from a parsed crate::ast::query::Query.
Contains all arenas and the pipeline of query parts.
Note:
lower()currently returnsErr(Diagnostics)whenever any diagnostic is produced, so successfulHirQueryvalues always have an emptydiagnosticsvector. Non-fatal warning support may be added in a future release.
Fields§
§arenas: HirArenasArena storage for scopes, bindings, and expressions.
parts: Vec<QueryPart>The sequence of query parts (pipeline stages).
diagnostics: Vec<HirDiagnostic>Reserved for future non-fatal semantic diagnostics.
Currently always empty: lower() returns Err on the first
diagnostic rather than accumulating warnings here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HirQuery
impl RefUnwindSafe for HirQuery
impl Send for HirQuery
impl Sync for HirQuery
impl Unpin for HirQuery
impl UnsafeUnpin for HirQuery
impl UnwindSafe for HirQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more