]> git.lizzy.rs Git - rust.git/commitdiff
Fixed error starting with uppercase
authormr.Shu <mr@shu.io>
Thu, 6 Feb 2014 09:38:08 +0000 (10:38 +0100)
committermr.Shu <mr@shu.io>
Sat, 8 Feb 2014 19:59:38 +0000 (20:59 +0100)
Error messages cleaned in librustc/middle

Error messages cleaned in libsyntax

Error messages cleaned in libsyntax more agressively

Error messages cleaned in librustc more aggressively

Fixed affected tests

Fixed other failing tests

Last failing tests fixed

74 files changed:
src/librustc/back/link.rs
src/librustc/driver/session.rs
src/librustc/metadata/tydecode.rs
src/librustc/metadata/tyencode.rs
src/librustc/middle/borrowck/gather_loans/lifetime.rs
src/librustc/middle/borrowck/gather_loans/mod.rs
src/librustc/middle/borrowck/mod.rs
src/librustc/middle/borrowck/move_data.rs
src/librustc/middle/cfg/construct.rs
src/librustc/middle/check_match.rs
src/librustc/middle/const_eval.rs
src/librustc/middle/dataflow.rs
src/librustc/middle/liveness.rs
src/librustc/middle/mem_categorization.rs
src/librustc/middle/region.rs
src/librustc/middle/resolve.rs
src/librustc/middle/resolve_lifetime.rs
src/librustc/middle/trans/_match.rs
src/librustc/middle/trans/adt.rs
src/librustc/middle/trans/callee.rs
src/librustc/middle/trans/cleanup.rs
src/librustc/middle/trans/common.rs
src/librustc/middle/trans/consts.rs
src/librustc/middle/trans/debuginfo.rs
src/librustc/middle/trans/foreign.rs
src/librustc/middle/trans/intrinsic.rs
src/librustc/middle/trans/monomorphize.rs
src/librustc/middle/trans/reflect.rs
src/librustc/middle/trans/tvec.rs
src/librustc/middle/ty.rs
src/librustc/middle/typeck/check/method.rs
src/librustc/middle/typeck/check/mod.rs
src/librustc/middle/typeck/check/regionck.rs
src/librustc/middle/typeck/collect.rs
src/librustc/middle/typeck/infer/coercion.rs
src/librustc/middle/typeck/infer/lattice.rs
src/librustc/middle/typeck/infer/region_inference/mod.rs
src/librustc/middle/typeck/infer/test.rs
src/librustc/middle/typeck/variance.rs
src/librustc/util/sha2.rs
src/libsyntax/abi.rs
src/libsyntax/ext/bytes.rs
src/libsyntax/ext/deriving/clone.rs
src/libsyntax/ext/deriving/cmp/ord.rs
src/libsyntax/ext/deriving/cmp/totalord.rs
src/libsyntax/ext/deriving/generic.rs
src/libsyntax/ext/deriving/iter_bytes.rs
src/libsyntax/ext/deriving/primitive.rs
src/libsyntax/ext/deriving/ty.rs
src/libsyntax/ext/quote.rs
src/libsyntax/ext/registrar.rs
src/libsyntax/ext/tt/macro_parser.rs
src/libsyntax/ext/tt/transcribe.rs
src/libsyntax/opt_vec.rs
src/libsyntax/parse/obsolete.rs
src/libsyntax/parse/parser.rs
src/libsyntax/util/small_vector.rs
src/test/compile-fail/issue-2354.rs
src/test/compile-fail/issue-3038.rs
src/test/compile-fail/issue-3953.rs
src/test/compile-fail/multiple-macro-registrars.rs
src/test/compile-fail/non-constant-expr-for-fixed-len-vec.rs
src/test/compile-fail/struct-no-fields-2.rs
src/test/compile-fail/struct-no-fields-3.rs
src/test/compile-fail/struct-no-fields-4.rs
src/test/compile-fail/struct-no-fields-5.rs
src/test/compile-fail/struct-no-fields.rs
src/test/compile-fail/syntax-extension-bytes-non-ascii-char-literal.rs
src/test/compile-fail/syntax-extension-bytes-non-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-large-integer-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-large-u8-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-small-u8-literal.rs
src/test/compile-fail/syntax-extension-bytes-unsupported-literal.rs

index 62fdff49168aaff3d985f726bb6a2df800a3f102..531b8bf9034579a8b69a1c28fbbef4d46df707e2 100644 (file)
@@ -76,7 +76,7 @@ pub fn WriteOutputFile(
             let result = llvm::LLVMRustWriteOutputFile(
                     Target, PM, M, Output, FileType);
             if !result {
-                llvm_err(sess, ~"Could not write output");
+                llvm_err(sess, ~"could not write output");
             }
         })
     }
@@ -189,7 +189,7 @@ pub fn run_passes(sess: Session,
             for pass in sess.opts.custom_passes.iter() {
                 pass.with_c_str(|s| {
                     if !llvm::LLVMRustAddPass(mpm, s) {
-                        sess.warn(format!("Unknown pass {}, ignoring", *pass));
+                        sess.warn(format!("unknown pass {}, ignoring", *pass));
                     }
                 })
             }
@@ -876,11 +876,11 @@ fn link_binary_output(sess: Session,
     let obj_is_writeable = is_writeable(&obj_filename);
     let out_is_writeable = is_writeable(&out_filename);
     if !out_is_writeable {
-        sess.fatal(format!("Output file {} is not writeable -- check its permissions.",
+        sess.fatal(format!("output file {} is not writeable -- check its permissions.",
                            out_filename.display()));
     }
     else if !obj_is_writeable {
-        sess.fatal(format!("Object file {} is not writeable -- check its permissions.",
+        sess.fatal(format!("object file {} is not writeable -- check its permissions.",
                            obj_filename.display()));
     }
 
index 6fb7e749475044ff098d3724ea9329b6cce0a19a..dc8598c10d0d05d91c99ccb996a37426162c9797 100644 (file)
@@ -308,7 +308,7 @@ pub fn debugging_opt(&self, opt: u64) -> bool {
     // This exists to help with refactoring to eliminate impossible
     // cases later on
     pub fn impossible_case(&self, sp: Span, msg: &str) -> ! {
-        self.span_bug(sp, format!("Impossible case reached: {}", msg));
+        self.span_bug(sp, format!("impossible case reached: {}", msg));
     }
     pub fn verbose(&self) -> bool { self.debugging_opt(VERBOSE) }
     pub fn time_passes(&self) -> bool { self.debugging_opt(TIME_PASSES) }
index 8da097a1b6a2da25d87f664979af5990701c8106..42e4d986837be4e64e5c744bd2babfd15a4273cf 100644 (file)
@@ -527,7 +527,7 @@ fn parse_sig(st: &mut PState, conv: conv_did) -> ty::FnSig {
     let variadic = match next(st) {
         'V' => true,
         'N' => false,
-        r => fail!(format!("Bad variadic: {}", r)),
+        r => fail!(format!("bad variadic: {}", r)),
     };
     let ret_ty = parse_ty(st, |x,y| conv(x,y));
     ty::FnSig {binder_id: id,
index 4f6ac8607ee1b055a179e75379a6840e992733d5..08632b5c9a6e0b3a325a4789a7f4f3060cdf2df1 100644 (file)
@@ -195,7 +195,7 @@ fn enc_region(w: &mut MemWriter, cx: @ctxt, r: ty::Region) {
         }
         ty::ReInfer(_) => {
             // these should not crop up after typeck
-            cx.diag.handler().bug("Cannot encode region variables");
+            cx.diag.handler().bug("cannot encode region variables");
         }
     }
 }
@@ -320,7 +320,7 @@ fn enc_sty(w: &mut MemWriter, cx: @ctxt, st: &ty::sty) {
             enc_bare_fn_ty(w, cx, f);
         }
         ty::ty_infer(_) => {
-            cx.diag.handler().bug("Cannot encode inference variable types");
+            cx.diag.handler().bug("cannot encode inference variable types");
         }
         ty::ty_param(param_ty {idx: id, def_id: did}) => {
             mywrite!(w, "p{}|{}", (cx.ds)(did), id);
@@ -334,7 +334,7 @@ fn enc_sty(w: &mut MemWriter, cx: @ctxt, st: &ty::sty) {
             enc_substs(w, cx, substs);
             mywrite!(w, "]");
         }
-        ty::ty_err => fail!("Shouldn't encode error type")
+        ty::ty_err => fail!("shouldn't encode error type")
     }
 }
 
index 4c2f0986d9cc21e5ff7180ed618929d053a6a468..e151f39845860c03f26e0e633cbbdf678b75fa9b 100644 (file)
@@ -215,7 +215,7 @@ fn check_root(&self,
                 // the check above should fail for anything is not ReScope
                 self.bccx.tcx.sess.span_bug(
                     cmt_base.span,
-                    format!("Cannot issue root for scope region: {:?}",
+                    format!("cannot issue root for scope region: {:?}",
                          self.loan_region));
             }
         };
index 38d54ddfb4201de115fa84dfefef55cd375c0f49..173120e32f5caab7c9f2a81af3bf05ed6d040c58 100644 (file)
@@ -496,7 +496,7 @@ pub fn guarantee_valid(&mut self,
                     ty::ReInfer(..) => {
                         self.tcx().sess.span_bug(
                             cmt.span,
-                            format!("Invalid borrow lifetime: {:?}", loan_region));
+                            format!("invalid borrow lifetime: {:?}", loan_region));
                     }
                 };
                 debug!("loan_scope = {:?}", loan_scope);
@@ -820,7 +820,7 @@ pub fn vec_slice_info(&self, pat: &ast::Pat, slice_ty: ty::t)
             _ => {
                 self.tcx().sess.span_bug(
                     pat.span,
-                    format!("Type of slice pattern is not a slice"));
+                    format!("type of slice pattern is not a slice"));
             }
         }
     }
index 8f6d4de476b13866f6490a0076a53d1bf57acff0..6f3578f667de0e8c7a5def55c4524a5c62cfc459 100644 (file)
@@ -769,14 +769,14 @@ pub fn append_loan_path_to_str(&self,
                             }
                             _ => {
                                 self.tcx.sess.bug(
-                                    format!("Loan path LpVar({:?}) maps to {:?}, not local",
+                                    format!("loan path LpVar({:?}) maps to {:?}, not local",
                                         id, pat));
                             }
                         }
                     }
                     r => {
                         self.tcx.sess.bug(
-                            format!("Loan path LpVar({:?}) maps to {:?}, not local",
+                            format!("loan path LpVar({:?}) maps to {:?}, not local",
                                  id, r));
                     }
                 }
index ca9bce19ab8a610d0989493e741ba70f2a9fe6cd..75549c5944df76cb90310598e44a4f5ec9a9b1ef 100644 (file)
@@ -494,7 +494,7 @@ fn add_gen_kills(&self,
                         dfcx_assign.add_kill(kill_id, assignment_index);
                     }
                     LpExtend(..) => {
-                        tcx.sess.bug("Var assignment for non var path");
+                        tcx.sess.bug("var assignment for non var path");
                     }
                 }
             }
