Move pretty-printing 'modes' into a callback hook

This way, the pretty-printer does not have to know about middle::ty.

(This is a preparation for separating the AST functionality into a
separate crate.)
This commit is contained in:
Marijn Haverbeke
2011-07-05 10:38:35 +02:00
parent 001397da3c
commit 04acba7968
4 changed files with 85 additions and 73 deletions

View File

@@ -25,7 +25,6 @@ import pretty::pprust::print_decl;
import pretty::pprust::print_fn;
import pretty::pprust::print_type;
import pretty::ppaux::print_literal;
import pretty::ppaux::mo_untyped;
import pretty::pp::mk_printer;
type filename = str;