about summary refs log tree commit diff
path: root/tvix/eval/src/warnings.rs
blob: 44e47793c5ddabb7afdaf2e02eca578b84f85289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Warnings are emitted in cases where code passed to Tvix exhibits
/// problems that the user could address.

#[derive(Debug)]
pub enum WarningKind {
    DeprecatedLiteralURL,
}

#[derive(Debug)]
pub struct EvalWarning {
    pub node: rnix::SyntaxNode,
    pub kind: WarningKind,
}