tvl-depot/tvix/eval/src/warnings.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
339 B
Rust
Raw Normal View History

//! Implements warnings that are emitted in cases where code passed to
//! Tvix exhibits problems that the user could address.
#[derive(Debug)]
pub enum WarningKind {
DeprecatedLiteralURL,
UselessInherit,
UnusedBinding,
}
#[derive(Debug)]
pub struct EvalWarning {
pub node: rnix::SyntaxNode,
pub kind: WarningKind,
}