index eb9c434ca28497192744ba58383873e14fa39f2c..9c213558d9ca507c77d04780933663d78c320dd1 100644 (file)
@@ -507,13 +507,13 @@ fn find_scope(&self,
                         }
                         self.tcx.sess.span_bug(
                             expr.span,
-                            format!("No loop scope for id {:?}", loop_id));
+                            format!("no loop scope for id {:?}", loop_id));
                     }
 
                     r => {
                         self.tcx.sess.span_bug(
                             expr.span,
-                            format!("Bad entry `{:?}` in def_map for label", r));
+                            format!("bad entry `{:?}` in def_map for label", r));
                     }
                 }
             }
index d402305401eb96ecc103d80940bf72050278090f..ab9eff3a372c62ea20eba32fd20f9320f3e94615 100644 (file)
@@ -971,7 +971,7 @@ fn check_legality_of_move_bindings(cx: &MatchCheckCtxt,
                     _ => {
                         cx.tcx.sess.span_bug(
                             p.span,
-                            format!("Binding pattern {} is \
+                            format!("binding pattern {} is \
                                   not an identifier: {:?}",
                                  p.id, p.node));
                     }
index cbe1e8f72d933d6ccde522cbd17a32cc1e6e1180..75874339f3a6852b73e939e9a9d78fea480ed138 100644 (file)
@@ -342,8 +342,8 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
           Ok(const_float(f)) => Ok(const_float(-f)),
           Ok(const_int(i)) => Ok(const_int(-i)),
           Ok(const_uint(i)) => Ok(const_uint(-i)),
-          Ok(const_str(_)) => Err(~"Negate on string"),
-          Ok(const_bool(_)) => Err(~"Negate on boolean"),
+          Ok(const_str(_)) => Err(~"negate on string"),
+          Ok(const_bool(_)) => Err(~"negate on boolean"),
           ref err => ((*err).clone())
         }
       }
@@ -352,7 +352,7 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
           Ok(const_int(i)) => Ok(const_int(!i)),
           Ok(const_uint(i)) => Ok(const_uint(!i)),
           Ok(const_bool(b)) => Ok(const_bool(!b)),
-          _ => Err(~"Not on float or string")
+          _ => Err(~"not on float or string")
         }
       }
       ExprBinary(_, op, a, b) => {
@@ -371,7 +371,7 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
               BiNe => fromb(a != b),
               BiGe => fromb(a >= b),
               BiGt => fromb(a > b),
-              _ => Err(~"Can't do this op on floats")
+              _ => Err(~"can't do this op on floats")
             }
           }
           (Ok(const_int(a)), Ok(const_int(b))) => {
@@ -423,14 +423,14 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
             match op {
               BiShl => Ok(const_int(a << b)),
               BiShr => Ok(const_int(a >> b)),
-              _ => Err(~"Can't do this op on an int and uint")
+              _ => Err(~"can't do this op on an int and uint")
             }
           }
           (Ok(const_uint(a)), Ok(const_int(b))) => {
             match op {
               BiShl => Ok(const_uint(a << b)),
               BiShr => Ok(const_uint(a >> b)),
-              _ => Err(~"Can't do this op on a uint and int")
+              _ => Err(~"can't do this op on a uint and int")
             }
           }
           (Ok(const_bool(a)), Ok(const_bool(b))) => {
@@ -442,10 +442,10 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
               BiBitOr => a | b,
               BiEq => a == b,
               BiNe => a != b,
-              _ => return Err(~"Can't do this op on bools")
+              _ => return Err(~"can't do this op on bools")
              }))
           }
-          _ => Err(~"Bad operands for binary")
+          _ => Err(~"bad operands for binary")
         }
       }
       ExprCast(base, target_ty) => {
@@ -456,7 +456,7 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
                 .or_else(|| astconv::ast_ty_to_prim_ty(tcx.ty_ctxt(), target_ty))
                 .unwrap_or_else(|| tcx.ty_ctxt().sess.span_fatal(
                     target_ty.span,
-                    format!("Target type not found for const cast")
+                    format!("target type not found for const cast")
                 ));
 
         let base = eval_const_expr_partial(tcx, base);
@@ -469,7 +469,7 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
                             const_uint(u) => Ok(const_float(u as f64)),
                             const_int(i) => Ok(const_float(i as f64)),
                             const_float(f) => Ok(const_float(f)),
-                            _ => Err(~"Can't cast float to str"),
+                            _ => Err(~"can't cast float to str"),
                         }
                     }
                     ty::ty_uint(_) => {
@@ -477,7 +477,7 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
                             const_uint(u) => Ok(const_uint(u)),
                             const_int(i) => Ok(const_uint(i as u64)),
                             const_float(f) => Ok(const_uint(f as u64)),
-                            _ => Err(~"Can't cast str to uint"),
+                            _ => Err(~"can't cast str to uint"),
                         }
                     }
                     ty::ty_int(_) | ty::ty_bool => {
@@ -485,10 +485,10 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
                             const_uint(u) => Ok(const_int(u as i64)),
                             const_int(i) => Ok(const_int(i)),
                             const_float(f) => Ok(const_int(f as i64)),
-                            _ => Err(~"Can't cast str to int"),
+                            _ => Err(~"can't cast str to int"),
                         }
                     }
-                    _ => Err(~"Can't cast this type")
+                    _ => Err(~"can't cast this type")
                 }
             }
         }
@@ -496,14 +496,14 @@ fn fromb(b: bool) -> Result<const_val, ~str> { Ok(const_int(b as i64)) }
       ExprPath(_) => {
           match lookup_const(tcx.ty_ctxt(), e) {
               Some(actual_e) => eval_const_expr_partial(&tcx.ty_ctxt(), actual_e),
-              None => Err(~"Non-constant path in constant expr")
+              None => Err(~"non-constant path in constant expr")
           }
       }
       ExprLit(lit) => Ok(lit_to_const(lit)),
       // If we have a vstore, just keep going; it has to be a string
       ExprVstore(e, _) => eval_const_expr_partial(tcx, e),
       ExprParen(e)     => eval_const_expr_partial(tcx, e),
-      _ => Err(~"Unsupported constant expr")
+      _ => Err(~"unsupported constant expr")
     }
 }
 
index 6645450a970bc79754a38129ba29e611692611a1..e4b648dd43c23383891eab1f552672eaabde2be2 100644 (file)
@@ -879,7 +879,7 @@ fn find_scope<'a>(&self,
                             None => {
                                 self.tcx().sess.span_bug(
                                     expr.span,
-                                    format!("No loop scope for id {:?}", loop_id));
+                                    format!("no loop scope for id {:?}", loop_id));
                             }
                         }
                     }
@@ -887,7 +887,7 @@ fn find_scope<'a>(&self,
                     r => {
                         self.tcx().sess.span_bug(
                             expr.span,
-                            format!("Bad entry `{:?}` in def_map for label", r));
+                            format!("bad entry `{:?}` in def_map for label", r));
                     }
                 }
             }
index 26e4a11ae49a203844ee49d5ce2ee1c31394636e..546d6f272040831b773eebef9a267a45cb214211 100644 (file)
@@ -328,7 +328,7 @@ pub fn variable(&self, node_id: NodeId, span: Span) -> Variable {
           Some(&var) => var,
           None => {
             self.tcx.sess.span_bug(
-                span, format!("No variable registered for id {}", node_id));
+                span, format!("no variable registered for id {}", node_id));
           }
         }
     }
