Add fuzzing to the parser.

As part of this, todos and panics where moved outside of this module
to elsewhere when they would cause fuzzing to fail.
This commit is contained in:
Brendan Hansknecht 2020-10-30 22:04:54 -07:00
parent ad31975b97
commit d00189530a
16 changed files with 314 additions and 32 deletions

View file

@ -277,6 +277,8 @@ pub enum Def<'a> {
/// This is used only to avoid cloning when reordering expressions (e.g. in desugar()).
/// It lets us take a (&Def) and create a plain (Def) from it.
Nested(&'a Def<'a>),
NotYetImplemented(&'static str),
}
#[derive(Debug, Clone, PartialEq)]