Hoist exported wrapper functionality into a family of traits.

All the existing code still uses the concrete implementations, so this
shouldn't impact the generated code at all.
This commit is contained in:
Bobby Holley 2015-11-17 14:20:47 -08:00
parent acbe413052
commit 54f2700ba6
6 changed files with 297 additions and 198 deletions

View file

@ -31,7 +31,7 @@ use util::arc_ptr_eq;
use util::cache::{LRUCache, SimpleHashCache};
use util::opts;
use util::vec::ForgetfulSink;
use wrapper::{LayoutElement, LayoutNode};
use wrapper::{LayoutElement, LayoutElementTrait, LayoutNode, LayoutNodeTrait};
pub struct ApplicableDeclarations {
pub normal: SmallVec<[DeclarationBlock; 16]>,