Skip to main content

Module diagnostic

Module diagnostic 

Source
Expand description

Contains the data structures used by the diagnostic attribute family.

Re-exportsΒ§

use std::fmt; πŸ”’
use std::fmt::Debug; πŸ”’
use std::fmt::Debug; πŸ”’
use rustc_macros::Decodable; πŸ”’
use rustc_macros::Encodable; πŸ”’
use rustc_macros::PrintAttribute; πŸ”’
use rustc_macros::StableHash; πŸ”’
use rustc_span::DesugaringKind; πŸ”’
use rustc_span::Span; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_span::kw; πŸ”’
use thin_vec::ThinVec; πŸ”’
use tracing::debug; πŸ”’
use crate::PrintAttribute; πŸ”’

StructsΒ§

CustomDiagnostic
A custom diagnostic, created from a diagnostic attribute.
Directive
Filter
Represents the on filter in #[rustc_on_unimplemented].
FilterFormatString
Represents a value inside an on filter.
FilterOptions
Used with Filter::matches_predicate to evaluate the Filter.
FormatArgs
Arguments to fill a FormatString with.
FormatString
Like std::fmt::Arguments this is a string that has been parsed into β€œpieces”, either as string pieces or dynamic arguments.
NameValue
A MetaNameValueStr in an on-filter.

EnumsΒ§

Flag
Represents a MetaWord in an on-filter.
FlagOrNv
FormatArg
LitOrArg
Name
The valid names of the on filter.
Piece
Predicate
Predicate(s) in #[rustc_on_unimplemented]’s on filter. See Filter.