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

                                                                      

                

                         
                   
                  
                                 
 


                        
                          
                            
 
//! 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,
    ShadowedGlobal(&'static str),
}

#[derive(Debug)]
pub struct EvalWarning {
    pub kind: WarningKind,
    pub span: codemap::Span,
}