pub enum WarningOverride {
None,
Strict,
EngineDefaults,
}Expand description
Re-exported so clients can set the warning-strictness override without depending on
gdscript-db directly. See AnalysisHost::set_warning_override.
The database trait gdscript-hir / gdscript-ide depend on. #[salsa::db] on the trait
makes it a salsa supertrait, so any &dyn Db upcasts to &dyn salsa::Database and every
#[salsa::tracked] free function downstream can take db: &dyn Db.
A host/CLI-level override of the warning-strictness baseline type_diagnostics resolves against
(regardless of project.godot presence). A plain (non-salsa) per-session policy knob: it is read
only inside the non-tracked type_diagnostics, so it never enters the salsa query graph and
cannot break the W1 firewall (a warning-level change must never re-run inference).
Variants§
None
Auto-select by project presence (the default): standalone ⇒ strict, project ⇒ engine defaults.
Strict
Force the strict baseline (the opt-in group promoted to WARN) even with a project.godot.
EngineDefaults
Force Godot’s engine defaults (the opt-in group stays IGNORE) even in standalone mode.
Trait Implementations§
Source§impl Clone for WarningOverride
impl Clone for WarningOverride
Source§fn clone(&self) -> WarningOverride
fn clone(&self) -> WarningOverride
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WarningOverride
Source§impl Debug for WarningOverride
impl Debug for WarningOverride
Source§impl Default for WarningOverride
impl Default for WarningOverride
Source§fn default() -> WarningOverride
fn default() -> WarningOverride
impl Eq for WarningOverride
Source§impl PartialEq for WarningOverride
impl PartialEq for WarningOverride
Source§fn eq(&self, other: &WarningOverride) -> bool
fn eq(&self, other: &WarningOverride) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WarningOverride
Auto Trait Implementations§
impl Freeze for WarningOverride
impl RefUnwindSafe for WarningOverride
impl Send for WarningOverride
impl Sync for WarningOverride
impl Unpin for WarningOverride
impl UnsafeUnpin for WarningOverride
impl UnwindSafe for WarningOverride
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.