rustc: Fix long lines

This commit is contained in:
Patrick Walton 2012-01-19 14:34:23 -08:00
parent bdb8f6cf52
commit daaeac56b1
3 changed files with 6 additions and 5 deletions

View File

@ -738,8 +738,8 @@ fn GEP_tup_like(bcx: @block_ctxt, t: ty::t, base: ValueRef, ixs: [int])
// Replacement for the LLVM 'GEP' instruction when field indexing into a enum.
// This function uses GEP_tup_like() above and automatically performs casts as
// appropriate. @llblobptr is the data part of a enum value; its actual type is
// meaningless, as it will be cast away.
// appropriate. @llblobptr is the data part of a enum value; its actual type
// is meaningless, as it will be cast away.
fn GEP_tag(cx: @block_ctxt, llblobptr: ValueRef, tag_id: ast::def_id,
variant_id: ast::def_id, ty_substs: [ty::t],
ix: uint) : valid_variant_index(ix, cx, tag_id, variant_id) ->

View File

@ -16,7 +16,8 @@ import syntax::print::pprust::pat_to_str;
import trans_common::*;
// An option identifying a branch (either a literal, a enum variant or a range)
// An option identifying a branch (either a literal, a enum variant or a
// range)
enum opt {
lit(@ast::expr);
var(/* disr val */int, /* variant dids */{tg: def_id, var: def_id});

View File

@ -68,8 +68,8 @@ enum crate_directive_ {
// NB: cdir_view_item is *not* processed by the rest of the compiler; the
// attached view_items are sunk into the crate's module during parsing,
// and processed (resolved, imported, etc.) there. This enum-variant exists
// only to preserve the view items in order in case we decide to
// and processed (resolved, imported, etc.) there. This enum-variant
// exists only to preserve the view items in order in case we decide to
// pretty-print crates in the future.
cdir_view_item(@view_item);