Expand description
The translation contexts.
Re-exportsΒ§
use super::translate_crate::RustcItem;πpub use super::translate_crate::TransItemSource;use super::translate_generics::BindingLevel;πuse super::translate_generics::LifetimeMutabilityComputer;πuse crate::frontend as front;πuse crate::frontend::SInto;πuse charon_lib::formatter::FmtCtx;πuse charon_lib::formatter::IntoFormatter;πuse charon_lib::ids::IndexVec;πuse charon_lib::options::TranslateOptions;πuse petgraph::graphmap::DiGraphMap;πuse rustc_hash::FxHashMap as HashMap;πuse rustc_hash::FxHashSet as HashSet;πuse rustc_middle::ty::TyCtxt;πuse rustc_span::def_id::DefId as RDefId;πuse std::borrow::Cow;πuse std::cell::RefCell;πuse std::collections::VecDeque;πuse std::fmt::Debug;πuse std::fmt::Debug;πuse std::ops::Deref;πuse std::ops::DerefMut;πuse std::path::PathBuf;πuse std::sync::Arc;πuse std::fmt;πuse std::mem;πuse charon_lib::ast::*;π
MacrosΒ§
- error_
assert π - Custom assert to either panic or return an error
- raise_
error π - Macro to either panic or return on error, depending on the CLI options
- register_
error π
StructsΒ§
- DepSource π
- We use this to save the origin of an id. This is useful for the external dependencies, especially if some external dependencies donβt extract: we use this information to tell the user what is the code which (transitively) lead to the extraction of those problematic dependencies.
- Error
Ctx π - The context for tracking and reporting errors.
- Item
Trans πCtx - A translation context for items. Augments the TranslateCtx with type-level variables.
- Level π
- Severity level for [
Title]s and [Message]s - Translate
Ctx - Translation context used while translating the crate data into our representation.
EnumsΒ§
- Containment
Node - Nodes in the containment graph used to compute
ItemMeta::started_from. - Exported
Fns - The functions exported under a given symbol.
- Item
OrModule Id - Item
OrModule Kind - Method
Status - Tracks whether a method is used (i.e. called or (non-opaquely) implemented).
FunctionsΒ§
- catch_
sinto - Translates
TintoUusingfrontendβsSIntotrait, catching any frontend panics.