about summary refs log blame commit diff
path: root/tvix/eval/src/warnings.rs
blob: 953f93ff467edebd60d8f367d017320748bc16b9 (plain) (tree)
1
2
3
4
5
6
7
8



                                                                    

                         
                   
 





                               
/// 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,
}