diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-25 14:34:31 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-25 14:34:31 +0100 |
| commit | 76aabbe99d598dc42e8e3723d98516422bd26d33 (patch) | |
| tree | 3beefd7e656624cba83b6c3f503459de1ac2e299 /src/comp/util | |
| parent | 8420f8c52e5946f64d93c721d0f673b49ad966f7 (diff) | |
| download | rust-76aabbe99d598dc42e8e3723d98516422bd26d33.tar.gz rust-76aabbe99d598dc42e8e3723d98516422bd26d33.zip | |
Rename tag to enum throughout the compiler
This should reduce confusion of people trying to read the code.
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/ppaux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index 11ccd1cc71f..69108be1e55 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -72,7 +72,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str { alt ty_name(cx, typ) { some(cs) { alt struct(cx, typ) { - ty_tag(_, tps) | ty_res(_, _, tps) { + ty_enum(_, tps) | ty_res(_, _, tps) { if vec::len(tps) > 0u { let strs = vec::map(tps, {|t| ty_to_str(cx, t)}); ret *cs + "<" + str::connect(strs, ",") + ">"; |