@@ -627,7 +627,7 @@ pub fn live_node(&self, node_id: NodeId, span: Span) -> LiveNode {
             // code have to agree about which AST nodes are worth
             // creating liveness nodes for.
             self.tcx.sess.span_bug(
-                span, format!("No live node registered for node {}",
+                span, format!("no live node registered for node {}",
                            node_id));
           }
         }
@@ -759,7 +759,7 @@ pub fn find_loop_scope(&self,
                 let def_map = self.tcx.def_map.borrow();
                 match def_map.get().find(&id) {
                     Some(&DefLabel(loop_id)) => loop_id,
-                    _ => self.tcx.sess.span_bug(sp, "Label on break/loop \
+                    _ => self.tcx.sess.span_bug(sp, "label on break/loop \
                                                      doesn't refer to a loop")
                 }
             }
@@ -1152,7 +1152,7 @@ pub fn propagate_through_expr(&self, expr: @Expr, succ: LiveNode)
               match break_ln.get().find(&sc) {
                   Some(&b) => b,
                   None => self.tcx.sess.span_bug(expr.span,
-                                                 "Break to unknown label")
+                                                 "break to unknown label")
               }
           }
 
@@ -1167,7 +1167,7 @@ pub fn propagate_through_expr(&self, expr: @Expr, succ: LiveNode)
               match cont_ln.get().find(&sc) {
                   Some(&b) => b,
                   None => self.tcx.sess.span_bug(expr.span,
-                                                 "Loop to unknown label")
+                                                 "loop to unknown label")
               }
           }
 
index 7c5d1439edfcbe02b3066afcbc9a28fd0e289a30..f5e3ff5db34d8117c070a53e7ea840df06d0e040 100644 (file)
@@ -548,7 +548,7 @@ pub fn cat_def(&self,
                   _ => {
                       self.tcx.sess.span_bug(
                           span,
-                          format!("Upvar of non-closure {:?} - {}",
+                          format!("upvar of non-closure {:?} - {}",
                                fn_node_id, ty.repr(self.tcx)));
                   }
               }
@@ -652,7 +652,7 @@ pub fn cat_deref<N:ast_node>(&self,
             None => {
                 self.tcx.sess.span_bug(
                     node.span(),
-                    format!("Explicit deref of non-derefable type: {}",
+                    format!("explicit deref of non-derefable type: {}",
                          ty_to_str(self.tcx, base_cmt.ty)));
             }
         };
@@ -745,7 +745,7 @@ pub fn cat_index<N:ast_node>(&self,
           None => {
             self.tcx.sess.span_bug(
                 elt.span(),
-                format!("Explicit index of non-index type `{}`",
+                format!("explicit index of non-index type `{}`",
                      ty_to_str(self.tcx, base_cmt.ty)));
           }
         };
index 9c11b89bb7e7ddcbfb7eb67bbfca34b2c93b5502..86de1399acbb9b6cdf4c09791ead8719cebc18b7 100644 (file)
@@ -142,7 +142,7 @@ pub fn encl_scope(&self, id: ast::NodeId) -> ast::NodeId {
         let scope_map = self.scope_map.borrow();
         match scope_map.get().find(&id) {
             Some(&r) => r,
-            None => { fail!("No enclosing scope for id {}", id); }
+            None => { fail!("no enclosing scope for id {}", id); }
         }
     }
 
@@ -154,7 +154,7 @@ pub fn var_scope(&self, var_id: ast::NodeId) -> ast::NodeId {
         let var_map = self.var_map.borrow();
         match var_map.get().find(&var_id) {
             Some(&r) => r,
-            None => { fail!("No enclosing scope for id {}", var_id); }
+            None => { fail!("no enclosing scope for id {}", var_id); }
         }
     }
 
@@ -554,7 +554,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
         None => {
             visitor.sess.span_bug(
                 local.span,
-                "Local without enclosing block");
+                "local without enclosing block");
         }
     };
 
index 6ee44c03a8041cf15293e4d8ff486f2bd6de9a79..19e67bb865dd2167bb939b00784fb49dc2d103b9 100644 (file)
@@ -1378,7 +1378,7 @@ fn build_reduced_graph_for_item(&mut self,
                     }
                     match method_map.get().find_mut(name) {
                         Some(s) => { s.insert(def_id); },
-                        _ => fail!("Can't happen"),
+                        _ => fail!("can't happen"),
                     }
                 }
 
@@ -1696,7 +1696,7 @@ trait method '{}'",
                   }
                   match method_map.get().find_mut(name) {
                       Some(s) => { s.insert(def_id); },
-                      _ => fail!("Can't happen"),
+                      _ => fail!("can't happen"),
                   }
               }
 
