Skip to main content

SkipReason

Enum SkipReason 

Source
pub enum SkipReason {
Show 19 variants EmptyBody, BindingOnlyTail, MissingResolution, BindingSlotLookupMissing, PatternSlotShortfall, BuiltinCtorConstruction, BuiltinCtorPattern, UnresolvedCtor, UnsupportedCallee, BuiltinRecord, UnsupportedTry, UnsupportedTailCall, UnsupportedList, UnsupportedTuple, UnsupportedMap, UnsupportedInterpolatedStr, UnsupportedIndependentProduct, UnresolvedIdent, UnsupportedOther,
}
Expand description

Why a single ResolvedFnDef failed to lower.

One variant per source-level reason — the dominant unsupported shape inside the fn body. Wave PRs sequentially remove reasons from the live set; once the set is empty the lowerer is corpus-complete on the shipped examples.

Variants§

§

EmptyBody

ResolvedFnDef.body had no statements. Frontend should have rejected this earlier; recorded for safety.

§

BindingOnlyTail

Single-stmt body whose only statement is a binding (no tail expression). Well-typed Aver can’t produce this, but the lowerer guards anyway.

§

MissingResolution

Multi-stmt body, FnResolution not populated by the resolver pass — usually means the fn wasn’t visited.

§

BindingSlotLookupMissing

Binding referenced by name didn’t resolve to a slot via FnResolution.local_slots. Indicates a resolver gap.

§

PatternSlotShortfall

Match arm’s binding_slots had fewer slots than the pattern’s preorder binding count. Indicates a resolver / pattern desync.

§

BuiltinCtorConstruction

Built-in constructor construction (Result.Ok(v), Option.Some(v), …) — wave 3c-i territory. Built-in ctors need a typed identity story beyond raw CtorId.

§

BuiltinCtorPattern

Built-in constructor pattern (Result.Ok(v) -> ..., Option.Some(v) -> ...) — same wave 3c-i territory as the construction side.

§

UnresolvedCtor

Result-like ctor whose CtorId didn’t resolve — usually a typecheck error that leaked past the gate. Drops the fn rather than panic on a half-resolved ctor.

§

UnsupportedCallee

First-class fn value / intrinsic / unresolved call target. Wave 3c-iii (closures / intrinsics) territory.

§

BuiltinRecord

Record{...} / Record{base & ...} on a built-in type (HttpResponse, Header, Buffer, …) with no TypeId. Wave 3c-i / 3c-iv territory depending on the type.

§

UnsupportedTry

Try (the ? propagation node) — wave 3c-ii.

§

UnsupportedTailCall

Tail call — wave 3c-iii.

§

UnsupportedList

List literal — wave 3c-iv.

§

UnsupportedTuple

Tuple literal — wave 3c-iv.

§

UnsupportedMap

Map literal — wave 3c-iv.

§

UnsupportedInterpolatedStr

Interpolated string — wave 3c-iv.

§

UnsupportedIndependentProduct

IndependentProduct (?! / !) — wave 3c-v.

§

UnresolvedIdent

Unresolved top-level Ident that survived past the resolver — usually a resolver gap. Drops the fn rather than emit a half-resolved name.

§

UnsupportedOther

A ResolvedExpr variant the lowerer doesn’t recognise at all. Should be empty after wave 3c lands — anything here points to a missed variant.

Implementations§

Source§

impl SkipReason

Source

pub fn label(self) -> &'static str

Short human-readable label for dumps / diagnostics.

Trait Implementations§

Source§

impl Clone for SkipReason

Source§

fn clone(&self) -> SkipReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SkipReason

Source§

impl Debug for SkipReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SkipReason

Source§

impl Hash for SkipReason

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SkipReason

Source§

fn eq(&self, other: &SkipReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SkipReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V