rustc_builtin_macros::util

Type Alias UnexpectedExprKind

source
type UnexpectedExprKind<'a> = Result<(Diag<'a>, bool), ErrorGuaranteed>;
Expand description
  • Ok is returned when the conversion to a string literal is unsuccessful, but another type of expression is obtained instead.
  • Err is returned when the conversion process fails.

Aliased Type§

enum UnexpectedExprKind<'a> {
    Ok((Diag<'a>, bool)),
    Err(ErrorGuaranteed),
}

Variants§

§

Ok((Diag<'a>, bool))

Contains the success value

§

Err(ErrorGuaranteed)

Contains the error value

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: 32 bytes

Size for each variant:

  • Ok: 32 bytes
  • Err: 0 bytes