@@ -3992,7 +3992,7 @@ fn resolve_struct(&mut self,
                             self.resolve_error(field.span,
                                 format!("field `{}` is already declared", ident_str));
                             self.session.span_note(prev_field.span,
-                                "Previously declared here");
+                                "previously declared here");
                         },
                         None => {
                             ident_map.insert(ident, field);
@@ -4476,7 +4476,7 @@ struct in scope",
                                       // in the same disjunct, which is an
                                       // error
                                      self.resolve_error(pattern.span,
-                                       format!("Identifier `{}` is bound more \
+                                       format!("identifier `{}` is bound more \
                                              than once in the same pattern",
                                             path_to_str(path, self.session
                                                         .intr())));
index ead67f78063617343a8b28cf2da3c87bbe750c56..ab730c1b2e5470fd661a14ca3e164edb10b54b7b 100644 (file)
@@ -297,7 +297,7 @@ fn insert_lifetime(&self,
                        def: ast::DefRegion) {
         if lifetime_ref.id == ast::DUMMY_NODE_ID {
             self.sess.span_bug(lifetime_ref.span,
-                               "Lifetime reference not renumbered, \
+                               "lifetime reference not renumbered, \
                                probably a bug in syntax::fold");
         }
 
index ad2e96702b0a4eaf8134693968767444471d0fa9..f49b0f1af08b3dc3c41264f05fc07c3811a5ebcd 100644 (file)
@@ -484,7 +484,7 @@ fn assert_is_binding_or_wild(bcx: &Block, p: @ast::Pat) {
     if !pat_is_binding_or_wild(bcx.tcx().def_map, p) {
         bcx.sess().span_bug(
             p.span,
-            format!("Expected an identifier pattern but found p: {}",
+            format!("expected an identifier pattern but found p: {}",
                  p.repr(bcx.tcx())));
     }
 }
index 9d90fdb8011ffa4703a82c74d978d03402f4263d..15fbb54cd11e6f2c9900dc1ee2c956b309eb1341 100644 (file)
@@ -434,7 +434,7 @@ fn generic_type_of(cx: &CrateContext, r: &Repr, name: Option<&str>, sizing: bool
                                  Type::array(&Type::i64(), align_units),
                 a if a.population_count() == 1 => Type::array(&Type::vector(&Type::i32(), a / 4),
                                                               align_units),
-                _ => fail!("Unsupported enum alignment: {:?}", align)
+                _ => fail!("unsupported enum alignment: {:?}", align)
             };
             assert_eq!(machine::llalign_of_min(cx, pad_ty) as u64, align);
             assert_eq!(align % discr_size, 0);
index 80d92d856864c05368af7595c79d067b8bb529a0..77fe847f5f221a9727c24dd7d6b2a37fbc17377b 100644 (file)
@@ -103,7 +103,7 @@ fn datum_callee<'a>(bcx: &'a Block<'a>, expr: &ast::Expr) -> Callee<'a> {
             _ => {
                 bcx.tcx().sess.span_bug(
                     expr.span,
-                    format!("Type of callee is neither bare-fn nor closure: {}",
+                    format!("type of callee is neither bare-fn nor closure: {}",
                          bcx.ty_to_str(datum.ty)));
             }
         }
@@ -151,7 +151,7 @@ fn trans_def<'a>(bcx: &'a Block<'a>, def: ast::Def, ref_expr: &ast::Expr)
             ast::DefSelfTy(..) | ast::DefMethod(..) => {
                 bcx.tcx().sess.span_bug(
                     ref_expr.span,
-                    format!("Cannot translate def {:?} \
+                    format!("cannot translate def {:?} \
                           to a callable thing!", def));
             }
         }
index acbbdf27d1c266cf37ba28ba1b3192021246e6ca..e28660ea01f9467aad0019c2023c42129493016e 100644 (file)
@@ -211,7 +211,7 @@ fn top_loop_scope(&self) -> ast::NodeId {
                 _ => {}
             }
         }
-        self.ccx.tcx.sess.bug("No loop scope found");
+        self.ccx.tcx.sess.bug("no loop scope found");
     }
 
     fn normal_exit_block(&'a self,
@@ -337,7 +337,7 @@ fn schedule_clean_in_ast_scope(&self,
         }
 
         self.ccx.tcx.sess.bug(
-            format!("No cleanup scope {} found",
+            format!("no cleanup scope {} found",
                     ast_map::node_id_to_str(self.ccx.tcx.items, cleanup_scope,
                                             token::get_ident_interner())));
     }
@@ -548,7 +548,7 @@ fn trans_cleanups_to_exit_scope(&'a self,
 
                     LoopExit(id, _) => {
                         self.ccx.tcx.sess.bug(format!(
-                                "Cannot exit from scope {:?}, \
+                                "cannot exit from scope {:?}, \
                                 not in scope", id));
                     }
                 }
index 7ee77e4c0d6f56db2748d18e326e696bfa171cea..7dbf159265dd1ccb82543e3f60bf49c7f8b46521 100644 (file)
@@ -472,7 +472,7 @@ pub fn def(&self, nid: ast::NodeId) -> ast::Def {
             Some(&v) => v,
             None => {
                 self.tcx().sess.bug(format!(
-                    "No def associated with node id {:?}", nid));
+                    "no def associated with node id {:?}", nid));
             }
         }
     }
@@ -852,7 +852,7 @@ pub fn node_id_type_params(bcx: &Block, id: ast::NodeId) -> ~[ty::t] {
 
     if !params.iter().all(|t| !ty::type_needs_infer(*t)) {
         bcx.sess().bug(
-            format!("Type parameters for node {} include inference types: {}",
+            format!("type parameters for node {} include inference types: {}",
                  id, params.map(|t| bcx.ty_to_str(*t)).connect(",")));
     }
 
index a8b0da8026689bd321f2075f5e0bc68e1ea94588..760c56dd9459ab2024307958800cfb2c25b1b1d4 100644 (file)
@@ -146,14 +146,14 @@ fn const_deref(cx: &CrateContext, v: ValueRef, t: ty::t, explicit: bool)
                     const_deref_newtype(cx, v, t)
                 }
                 _ => {
-                    cx.sess.bug(format!("Unexpected dereferenceable type {}",
+                    cx.sess.bug(format!("unexpected dereferenceable type {}",
                                      ty_to_str(cx.tcx, t)))
                 }
             };
             (dv, mt.ty)
         }
         None => {
-            cx.sess.bug(format!("Can't dereference const of type {}",
+            cx.sess.bug(format!("can't dereference const of type {}",
                              ty_to_str(cx.tcx, t)))
         }
     }
index 7bbbf4f99059f1ef1a1c32344066a61edbb4f4e1..d214a192ed8d48e670640a0eeb73d0c410be70c4 100644 (file)
@@ -298,7 +298,7 @@ pub fn create_local_var_metadata(bcx: &Block, local: &ast::Local) {
                 Some(datum) => datum,
                 None => {
                     bcx.tcx().sess.span_bug(span,
-                        format!("No entry in lllocals table for {:?}",
+                        format!("no entry in lllocals table for {:?}",
                                 node_id));
                 }
             }
@@ -440,7 +440,7 @@ pub fn create_argument_metadata(bcx: &Block, arg: &ast::Arg) {
                 Some(v) => v,
                 None => {
                     bcx.tcx().sess.span_bug(span,
-                        format!("No entry in llargs table for {:?}",
+                        format!("no entry in llargs table for {:?}",
                                 node_id));
                 }
             }
index bc9dd767ec670348a31d72baa6c4f750e69ab413..cb638e99ab72371c4925d8f75799ff4be369d45f 100644 (file)
@@ -81,17 +81,17 @@ pub fn llvm_calling_convention(ccx: &CrateContext,
         match abi {
             RustIntrinsic => {
                 // Intrinsics are emitted by monomorphic fn
-                ccx.sess.bug(format!("Asked to register intrinsic fn"));
+                ccx.sess.bug(format!("asked to register intrinsic fn"));
             }
 
             Rust => {
                 // FIXME(#3678) Implement linking to foreign fns with Rust ABI
                 ccx.sess.unimpl(
-                    format!("Foreign functions with Rust ABI"));
+                    format!("foreign functions with Rust ABI"));
             }
 
             // It's the ABI's job to select this, not us.
-            System => ccx.sess.bug("System abi should be selected elsewhere"),
+            System => ccx.sess.bug("system abi should be selected elsewhere"),
 
             Stdcall => lib::llvm::X86StdcallCallConv,
             Fastcall => lib::llvm::X86FastcallCallConv,
@@ -365,7 +365,7 @@ pub fn trans_foreign_mod(ccx: @CrateContext,
                             (abis, (*path).clone())
                         }
                         _ => {
-                            fail!("Unable to find foreign item in tcx.items \
+                            fail!("unable to find foreign item in tcx.items \
                                    table.")
                         }
                     };
index 25ecbeaa9a5ed0d5af34a24af16e7b11aac7594e..653f56c6de313208eb71a8ec1865bb55ebeab003 100644 (file)
@@ -227,7 +227,7 @@ fn count_zeros_intrinsic(bcx: &Block, name: &'static str) {
                 "acq"     => lib::llvm::Acquire,
                 "rel"     => lib::llvm::Release,
                 "acqrel"  => lib::llvm::AcquireRelease,
-                _ => ccx.sess.fatal("Unknown ordering in atomic intrinsic")
+                _ => ccx.sess.fatal("unknown ordering in atomic intrinsic")
             }
         };
 
@@ -268,7 +268,7 @@ fn count_zeros_intrinsic(bcx: &Block, name: &'static str) {
                     "min"   => lib::llvm::Min,
                     "umax"  => lib::llvm::UMax,
                     "umin"  => lib::llvm::UMin,
-                    _ => ccx.sess.fatal("Unknown atomic operation")
+                    _ => ccx.sess.fatal("unknown atomic operation")
                 };
 
                 let old = AtomicRMW(bcx, atom_op, get_param(decl, first_real_arg),
index 25c536f2a6db2836f6bd684704951851e88289ff..61100220ffb478c669aaa4c79be964232bc757bd 100644 (file)
@@ -98,7 +98,7 @@ pub fn monomorphic_fn(ccx: @CrateContext,
         session::expect(
             ccx.sess,
             ccx.tcx.items.find(fn_id.node),
-            || format!("While monomorphizing {:?}, couldn't find it in the \
+            || format!("while monomorphizing {:?}, couldn't find it in the \
                         item map (may have attempted to monomorphize an item \
                         defined in a different crate?)", fn_id))
     };
@@ -286,7 +286,7 @@ pub fn monomorphic_fn(ccx: @CrateContext,
                     d
                 }
                 _ => {
-                    ccx.tcx.sess.bug(format!("Can't monomorphize a {:?}",
+                    ccx.tcx.sess.bug(format!("can't monomorphize a {:?}",
                                              map_node))
                 }
             }
@@ -310,7 +310,7 @@ pub fn monomorphic_fn(ccx: @CrateContext,
         ast_map::NodeBlock(..) |
         ast_map::NodeCalleeScope(..) |
         ast_map::NodeLocal(..) => {
-            ccx.tcx.sess.bug(format!("Can't monomorphize a {:?}", map_node))
+            ccx.tcx.sess.bug(format!("can't monomorphize a {:?}", map_node))
         }
     };
 
index 8c2047a5fc56c2813d16c38054ad9e29818e3d1d..1a1ae97bbcdb93451712db86fa76e4428b842bad 100644 (file)
@@ -95,7 +95,7 @@ pub fn visit(&mut self, ty_name: &str, args: &[ValueRef]) {
         let tcx = self.bcx.tcx();
         let mth_idx = ty::method_idx(
             tcx.sess.ident_of(~"visit_" + ty_name),
-            *self.visitor_methods).expect(format!("Couldn't find visit method \
+            *self.visitor_methods).expect(format!("couldn't find visit method \
                                                 for {}", ty_name));
         let mth_ty =
             ty::mk_bare_fn(tcx, self.visitor_methods[mth_idx].fty.clone());
index a0a1ff20a9a9c5d9e75b4983971b173f8444c584..c8180362bc5cfde1c1e4c0c42dd534ec543c8922 100644 (file)
@@ -404,7 +404,7 @@ pub fn write_content<'a>(
                 }
                 _ => {
                     bcx.tcx().sess.span_bug(content_expr.span,
-                                            "Unexpected evec content");
+                                            "unexpected evec content");
                 }
             }
         }
@@ -465,7 +465,7 @@ pub fn write_content<'a>(
         }
         _ => {
             bcx.tcx().sess.span_bug(content_expr.span,
-                                    "Unexpected vec content");
+                                    "unexpected vec content");
         }
     }
 }
@@ -498,7 +498,7 @@ pub fn elements_required(bcx: &Block, content_expr: &ast::Expr) -> uint {
                 ast::LitStr(ref s, _) => s.get().len(),
                 _ => {
                     bcx.tcx().sess.span_bug(content_expr.span,
-                                            "Unexpected evec content")
+                                            "unexpected evec content")
                 }
             }
         },
@@ -507,7 +507,7 @@ pub fn elements_required(bcx: &Block, content_expr: &ast::Expr) -> uint {
             ty::eval_repeat_count(&bcx.tcx(), count_expr)
         }
         _ => bcx.tcx().sess.span_bug(content_expr.span,
-                                     "Unexpected vec content")
+                                     "unexpected vec content")
     }
 }
 
index 1ff6da63fea24681f2717d42c44c32c388fbc39b..7b2aee9274a7dc3a717553ea675a79a27127f8b2 100644 (file)
@@ -2101,7 +2101,7 @@ fn tc_ty(cx: ctxt,
             ty_type => TC::None,
 
             ty_err => {
-                cx.sess.bug("Asked to compute contents of error type");
+                cx.sess.bug("asked to compute contents of error type");
             }
         };
 
@@ -2926,7 +2926,7 @@ pub fn adjust_ty(cx: ctxt,
                                 None => {
                                     cx.sess.span_bug(
                                         span,
-                                        format!("The {}th autoderef failed: \
+                                        format!("the {}th autoderef failed: \
                                                 {}",
                                                 i,
                                                 ty_to_str(cx, adjusted_ty)));
@@ -3132,7 +3132,7 @@ pub fn resolve_expr(tcx: ctxt, expr: &ast::Expr) -> ast::Def {
         Some(&def) => def,
         None => {
             tcx.sess.span_bug(expr.span, format!(
-                "No def-map entry for expr {:?}", expr.id));
+                "no def-map entry for expr {:?}", expr.id));
         }
     }
 }
@@ -3209,7 +3209,7 @@ pub fn expr_kind(tcx: ctxt,
 
                 def => {
                     tcx.sess.span_bug(expr.span, format!(
-                        "Uncategorized def for expr {:?}: {:?}",
+                        "uncategorized def for expr {:?}: {:?}",
                         expr.id, def));
                 }
             }
@@ -3335,7 +3335,7 @@ pub fn field_idx_strict(tcx: ty::ctxt, name: ast::Name, fields: &[field])
     for f in fields.iter() { if f.ident.name == name { return i; } i += 1u; }
     let string = token::get_ident(name);
     tcx.sess.bug(format!(
-        "No field named `{}` found in the list of fields `{:?}`",
+        "no field named `{}` found in the list of fields `{:?}`",
         string.get(),
         fields.map(|f| tcx.sess.str_of(f.ident))));
 }
