Struct rustc_const_eval::transform::check_consts::ops::FnCallUnstable
source · Expand description
A call to an #[unstable]
const fn or #[rustc_const_unstable]
function.
Contains the name of the feature that would allow the use of this function.
Tuple Fields§
§0: DefId
§1: Option<Symbol>
Trait Implementations§
source§impl Debug for FnCallUnstable
impl Debug for FnCallUnstable
source§impl<'tcx> NonConstOp<'tcx> for FnCallUnstable
impl<'tcx> NonConstOp<'tcx> for FnCallUnstable
fn build_error(
&self,
ccx: &ConstCx<'_, 'tcx>,
span: Span
) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>
source§fn status_in_item(&self, _ccx: &ConstCx<'_, 'tcx>) -> Status
fn status_in_item(&self, _ccx: &ConstCx<'_, 'tcx>) -> Status
Returns an enum indicating whether this operation is allowed within the given item.
fn importance(&self) -> DiagnosticImportance
Auto Trait Implementations§
impl RefUnwindSafe for FnCallUnstable
impl Send for FnCallUnstable
impl Sync for FnCallUnstable
impl Unpin for FnCallUnstable
impl UnwindSafe for FnCallUnstable
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes