pub struct MergedAnalysisState {
pub strings: Vec<String>,
pub string_map: HashMap<String, u32>,
pub warnings: Vec<CompileWarning>,
}Expand description
Merged state from multiple function analyses.
This is the result of merging all FunctionAnalysisState instances
after parallel analysis completes.
§Note on Array Types
Array types are handled by the shared TypeInternPool in SemaContext.
They are no longer merged here.
Fields§
§strings: Vec<String>All string literals (deduplicated).
string_map: HashMap<String, u32>Mapping from string content to final index.
warnings: Vec<CompileWarning>All warnings from all functions.
Implementations§
Source§impl MergedAnalysisState
impl MergedAnalysisState
Sourcepub fn merge_function_state(
&mut self,
state: FunctionAnalysisState,
) -> AnalysisStateRemapping
pub fn merge_function_state( &mut self, state: FunctionAnalysisState, ) -> AnalysisStateRemapping
Merge a function’s analysis state into this merged state.
Returns a remapping for string indices so the function’s AIR can be updated with the final IDs.
§Note
Array type merging is no longer needed.
Array types go directly to the shared TypeInternPool.
Trait Implementations§
Source§impl Debug for MergedAnalysisState
impl Debug for MergedAnalysisState
Source§impl Default for MergedAnalysisState
impl Default for MergedAnalysisState
Source§fn default() -> MergedAnalysisState
fn default() -> MergedAnalysisState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MergedAnalysisState
impl RefUnwindSafe for MergedAnalysisState
impl Send for MergedAnalysisState
impl Sync for MergedAnalysisState
impl Unpin for MergedAnalysisState
impl UnwindSafe for MergedAnalysisState
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