Enum rustc_codegen_ssa::back::write::WorkItemResult
source · pub(crate) enum WorkItemResult<B: WriteBackendMethods> {
Finished(CompiledModule),
NeedsLink(ModuleCodegen<B::Module>),
NeedsFatLto(FatLtoInput<B>),
NeedsThinLto(String, B::ThinBuffer),
}
Expand description
A result produced by the backend.
Variants§
Finished(CompiledModule)
The backend has finished compiling a CGU, nothing more required.
NeedsLink(ModuleCodegen<B::Module>)
The backend has finished compiling a CGU, which now needs linking
because -Zcombine-cgu
was specified.
NeedsFatLto(FatLtoInput<B>)
The backend has finished compiling a CGU, which now needs to go through fat LTO.
NeedsThinLto(String, B::ThinBuffer)
The backend has finished compiling a CGU, which now needs to go through thin LTO.
Auto Trait Implementations§
impl<B> RefUnwindSafe for WorkItemResult<B>where <B as WriteBackendMethods>::Module: RefUnwindSafe, <B as WriteBackendMethods>::ModuleBuffer: RefUnwindSafe, <B as WriteBackendMethods>::ThinBuffer: RefUnwindSafe,
impl<B> Send for WorkItemResult<B>
impl<B> Sync for WorkItemResult<B>
impl<B> Unpin for WorkItemResult<B>where <B as WriteBackendMethods>::Module: Unpin, <B as WriteBackendMethods>::ModuleBuffer: Unpin, <B as WriteBackendMethods>::ThinBuffer: Unpin,
impl<B> UnwindSafe for WorkItemResult<B>where <B as WriteBackendMethods>::Module: UnwindSafe, <B as WriteBackendMethods>::ModuleBuffer: UnwindSafe, <B as WriteBackendMethods>::ThinBuffer: UnwindSafe,
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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.