pub struct Context<'a> {
pub names: &'a Interner,
pub target: &'a TargetInfo,
pub std: Std,
pub gnu: bool,
pub pedantic: bool,
pub error_limit: usize,
}Expand description
What the checking needs and does not change.
Fields§
§names: &'a InternerThe spellings, for the diagnostics that name an identifier.
target: &'a TargetInfoWhat the target’s types are, which every layout and every promotion is decided by.
std: StdThe dialect.
gnu: boolWhether the GNU extensions are on.
pedantic: boolWhether -pedantic was given.
error_limit: usizeHow many errors to report before stopping, with zero meaning no limit.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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