remove Nested from Def

This commit is contained in:
Folkert 2021-03-21 21:14:32 +01:00
parent 52854a6f57
commit ce98da9d04
6 changed files with 9 additions and 31 deletions

View file

@ -204,10 +204,6 @@ pub enum Def<'a> {
SpaceBefore(&'a Def<'a>, &'a [CommentOrNewline<'a>]),
SpaceAfter(&'a Def<'a>, &'a [CommentOrNewline<'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),
}