ProvidedValue in rustc_middle::queries::anon_const_kind - Rust
Description: Type returned from query providers and loaded from disk-cache.

Skip to main content

## ProvidedValue

# Type Alias ProvidedValue

Source

    pub type ProvidedValue<'tcx> = Value<'tcx>;

Expand description

Type returned from query providers and loaded from disk-cache.

## Aliased Type§

    pub enum ProvidedValue<'tcx> {
        GCE,
        MCG,
        GCA,
        RepeatExprCount,
        NonTypeSystem,
    }

## Variants§

§

### GCE

`feature(generic_const_exprs)` anon consts are allowed to use arbitrary generic parameters in scope

§

### MCG

stable `min_const_generics` anon consts are not allowed to use any generic parameters

§

### GCA

`feature(generic_const_args)` anon consts are allowed to use arbitrary generic parameters in scope, but only if they syntactically reference them.

§

### RepeatExprCount

anon consts used as the length of a repeat expr are syntactically allowed to use generic parameters but must not depend on the actual instantiation. See #76200 for more information

§

### NonTypeSystem

anon consts outside of the type system, e.g. enum discriminants

## 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: 1 byte

Size for each variant:

- `GCE`: 0 bytes
- `MCG`: 0 bytes
- `GCA`: 0 bytes
- `RepeatExprCount`: 0 bytes
- `NonTypeSystem`: 0 bytes