diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-05T02·12+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-11T10·32+0000 |
commit | f86327beac05de96e01ede78a3cfd4d57e8319a5 (patch) | |
tree | 912631720e44fdef955eaed1bec38c21f8656b86 /tvix/eval/src/warnings.rs | |
parent | 41b6586ee155a7712e8856b8a03aac41d602d8ba (diff) |
feat(tvix/eval): implement "formals" function parameters r/4790
The comment explains how this works fairly well. Note that this does not yet have the ability to check "closed formals", i.e. without an ellipsis Tvix will *NOT* fail if unexpected attribute set keys are provided. Change-Id: I0d2b77e893243093d2789baa57f876d35d0a32ff Reviewed-on: https://cl.tvl.fyi/c/depot/+/6463 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to '')
-rw-r--r-- | tvix/eval/src/warnings.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tvix/eval/src/warnings.rs b/tvix/eval/src/warnings.rs index faf786d848d3..3bae2554cff1 100644 --- a/tvix/eval/src/warnings.rs +++ b/tvix/eval/src/warnings.rs @@ -7,6 +7,10 @@ pub enum WarningKind { UselessInherit, UnusedBinding, ShadowedGlobal(&'static str), + + /// Tvix internal warning for features triggered by users that are + /// not actually implemented yet. + NotImplemented(&'static str), } #[derive(Debug)] |