@@ -3687,7 +3687,7 @@ fn lookup_locally_or_in_crate_store<V:Clone>(
     }
 
     if def_id.crate == ast::LOCAL_CRATE {
-        fail!("No def'n found for {:?} in tcx.{}", def_id, descr);
+        fail!("no def'n found for {:?} in tcx.{}", def_id, descr);
     }
     let v = load_external();
     map.insert(def_id, v.clone());
index 2463bf679d08f5cdc80bc543da40237c93a154b6..f19ca049368d05b5ecdae9e1740500ceaf5ceab1 100644 (file)
@@ -789,7 +789,7 @@ fn search_for_autoptrd_method(&self, self_ty: ty::t, autoderefs: uint)
             ty_err => None,
 
             ty_unboxed_vec(_) | ty_type | ty_infer(TyVar(_)) => {
-                self.bug(format!("Unexpected type: {}",
+                self.bug(format!("unexpected type: {}",
                               self.ty_to_str(self_ty)));
             }
         }
index 81948464d53d6882fc832cff37fb6cd22b2d5b37..2332152a5d73470168a3f094e4a6964c89501b8f 100644 (file)
@@ -517,9 +517,9 @@ pub fn check_no_duplicate_fields(tcx: ty::ctxt,
         let orig_sp = field_names.find(&id).map(|x| *x);
         match orig_sp {
             Some(orig_sp) => {
-                tcx.sess.span_err(sp, format!("Duplicate field name {} in record type declaration",
+                tcx.sess.span_err(sp, format!("duplicate field name {} in record type declaration",
                                               tcx.sess.str_of(id)));
-                tcx.sess.span_note(orig_sp, "First declaration of this field occurred here");
+                tcx.sess.span_note(orig_sp, "first declaration of this field occurred here");
                 break;
             }
             None => {
@@ -1006,7 +1006,7 @@ pub fn local_ty(&self, span: Span, nid: ast::NodeId) -> ty::t {
             None => {
                 self.tcx().sess.span_bug(
                     span,
-                    format!("No type for local variable {:?}", nid));
+                    format!("no type for local variable {:?}", nid));
             }
         }
     }
@@ -1619,7 +1619,7 @@ fn check_method_argument_types(
                 _ => {
                     fcx.tcx().sess.span_bug(
                         sp,
-                        format!("Method without bare fn type"));
+                        format!("method without bare fn type"));
                 }
             }
         }
index 1a45a1d549137d2c6d95c2c6df354d81644d1827..ac15d52ff13b50e3ea3eb8b85d253a8a0cc6b426 100644 (file)
@@ -473,7 +473,7 @@ fn check_expr_fn_block(rcx: &mut Rcx,
         _ => {
             tcx.sess.span_bug(
                 expr.span,
-                "Expected expr_fn_block");
+                "expected expr_fn_block");
         }
     }
 }
