From daaeac56b13ad812783f1d43c640231d4f12270a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 19 Jan 2012 14:34:23 -0800 Subject: [PATCH] rustc: Fix long lines --- src/comp/middle/trans.rs | 4 ++-- src/comp/middle/trans_alt.rs | 3 ++- src/comp/syntax/ast.rs | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 8b85b78fde1..9f75d0d1c77 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -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) -> diff --git a/src/comp/middle/trans_alt.rs b/src/comp/middle/trans_alt.rs index dbe46f6e456..f4fb7a1470e 100644 --- a/src/comp/middle/trans_alt.rs +++ b/src/comp/middle/trans_alt.rs @@ -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}); diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index a8bbf75aaa2..a01ce730236 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -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);