Skip to main content

effective_constructor_mir_mode

Function effective_constructor_mir_mode 

Source
pub(crate) fn effective_constructor_mir_mode(
    tcx: TyCtxt<'_>,
    callee: DefId,
    mode: ConstructorMirMode,
) -> ConstructorMirMode
Expand description

Resolve default to false when the constructor’s direct result has an invariant. Otherwise retain the CLI mode for MIR versus call summaries.