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

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

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