Suggestions in rustc_errors - Rust (original) (raw)
pub enum Suggestions {
Enabled(Vec<CodeSuggestion>),
Sealed(Box<[CodeSuggestion]>),
Disabled,
}
Expand description
Represents the help messages seen on a diagnostic.
Indicates that new suggestions can be added or removed from this diagnostic.
DiagInner
’s new_* methods initialize the suggestions
field with this variant. Also, this is the default variant for Suggestions
.
Indicates that suggestions cannot be added or removed from this diagnostic.
Gets toggled when .seal_suggestions()
is called on the DiagInner
.
Indicates that no suggestion is available for this diagnostic.
Gets toggled when .disable_suggestions()
is called on the DiagInner
.
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: 24 bytes
Size for each variant:
Enabled
: 24 bytesSealed
: 24 bytesDisabled
: 0 bytes