@@ -1189,7 +1189,7 @@ fn apply_autoderefs(
                 None => {
                     tcx.sess.span_bug(
                         expr.span,
-                        format!("Autoderef but type not derefable: {}",
+                        format!("autoderef but type not derefable: {}",
                              ty_to_str(tcx, ct.ty)));
                 }
             }
index c1a6e53069efeb3ff2a08fd06a1ce543cd629b65..5e46daad7ee20befb563d754eccf132846a15011 100644 (file)
@@ -430,7 +430,7 @@ pub fn ensure_supertraits(ccx: &CrateCtxt,
             if ty_trait_refs.iter().any(|other_trait| other_trait.def_id == trait_ref.def_id) {
                 // This means a trait inherited from the same supertrait more
                 // than once.
-                tcx.sess.span_err(sp, "Duplicate supertrait in trait declaration");
+                tcx.sess.span_err(sp, "duplicate supertrait in trait declaration");
                 break;
             } else {
                 ty_trait_refs.push(trait_ref);
@@ -891,7 +891,7 @@ pub fn ty_of_item(ccx: &CrateCtxt, it: &ast::Item)
         ast::ItemTrait(..) => {
             tcx.sess.span_bug(
                 it.span,
-                format!("Invoked ty_of_item on trait"));
+                format!("invoked ty_of_item on trait"));
         }
         ast::ItemStruct(_, ref generics) => {
             let ty_generics = ty_generics(ccx, generics, 0);
index 0db17c8148e8087db3308378dd31930633f4ad8b..d8166108947fd75eb185577e2138a5eef57cb707 100644 (file)
@@ -202,7 +202,7 @@ pub fn unpack_actual_value(&self, a: ty::t, f: |&ty::sty| -> CoerceResult)
             Err(e) => {
                 self.get_ref().infcx.tcx.sess.span_bug(
                     self.get_ref().trace.origin.span(),
-                    format!("Failed to resolve even without \
+                    format!("failed to resolve even without \
                           any force options: {:?}", e));
             }
         }
index d96cf84eb13633845e18df98987f6c70e4954bb5..fa40fa6a06441aa07e24c78185e418b84fe0f6fa 100644 (file)
@@ -528,7 +528,7 @@ pub fn var_ids<T:Combine>(this: &T,
             r => {
                 this.infcx().tcx.sess.span_bug(
                     this.trace().origin.span(),
-                    format!("Found non-region-vid: {:?}", r));
+                    format!("found non-region-vid: {:?}", r));
             }
         }).collect()
 }
index 54998e06f8e4566d22ff0e179f1efafb40065963..2bc0d7d64195600fa9af654ef9ec653a94f48190 100644 (file)
@@ -233,7 +233,7 @@ pub fn new_bound(&self, binder_id: ast::NodeId) -> Region {
         self.bound_count.set(sc + 1);
 
         if sc >= self.bound_count.get() {
-            self.tcx.sess.bug("Rollover in RegionInference new_bound()");
+            self.tcx.sess.bug("rollover in RegionInference new_bound()");
         }
 
         ReLateBound(binder_id, BrFresh(sc))
@@ -278,7 +278,7 @@ pub fn make_subregion(&self,
           (_, ReLateBound(..)) => {
             self.tcx.sess.span_bug(
                 origin.span(),
-                format!("Cannot relate bound region: {} <= {}",
+                format!("cannot relate bound region: {} <= {}",
                         sub.repr(self.tcx),
                         sup.repr(self.tcx)));
           }
@@ -351,7 +351,7 @@ pub fn resolve_var(&self, rid: RegionVid) -> ty::Region {
                 let var_origins = self.var_origins.borrow();
                 self.tcx.sess.span_bug(
                     var_origins.get()[rid.to_uint()].span(),
-                    format!("Attempt to resolve region variable before \
+                    format!("attempt to resolve region variable before \
                              values have been computed!"))
             }
             Some(ref values) => values[rid.to_uint()]
@@ -544,7 +544,7 @@ fn lub_concrete_regions(&self, a: Region, b: Region) -> Region {
           (ReEarlyBound(..), _) |
           (_, ReEarlyBound(..)) => {
             self.tcx.sess.bug(
-                format!("Cannot relate bound region: LUB({}, {})",
+                format!("cannot relate bound region: LUB({}, {})",
                         a.repr(self.tcx),
                         b.repr(self.tcx)));
           }
@@ -646,7 +646,7 @@ fn glb_concrete_regions(&self,
             (ReEarlyBound(..), _) |
             (_, ReEarlyBound(..)) => {
               self.tcx.sess.bug(
-                  format!("Cannot relate bound region: GLB({}, {})",
+                  format!("cannot relate bound region: GLB({}, {})",
                           a.repr(self.tcx),
                           b.repr(self.tcx)));
             }
index dd96018d4af25e762d6d5feecb7a80c39dd1f8c5..517fe232b0345dbada68595436d3b70899ed50a4 100644 (file)
@@ -97,7 +97,7 @@ pub fn lookup_item(&self, names: &[~str]) -> ast::node_id {
         return match search_mod(self, &self.crate.node.module, 0, names) {
             Some(id) => id,
             None => {
-                fail!("No item found: `%s`", names.connect("::"));
+                fail!("no item found: `%s`", names.connect("::"));
             }
         };
 
@@ -230,7 +230,7 @@ pub fn resolve_regions(exp_count: uint) {
             for msg in self.err_messages.iter() {
                 debug!("Error encountered: %s", *msg);
             }
-            format!("Resolving regions encountered %u errors but expected %u!",
+            format!("resolving regions encountered %u errors but expected %u!",
                  self.err_messages.len(),
                  exp_count);
         }
@@ -240,7 +240,7 @@ pub fn resolve_regions(exp_count: uint) {
     pub fn check_lub(&self, t1: ty::t, t2: ty::t, t_lub: ty::t) {
         match self.lub().tys(t1, t2) {
             Err(e) => {
-                fail!("Unexpected error computing LUB: %?", e)
+                fail!("unexpected error computing LUB: %?", e)
             }
             Ok(t) => {
                 self.assert_eq(t, t_lub);
@@ -262,7 +262,7 @@ pub fn check_glb(&self, t1: ty::t, t2: ty::t, t_glb: ty::t) {
                self.ty_to_str(t_glb));
         match self.glb().tys(t1, t2) {
             Err(e) => {
-                fail!("Unexpected error computing LUB: %?", e)
+                fail!("unexpected error computing LUB: %?", e)
             }
             Ok(t) => {
                 self.assert_eq(t, t_glb);
@@ -281,7 +281,7 @@ pub fn check_no_lub(&self, t1: ty::t, t2: ty::t) {
         match self.lub().tys(t1, t2) {
             Err(_) => {}
             Ok(t) => {
-                fail!("Unexpected success computing LUB: %?", self.ty_to_str(t))
+                fail!("unexpected success computing LUB: %?", self.ty_to_str(t))
             }
         }
     }
@@ -291,7 +291,7 @@ pub fn check_no_glb(&self, t1: ty::t, t2: ty::t) {
         match self.glb().tys(t1, t2) {
             Err(_) => {}
             Ok(t) => {
-                fail!("Unexpected success computing GLB: %?", self.ty_to_str(t))
+                fail!("unexpected success computing GLB: %?", self.ty_to_str(t))
             }
         }
     }
index 51364addfed23098333b725c269777f044f9b413..e29add4bc95c1b17cf1dd4c14373d94023b5490b 100644 (file)
@@ -718,7 +718,7 @@ fn add_constraints_from_ty(&mut self,
             ty::ty_infer(..) | ty::ty_err |
             ty::ty_type | ty::ty_unboxed_vec(..) => {
                 self.tcx().sess.bug(
-                    format!("Unexpected type encountered in \
+                    format!("unexpected type encountered in \
                             variance inference: {}",
                             ty.repr(self.tcx())));
             }
@@ -804,7 +804,7 @@ fn add_constraints_from_region(&mut self,
             ty::ReEmpty => {
                 // We don't expect to see anything but 'static or bound
                 // regions when visiting member types or method types.
-                self.tcx().sess.bug(format!("Unexpected region encountered in \
+                self.tcx().sess.bug(format!("unexpected region encountered in \
                                             variance inference: {}",
                                             region.repr(self.tcx())));
             }
index 74fefe4168369e60d30535843218e1acbfdf7103..5fbf57c506065e49f373be896e6278c2171faaf0 100644 (file)
@@ -64,12 +64,12 @@ fn add_bytes_to_bits<T: Int + CheckedAdd + ToBits>(bits: T, bytes: T) -> T {
     let (new_high_bits, new_low_bits) = bytes.to_bits();
 
     if new_high_bits > Zero::zero() {
-        fail!("Numeric overflow occured.")
+        fail!("numeric overflow occured.")
     }
 
     match bits.checked_add(&new_low_bits) {
         Some(x) => return x,
-        None => fail!("Numeric overflow occured.")
+        None => fail!("numeric overflow occured.")
     }
 }
 
index 9194acfcdec4592304fed100d657405f1edb71c6..6b0f2c6e516c63f9b6802be5253a14aee324c50a 100644 (file)
@@ -323,7 +323,7 @@ fn cannot_combine(n: Abi, m: Abi) {
                          (m == a && n == b));
         }
         None => {
-            fail!("Invalid match not detected");
+            fail!("invalid match not detected");
         }
     }
 }
@@ -335,7 +335,7 @@ fn can_combine(n: Abi, m: Abi) {
     set.add(m);
     match set.check_valid() {
         Some((_, _)) => {
-            fail!("Valid match declared invalid");
+            fail!("valid match declared invalid");
         }
         None => {}
     }
index 6852a0cec33ac4b3507e3fbbbd84dee6363922a4..39bb870b969a0798489aa86390c1101a0d5432fd 100644 (file)
@@ -40,7 +40,7 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) ->
                 // u8 literal, push to vector expression
                 ast::LitUint(v, ast::TyU8) => {
                     if v > 0xFF {
-                        cx.span_err(expr.span, "Too large u8 literal in bytes!")
+                        cx.span_err(expr.span, "too large u8 literal in bytes!")
                     } else {
                         bytes.push(cx.expr_u8(expr.span, v as u8));
                     }
@@ -49,9 +49,9 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) ->
                 // integer literal, push to vector expression
                 ast::LitIntUnsuffixed(v) => {
                     if v > 0xFF {
-                        cx.span_err(expr.span, "Too large integer literal in bytes!")
+                        cx.span_err(expr.span, "too large integer literal in bytes!")
                     } else if v < 0 {
-                        cx.span_err(expr.span, "Negative integer literal in bytes!")
+                        cx.span_err(expr.span, "negative integer literal in bytes!")
                     } else {
                         bytes.push(cx.expr_u8(expr.span, v as u8));
                     }
@@ -62,14 +62,14 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) ->
                     if char::from_u32(v).unwrap().is_ascii() {
                         bytes.push(cx.expr_u8(expr.span, v as u8));
                     } else {
-                        cx.span_err(expr.span, "Non-ascii char literal in bytes!")
+                        cx.span_err(expr.span, "non-ascii char literal in bytes!")
                     }
                 }
 
-                _ => cx.span_err(expr.span, "Unsupported literal in bytes!")
+                _ => cx.span_err(expr.span, "unsupported literal in bytes!")
             },
 
-            _ => cx.span_err(expr.span, "Non-literal in bytes!")
+            _ => cx.span_err(expr.span, "non-literal in bytes!")
         }
     }
 
index 1736124062862d3c705e68e615253a08bb030856..d911208e7de30628fe64d77a047564b11debf1e1 100644 (file)
@@ -92,10 +92,10 @@ fn cs_clone(
             all_fields = af;
         },
         EnumNonMatching(..) => cx.span_bug(trait_span,
-                                           format!("Non-matching enum variants in `deriving({})`",
+                                           format!("non-matching enum variants in `deriving({})`",
                                                   name)),
         StaticEnum(..) | StaticStruct(..) => cx.span_bug(trait_span,
-                                                         format!("Static method in `deriving({})`",
+                                                         format!("static method in `deriving({})`",
                                                                  name))
     }
 
index 83f623e30666d0797bb1220b54400010ff1747c2..c06b4e30e07cfd399c6e35fb753a9d4433ece031 100644 (file)
@@ -75,7 +75,7 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt, span: Span, substr: &Substru
             */
             let other_f = match other_fs {
                 [o_f] => o_f,
-                _ => cx.span_bug(span, "Not exactly 2 arguments in `deriving(Ord)`")
+                _ => cx.span_bug(span, "not exactly 2 arguments in `deriving(Ord)`")
             };
 
             let cmp = cx.expr_binary(span, op, self_f, other_f);
@@ -99,7 +99,7 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt, span: Span, substr: &Substru
                                  } else {
                                      self_var > other_var
                                  }),
-                _ => cx.span_bug(span, "Not exactly 2 arguments in `deriving(Ord)`")
+                _ => cx.span_bug(span, "not exactly 2 arguments in `deriving(Ord)`")
             }
         },
         cx, span, substr)
index 27a766c0e7562f759364364ea08541dea1a8af77..68de158e9e78b561ca2f274e6924375b01117589 100644 (file)
@@ -110,7 +110,7 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span,
                     let order = ordering_const(cx, span, self_var.cmp(&other_var));
                     cx.expr_path(order)
                 }
-                _ => cx.span_bug(span, "Not exactly 2 arguments in `deriving(TotalOrd)`")
+                _ => cx.span_bug(span, "not exactly 2 arguments in `deriving(TotalOrd)`")
             }
         },
         cx, span, substr)
index 8c06f0b8c8a0ec182164f7f6d10647fe145b4d97..01006a0c15d073406cf19e4a3e4466e79bb71af4 100644 (file)
@@ -656,7 +656,7 @@ fn expand_struct_method_body(&self,
                 }).collect()
             }
             [] => { trait_.cx.span_bug(trait_.span,
-                                       "No self arguments to non-static method \
+                                       "no self arguments to non-static method \
                                        in generic `deriving`") }
         };
 
@@ -840,7 +840,7 @@ fn build_enum_match(&self,
                 let index = match matching {
                     Some(i) => i,
                     None => cx.span_bug(trait_.span,
-                                        "Non-matching variants when required to \
+                                        "non-matching variants when required to \
                                         be matching in generic `deriving`")
                 };
 
@@ -965,7 +965,7 @@ fn summarise_struct(&self, struct_def: &StructDef) -> StaticFields {
 
         match (just_spans.is_empty(), named_idents.is_empty()) {
             (false, false) => self.cx.span_bug(self.span,
-                                               "A struct with named and unnamed \
+                                               "a struct with named and unnamed \
                                                fields in generic `deriving`"),
             // named fields
             (_, false) => Named(named_idents),
@@ -1019,7 +1019,7 @@ fn create_struct_pattern(&self,
                     None
                 }
                 _ => {
-                    cx.span_bug(sp, "A struct with named and unnamed fields in `deriving`");
+                    cx.span_bug(sp, "a struct with named and unnamed fields in `deriving`");
                 }
             };
             let path = cx.path_ident(sp, cx.ident_of(format!("{}_{}", prefix, i)));
@@ -1116,7 +1116,7 @@ pub fn cs_fold(use_foldl: bool,
                                                           *all_enums,
                                                           substructure.nonself_args),
         StaticEnum(..) | StaticStruct(..) => {
-            cx.span_bug(trait_span, "Static function in `deriving`")
+            cx.span_bug(trait_span, "static function in `deriving`")
         }
     }
 }
@@ -1154,7 +1154,7 @@ pub fn cs_same_method(f: |&mut ExtCtxt, Span, ~[@Expr]| -> @Expr,
                                                           *all_enums,
                                                           substructure.nonself_args),
         StaticEnum(..) | StaticStruct(..) => {
-            cx.span_bug(trait_span, "Static function in `deriving`")
+            cx.span_bug(trait_span, "static function in `deriving`")
         }
     }
 }
index 5380569472582b6ae2dc012df1e1f28c933ee442..5f680745ea7c60acee2e326e9898c374862a225f 100644 (file)
@@ -48,7 +48,7 @@ pub fn expand_deriving_iter_bytes(cx: &mut ExtCtxt,
 fn iter_bytes_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure) -> @Expr {
     let (lsb0, f)= match substr.nonself_args {
         [l, f] => (l, f),
-        _ => cx.span_bug(trait_span, "Incorrect number of arguments in `deriving(IterBytes)`")
+        _ => cx.span_bug(trait_span, "incorrect number of arguments in `deriving(IterBytes)`")
     };
     // Build the "explicitly borrowed" stack closure, "|_buf| f(_buf)".
     let blk_arg = cx.ident_of("_buf");
@@ -82,7 +82,7 @@ fn iter_bytes_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substruc
 
             fields = fs;
         }
-        _ => cx.span_bug(trait_span, "Impossible substructure in `deriving(IterBytes)`")
+        _ => cx.span_bug(trait_span, "impossible substructure in `deriving(IterBytes)`")
     }
 
     for &FieldInfo { self_, span, .. } in fields.iter() {
index 86c46705d81b98d0ba82808be37e268af6555d7d..f74b807bae6a0e58bb17e0d12d7c23153f428032 100644 (file)
@@ -68,7 +68,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt,
 fn cs_from(name: &str, cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure) -> @Expr {
     let n = match substr.nonself_args {
         [n] => n,
-        _ => cx.span_bug(trait_span, "Incorrect number of arguments in `deriving(FromPrimitive)`")
+        _ => cx.span_bug(trait_span, "incorrect number of arguments in `deriving(FromPrimitive)`")
     };
 
     match *substr.fields {
index f37abbe1ef4192a9a5e434be4f343741b0ed7c2a..ff0fd388ebe6d4823992da6200c789c3233b2744 100644 (file)
@@ -178,8 +178,8 @@ pub fn to_path(&self,
             Literal(ref p) => {
                 p.to_path(cx, span, self_ty, self_generics)
             }
-            Ptr(..) => { cx.span_bug(span, "Pointer in a path in generic `deriving`") }
-            Tuple(..) => { cx.span_bug(span, "Tuple in a path in generic `deriving`") }
+            Ptr(..) => { cx.span_bug(span, "pointer in a path in generic `deriving`") }
+            Tuple(..) => { cx.span_bug(span, "tuple in a path in generic `deriving`") }
         }
     }
 }
index bd1ac616f52d26fd7b42558518ea6b06e4313217..e98322099040e7d81c8a77fc31bba20c6fe82805 100644 (file)
@@ -257,7 +257,7 @@ fn parse_item(&self, s: ~str) -> @ast::Item {
             match res {
                 Some(ast) => ast,
                 None => {
-                    error!("Parse error");
+                    error!("parse error");
                     fail!()
                 }
             }
@@ -589,7 +589,7 @@ fn expand_tts(cx: &ExtCtxt, sp: Span, tts: &[ast::TokenTree])
 
     let cx_expr = p.parse_expr();
     if !p.eat(&token::COMMA) {
-        p.fatal("Expected token `,`");
+        p.fatal("expected token `,`");
     }
 
     let tts = p.parse_all_token_trees();
index 1c349c4343ac5697efb870ae60fb8eb4079589ff..e831e8fbb10d9a4e980d68042f9e156600dd4dc9 100644 (file)
@@ -49,7 +49,7 @@ pub fn find_macro_registrar(diagnostic: @diagnostic::SpanHandler,
             })
         },
         _ => {
-            diagnostic.handler().err("Multiple macro registration functions found");
+            diagnostic.handler().err("multiple macro registration functions found");
             for &(_, span) in ctx.registrars.iter() {
                 diagnostic.span_note(span, "one is here");
             }
index a18f80ad4c9f6d6d53db76c9c4f5751a83d8bfb6..92bc204e2c18c2b167b4c87f32ae563bc26285fa 100644 (file)
@@ -185,7 +185,7 @@ fn n_rec(p_s: @ParseSess, m: &Matcher, res: &[@NamedMatch],
             if ret_val.contains_key(bind_name) {
                 let string = token::get_ident(bind_name.name);
                 p_s.span_diagnostic
-                   .span_fatal(sp, "Duplicated bind name: " + string.get())
+                   .span_fatal(sp, "duplicated bind name: " + string.get())
             }
             ret_val.insert(*bind_name, res[idx]);
           }
@@ -441,6 +441,6 @@ pub fn parse_nt(p: &mut Parser, name: &str) -> Nonterminal {
         res
       }
       "matchers" => token::NtMatchers(p.parse_matchers()),
-      _ => p.fatal(~"Unsupported builtin nonterminal parser: " + name)
+      _ => p.fatal(~"unsupported builtin nonterminal parser: " + name)
     }
 }
index 430bd02119a03b95870f57bf1656f1dd764b6be7..fccbc57f12c0f4688020482b3ef030fc633cd0b5 100644 (file)
@@ -148,7 +148,7 @@ fn lis_merge(lhs: LockstepIterSize, rhs: LockstepIterSize) -> LockstepIterSize {
             LisConstraint(r_len, ref r_id) => {
                 let l_n = token::get_ident(l_id.name);
                 let r_n = token::get_ident(r_id.name);
-                LisContradiction(format!("Inconsistent lockstep iteration: \
+                LisContradiction(format!("inconsistent lockstep iteration: \
                                           '{}' has {} items, but '{}' has {}",
                                           l_n.get(), l_len, r_n.get(), r_len))
             }
index c575e170bef45048120be162aaf5f8531f4a1d4d..21f05fa684a844ff061514899ec1567dcc9e6b7b 100644 (file)
@@ -85,7 +85,7 @@ pub fn map_move<U>(self, op: |T| -> U) -> OptVec<U> {
 
     pub fn get<'a>(&'a self, i: uint) -> &'a T {
         match *self {
-            Empty => fail!("Invalid index {}", i),
+            Empty => fail!("invalid index {}", i),
             Vec(ref v) => &v[i]
         }
     }
@@ -103,7 +103,7 @@ pub fn len(&self) -> uint {
 
     pub fn swap_remove(&mut self, index: uint) {
         match *self {
-            Empty => { fail!("Index out of bounds"); }
+            Empty => { fail!("index out of bounds"); }
             Vec(ref mut v) => {
                 assert!(index < v.len());
                 v.swap_remove(index);
index b85d89cf804a82553ca69491018631c2dd40bc2c..091fbf82b0d5b0a51a8ac59e2277d8cdb85f3880 100644 (file)
@@ -76,7 +76,7 @@ fn obsolete(&mut self, sp: Span, kind: ObsoleteSyntax) {
         let (kind_str, desc) = match kind {
             ObsoleteSwap => (
                 "swap",
-                "Use std::util::{swap, replace} instead"
+                "use std::util::{swap, replace} instead"
             ),
             ObsoleteUnsafeBlock => (
                 "non-standalone unsafe block",
index 93574f4d858506727526ac38ad7e5a9928c1dd91..fd8b945a177ffaf8ba6fe08d5ce721ab33ecf661 100644 (file)
@@ -431,7 +431,7 @@ pub fn check_for_erroneous_unit_struct_expecting(&mut self, expected: &[token::T
             && self.look_ahead(1, |t| *t == token::RBRACE) {
             // matched; signal non-fatal error and recover.
             self.span_err(self.span,
-                          "Unit-like struct construction is written with no trailing `{ }`");
+                          "unit-like struct construction is written with no trailing `{ }`");
             self.eat(&token::LBRACE);
             self.eat(&token::RBRACE);
             true
@@ -1601,7 +1601,7 @@ pub fn parse_lifetime(&mut self) -> ast::Lifetime {
                 };
             }
             _ => {
-                self.fatal(format!("Expected a lifetime name"));
+                self.fatal(format!("expected a lifetime name"));
             }
         }
     }
@@ -2137,7 +2137,7 @@ fn parse_any_tt_tok(p: &mut Parser) -> TokenTree {
                 }
                 // There shouldn't really be a span, but it's easier for the test runner
                 // if we give it one
-                self.fatal("This file contains an un-closed delimiter ");
+                self.fatal("this file contains an un-closed delimiter ");
             }
             token::LPAREN | token::LBRACE | token::LBRACKET => {
                 let close_delim = token::flip_delimiter(&self.token);
@@ -3957,7 +3957,7 @@ fn parse_item_struct(&mut self) -> ItemInfo {
             }
             if fields.len() == 0 {
                 let string = get_ident_interner().get(class_name.name);
-                self.fatal(format!("Unit-like struct definition should be written as `struct {};`",
+                self.fatal(format!("unit-like struct definition should be written as `struct {};`",
                                    string.as_slice()));
             }
             self.bump();
index 6803bb1eaf940b4f526e6d6f1fe6030204eef5d5..f60406129618be0b9936224b16a7cbf8fc004870 100644 (file)
@@ -68,7 +68,7 @@ pub fn get<'a>(&'a self, idx: uint) -> &'a T {
         match *self {
             One(ref v) if idx == 0 => v,
             Many(ref vs) => &vs[idx],
-            _ => fail!("Out of bounds access")
+            _ => fail!("out of bounds access")
         }
     }
 
index 9761bd3317c703f0f73cc8c333cdfa3d011282ed..a2bb56fdf5f65b38b0cb4c15ca839924cb8ee556 100644 (file)
@@ -19,4 +19,4 @@ fn bar() {
     while (i < 1000) {}
 }
 
-fn main() {} //~ ERROR This file contains an un-closed delimiter
+fn main() {} //~ ERROR this file contains an un-closed delimiter
index d0c7a07859ea691e9145252cf4a66b372253a2f0..691bd3b4211cc2dbef9c9018714780b1ba038ef7 100644 (file)
@@ -20,16 +20,16 @@ fn main()
 
     let _z = match g(1, 2) {
       g(x, x) => { info!("{:?}", x + x); }
-      //~^ ERROR Identifier `x` is bound more than once in the same pattern
+      //~^ ERROR identifier `x` is bound more than once in the same pattern
     };
 
     let _z = match i(l(1, 2), m(3, 4)) {
-      i(l(x, _), m(_, x))  //~ ERROR Identifier `x` is bound more than once in the same pattern
+      i(l(x, _), m(_, x))  //~ ERROR identifier `x` is bound more than once in the same pattern
         => { error!("{:?}", x + x); }
     };
 
     let _z = match (1, 2) {
-        (x, x) => { x } //~ ERROR Identifier `x` is bound more than once in the same pattern
+        (x, x) => { x } //~ ERROR identifier `x` is bound more than once in the same pattern
     };
 
 }
index 308a881935555a2f5b0591c3f5e35cc1676e2c66..cfb10d39201ab8d21b5e776dd596b4a5eadfc72a 100644 (file)
@@ -10,7 +10,7 @@
 
 use std::cmp::Eq;
 
-trait Hahaha: Eq + Eq + Eq + Eq + Eq + //~ ERROR Duplicate supertrait
+trait Hahaha: Eq + Eq + Eq + Eq + Eq + //~ ERROR duplicate supertrait
               Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq +
               Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq +
               Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq + Eq +
index 7802c13bd3a27cfedbd5a684b37f09217e4f8bc3..82b1438d6fe013195bd78013da804c65e427736f 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern: Multiple macro registration functions found
+// error-pattern: multiple macro registration functions found
 
 #[feature(macro_registrar)];
 
index 52c60971708fa1d8c7f4e76850bef52b0b9aea55..2a9a0358cc6c0fb220a2888a8f2de440aa2bfd3b 100644 (file)
@@ -13,6 +13,6 @@
 fn main() {
     fn bar(n: int) {
         let _x: [int, ..n];
-        //~^ ERROR expected constant expr for vector length: Non-constant path in constant expr
+        //~^ ERROR expected constant expr for vector length: non-constant path in constant expr
     }
 }
index 63e38e35447b289d85bcc3795a370ff2f3da17b3..cd555f8d917882cf403381a36cdcfde3eea1da5a 100644 (file)
@@ -12,7 +12,7 @@
 
 fn f2() {
     let _end_stmt     = Foo { };
-    //~^ ERROR: Unit-like struct construction is written with no trailing `{ }`
+    //~^ ERROR: unit-like struct construction is written with no trailing `{ }`
 }
 
 fn main() {}
index 33077d4f1b3ff95d8615de9ce09de9735c6d1617..2595c5e8acf87374a8efd5a886135a2d6b327b23 100644 (file)
@@ -12,7 +12,7 @@
 
 fn g3() {
     let _mid_tuple    = (Foo { }, 2);
-    //~^ ERROR: Unit-like struct construction is written with no trailing `{ }`
+    //~^ ERROR: unit-like struct construction is written with no trailing `{ }`
 }
 
 fn main() {}
index 6b73cb769ee30856a019d21316d35dba30fa186d..fee5c35e85005fca39aa7f0eb07c318c0ad188da 100644 (file)
@@ -12,7 +12,7 @@
 
 fn h4() {
     let _end_of_tuple = (3, Foo { });
-    //~^ ERROR: Unit-like struct construction is written with no trailing `{ }`
+    //~^ ERROR: unit-like struct construction is written with no trailing `{ }`
 }
 
 fn main() {}
index 81c050e61cb0704c2fd44f6258bfbc7d7bd944d9..bd196e881aa35cc5c6ba64f6b38acd07a941d771 100644 (file)
@@ -12,7 +12,7 @@
 
 fn i5() {
     let _end_of_block = { Foo { } };
-    //~^ ERROR: Unit-like struct construction is written with no trailing `{ }`
+    //~^ ERROR: unit-like struct construction is written with no trailing `{ }`
 }
 
 fn main() {}
index 6142ec0653ccec526a9536b0aa410d5e881878fe..ee853ade18eab51e1258fd5429f4c36ec6c1492a 100644 (file)
@@ -9,6 +9,6 @@
 // except according to those terms.
 
 struct Foo {}
-//~^ ERROR: Unit-like struct definition should be written as `struct Foo;`
+//~^ ERROR: unit-like struct definition should be written as `struct Foo;`
 
 fn main() {}
index 8bdc643f288c5cb94d408c3f9deb9ae573bec5d3..f5b4342ceb7498e09586bcd61ef627b0bd375c29 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!('λ'); //~ ERROR Non-ascii char literal in bytes!
+    let vec = bytes!('λ'); //~ ERROR non-ascii char literal in bytes!
 }
index fed6bdc94700d496677a0c56a929414aef001e6f..281a5630f82c9b82898a535cc9b00051d53687d4 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!(foo); //~ ERROR Non-literal in bytes!
+    let vec = bytes!(foo); //~ ERROR non-literal in bytes!
 }
index 8acb280dfde17b7d1b60010c8bb82fdede2a79df..25688d7d17ab44f6228042a17a2bdf2317c98bf9 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!(1024); //~ ERROR Too large integer literal in bytes!
+    let vec = bytes!(1024); //~ ERROR too large integer literal in bytes!
 }
index b7d69a3054f9b6423813230eb99fdeef1617a6fe..d1c8a2c091304354dc3b6875482dd5895915f05d 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!(1024u8); //~ ERROR Too large u8 literal in bytes!
+    let vec = bytes!(1024u8); //~ ERROR too large u8 literal in bytes!
 }
index cec2dc0a8e093e14648a6d5236416a174aca900b..ef45ea06003d5f9c2c2b54ff57f91796fa53ee7e 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!(-1024); //~ ERROR Non-literal in bytes
+    let vec = bytes!(-1024); //~ ERROR non-literal in bytes
 }
index 2df55a6436cf5196ce8f9326001381243496ded0..b8ba73559aa74ea019eba2b72c6f9439701c760a 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!(-1024u8); //~ ERROR Non-literal in bytes
+    let vec = bytes!(-1024u8); //~ ERROR non-literal in bytes
 }
index 2d7ff386b7cc116f4549f9cf2e8e55b0f6fe336b..142566fe8ab789f0768817bd75616a8ade1e9090 100644 (file)
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 fn main() {
-    let vec = bytes!(45f64); //~ ERROR Unsupported literal in bytes!
+    let vec = bytes!(45f64); //~ ERROR unsupported literal in bytes!
 }