]> git.lizzy.rs Git - rust.git/commitdiff
Added tests to make tidy
authorDerek Guenther <dguenther9@gmail.com>
Wed, 5 Feb 2014 22:33:10 +0000 (16:33 -0600)
committerDerek Guenther <dguenther9@gmail.com>
Fri, 7 Feb 2014 18:49:24 +0000 (12:49 -0600)
321 files changed:
mk/tests.mk
src/etc/tidy.py
src/test/auxiliary/extern_mod_ordering_lib.rs
src/test/auxiliary/impl_privacy_xc_1.rs
src/test/auxiliary/impl_privacy_xc_2.rs
src/test/auxiliary/issue_3907_1.rs
src/test/auxiliary/kinds_in_metadata.rs
src/test/auxiliary/newtype_struct_xc.rs
src/test/auxiliary/no_std_crate.rs
src/test/auxiliary/packed.rs
src/test/auxiliary/private_variant_xc.rs
src/test/auxiliary/static_fn_trait_xc_aux.rs
src/test/auxiliary/static_mut_xc.rs
src/test/auxiliary/trait_default_method_xc_aux.rs
src/test/auxiliary/trait_default_method_xc_aux_2.rs
src/test/auxiliary/use_from_trait_xc.rs
src/test/auxiliary/xc_private_method_lib.rs
src/test/bench/noise.rs
src/test/bench/rt-messaging-ping-pong.rs
src/test/bench/shootout-fannkuch-redux.rs
src/test/bench/shootout-fasta-redux.rs
src/test/bench/shootout-k-nucleotide.rs
src/test/bench/shootout-nbody.rs
src/test/bench/task-perf-linked-failure.rs
src/test/compile-fail/autoderef-full-lval.rs
src/test/compile-fail/bad-char-literals3.rs
src/test/compile-fail/bad-char-literals4.rs
src/test/compile-fail/bad-match.rs
src/test/compile-fail/bad-mid-path-type-params.rs
src/test/compile-fail/borrowck-anon-fields-struct.rs
src/test/compile-fail/borrowck-anon-fields-tuple.rs
src/test/compile-fail/borrowck-anon-fields-variant.rs
src/test/compile-fail/borrowck-move-by-capture.rs
src/test/compile-fail/borrowck-move-in-irrefut-pat.rs
src/test/compile-fail/borrowck-move-moved-value-into-closure.rs
src/test/compile-fail/borrowck-move-mut-base-ptr.rs
src/test/compile-fail/borrowck-move-out-of-struct-with-dtor.rs
src/test/compile-fail/borrowck-move-out-of-tuple-struct-with-dtor.rs
src/test/compile-fail/borrowck-move-out-of-vec-tail.rs
src/test/compile-fail/borrowck-reborrow-from-shorter-lived-andmut.rs
src/test/compile-fail/borrowck-report-with-custom-diagnostic.rs
src/test/compile-fail/borrowck-swap-mut-base-ptr.rs
src/test/compile-fail/borrowck-vec-pattern-element-loan.rs
src/test/compile-fail/borrowck-vec-pattern-loan-from-mut.rs
src/test/compile-fail/borrowck-vec-pattern-move-tail.rs
src/test/compile-fail/borrowck-vec-pattern-nesting.rs
src/test/compile-fail/borrowck-vec-pattern-tail-element-loan.rs
src/test/compile-fail/box-static-bound.rs
src/test/compile-fail/by-move-pattern-binding.rs
src/test/compile-fail/closure-bounds-not-builtin.rs
src/test/compile-fail/closure-bounds-subtype.rs
src/test/compile-fail/closure-reform-bad.rs
src/test/compile-fail/closure-that-fails.rs
src/test/compile-fail/column-offset-1-based.rs
src/test/compile-fail/conflicting-implementations-aux.rs
src/test/compile-fail/dead-code-ret.rs
src/test/compile-fail/does-nothing.rs
src/test/compile-fail/eval-enum.rs
src/test/compile-fail/extenv-not-defined-default.rs
src/test/compile-fail/generic-impl-less-params-with-defaults.rs
src/test/compile-fail/generic-impl-more-params-with-defaults.rs
src/test/compile-fail/generic-type-more-params-with-defaults.rs
src/test/compile-fail/invalid-crate-type.rs
src/test/compile-fail/issue-2718-a.rs
src/test/compile-fail/issue-3008-1.rs
src/test/compile-fail/issue-3008-2.rs
src/test/compile-fail/issue-3008-3.rs
src/test/compile-fail/issue-3477.rs
src/test/compile-fail/issue-3668.rs
src/test/compile-fail/issue-3680.rs
src/test/compile-fail/issue-3779.rs
src/test/compile-fail/issue-4517.rs
src/test/compile-fail/issue-4968.rs
src/test/compile-fail/issue-5100.rs
src/test/compile-fail/issue-5239-1.rs
src/test/compile-fail/issue-5806.rs
src/test/compile-fail/issue-6596.rs
src/test/compile-fail/issue-6762.rs
src/test/compile-fail/issue-6804.rs
src/test/compile-fail/issue-6977.rs
src/test/compile-fail/issue-7013.rs
src/test/compile-fail/issue-7246.rs
src/test/compile-fail/issue-897-2.rs
src/test/compile-fail/keyword-super.rs
src/test/compile-fail/kindck-destructor-owned.rs
src/test/compile-fail/kindck-owned-trait-scoped.rs
src/test/compile-fail/lint-type-overflow.rs
src/test/compile-fail/liveness-return-last-stmt-semi.rs
src/test/compile-fail/liveness-unused.rs
src/test/compile-fail/macro-inner-attributes.rs
src/test/compile-fail/macro-outer-attributes.rs
src/test/compile-fail/map-types.rs
src/test/compile-fail/match-ill-type1.rs
src/test/compile-fail/match-ill-type2.rs
src/test/compile-fail/match-struct.rs
src/test/compile-fail/match-vec-fixed.rs
src/test/compile-fail/match-vec-invalid.rs
src/test/compile-fail/match-vec-mismatch-2.rs
src/test/compile-fail/match-vec-mismatch.rs
src/test/compile-fail/match-vec-unreachable.rs
src/test/compile-fail/moves-based-on-type-access-to-field.rs
src/test/compile-fail/moves-based-on-type-block-bad.rs
src/test/compile-fail/moves-based-on-type-capture-clause-bad.rs
src/test/compile-fail/moves-based-on-type-distribute-copy-over-paren.rs
src/test/compile-fail/moves-based-on-type-exprs.rs
src/test/compile-fail/moves-based-on-type-match-bindings.rs
src/test/compile-fail/moves-sru-moved-field.rs
src/test/compile-fail/mutable-enum-indirect.rs
src/test/compile-fail/new-box-syntax-bad.rs
src/test/compile-fail/no_crate_type.rs
src/test/compile-fail/no_freeze-enum.rs
src/test/compile-fail/no_freeze-rc.rs
src/test/compile-fail/no_freeze-struct.rs
src/test/compile-fail/no_send-enum.rs
src/test/compile-fail/no_send-rc.rs
src/test/compile-fail/no_send-struct.rs
src/test/compile-fail/non-constant-enum-for-vec-repeat.rs
src/test/compile-fail/non-constant-expr-for-fixed-len-vec.rs
src/test/compile-fail/non-exhaustive-match.rs
src/test/compile-fail/pattern-tyvar-2.rs
src/test/compile-fail/private-method-inherited.rs
src/test/compile-fail/private-variant-xc.rs
src/test/compile-fail/regions-addr-of-self.rs
src/test/compile-fail/regions-addr-of-upvar-self.rs
src/test/compile-fail/regions-fn-bound.rs
src/test/compile-fail/regions-freevar.rs
src/test/compile-fail/regions-infer-paramd-method.rs
src/test/compile-fail/regions-ref-in-fn-arg.rs
src/test/compile-fail/regions-trait-3.rs
src/test/compile-fail/resolve-inconsistent-binding-mode.rs
src/test/compile-fail/simd-type.rs
src/test/compile-fail/static-assert.rs
src/test/compile-fail/static-assert2.rs
src/test/compile-fail/static-method-privacy.rs
src/test/compile-fail/static-region-bound.rs
src/test/compile-fail/static-vec-repeat-not-constant.rs
src/test/compile-fail/staticness-mismatch.rs
src/test/compile-fail/super-at-top-level.rs
src/test/compile-fail/trait-coercion-generic-bad.rs
src/test/compile-fail/tuple-arity-mismatch.rs
src/test/compile-fail/type-parameter-names.rs
src/test/compile-fail/uninhabited-enum-cast.rs
src/test/compile-fail/unop-neg-bool.rs
src/test/compile-fail/use-after-move-implicity-coerced-object.rs
src/test/compile-fail/use-after-move-self-based-on-type.rs
src/test/compile-fail/use-after-move-self.rs
src/test/compile-fail/use-from-trait-xc.rs
src/test/compile-fail/use-from-trait.rs
src/test/compile-fail/variadic-ffi.rs
src/test/compile-fail/xc-private-method2.rs
src/test/debug-info/borrowed-enum.rs
src/test/debug-info/destructured-fn-argument.rs
src/test/debug-info/generic-struct-style-enum.rs
src/test/debug-info/generic-tuple-style-enum.rs
src/test/debug-info/include_string.rs
src/test/debug-info/issue11600.rs
src/test/debug-info/managed-enum.rs
src/test/debug-info/multiple-functions-equal-var-names.rs
src/test/debug-info/multiple-functions.rs
src/test/debug-info/packed-struct-with-destructor.rs
src/test/debug-info/packed-struct.rs
src/test/debug-info/struct-in-enum.rs
src/test/debug-info/struct-style-enum.rs
src/test/debug-info/tuple-style-enum.rs
src/test/debug-info/unique-enum.rs
src/test/pretty/block-comment-wchar.pp
src/test/pretty/block-comment-wchar.rs
src/test/pretty/closure-reform-pretty.rs
src/test/pretty/empty-impl.rs
src/test/pretty/path-type-bounds.rs
src/test/pretty/struct-tuple.rs
src/test/run-fail/assert-as-macro.rs
src/test/run-fail/assert-eq-macro-fail.rs
src/test/run-fail/die-macro-expr.rs
src/test/run-fail/die-macro-pure.rs
src/test/run-fail/die-macro.rs
src/test/run-make/c-dynamic-dylib/bar.rs
src/test/run-make/c-dynamic-dylib/foo.rs
src/test/run-make/c-dynamic-rlib/bar.rs
src/test/run-make/c-dynamic-rlib/foo.rs
src/test/run-make/c-link-to-rust-dylib/foo.rs
src/test/run-make/c-link-to-rust-staticlib/foo.rs
src/test/run-make/c-static-dylib/bar.rs
src/test/run-make/c-static-dylib/foo.rs
src/test/run-make/c-static-rlib/bar.rs
src/test/run-make/c-static-rlib/foo.rs
src/test/run-make/crate-data-smoke/crate.rs
src/test/run-make/crate-data-smoke/lib.rs
src/test/run-make/crate-data-smoke/rlib.rs
src/test/run-make/dep-info-custom/bar.rs
src/test/run-make/dep-info-custom/foo.rs
src/test/run-make/dep-info-custom/lib.rs
src/test/run-make/dep-info/bar.rs
src/test/run-make/dep-info/foo.rs
src/test/run-make/dep-info/lib.rs
src/test/run-make/duplicate-output-flavors/foo.rs
src/test/run-make/dylib-chain/m1.rs
src/test/run-make/dylib-chain/m2.rs
src/test/run-make/dylib-chain/m3.rs
src/test/run-make/dylib-chain/m4.rs
src/test/run-make/ls-metadata/foo.rs
src/test/run-make/lto-smoke-c/foo.rs
src/test/run-make/lto-smoke/lib.rs
src/test/run-make/lto-smoke/main.rs
src/test/run-make/mixing-deps/both.rs
src/test/run-make/mixing-deps/dylib.rs
src/test/run-make/mixing-deps/prog.rs
src/test/run-make/mixing-libs/dylib.rs
src/test/run-make/mixing-libs/prog.rs
src/test/run-make/mixing-libs/rlib.rs
src/test/run-make/output-type-permutations/foo.rs
src/test/run-make/prefer-dylib/bar.rs
src/test/run-make/prefer-dylib/foo.rs
src/test/run-make/prefer-rlib/bar.rs
src/test/run-make/prefer-rlib/foo.rs
src/test/run-make/prune-link-args/empty.rs
src/test/run-make/rlib-chain/m1.rs
src/test/run-make/rlib-chain/m2.rs
src/test/run-make/rlib-chain/m3.rs
src/test/run-make/rlib-chain/m4.rs
src/test/run-make/rustdoc-hidden-line/foo.rs
src/test/run-make/rustdoc-smoke/foo.rs
src/test/run-make/simple-dylib/bar.rs
src/test/run-make/simple-dylib/foo.rs
src/test/run-make/simple-rlib/bar.rs
src/test/run-make/simple-rlib/foo.rs
src/test/run-make/static-unwinding/lib.rs
src/test/run-make/static-unwinding/main.rs
src/test/run-pass/borrowck-macro-interaction-issue-6304.rs
src/test/run-pass/borrowck-move-by-capture-ok.rs
src/test/run-pass/borrowck-preserve-box-in-moved-value.rs
src/test/run-pass/can-copy-pod.rs
src/test/run-pass/cleanup-arm-conditional.rs
src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs
src/test/run-pass/cleanup-shortcircuit.rs
src/test/run-pass/closure-reform.rs
src/test/run-pass/coerce-reborrow-imm-ptr-arg.rs
src/test/run-pass/coerce-reborrow-imm-ptr-rcvr.rs
src/test/run-pass/coerce-reborrow-imm-vec-arg.rs
src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs
src/test/run-pass/coerce-reborrow-mut-ptr-arg.rs
src/test/run-pass/coerce-reborrow-mut-ptr-rcvr.rs
src/test/run-pass/coerce-reborrow-mut-vec-arg.rs
src/test/run-pass/coerce-reborrow-mut-vec-rcvr.rs
src/test/run-pass/const-struct-offsets.rs
src/test/run-pass/deriving-enum-single-variant.rs
src/test/run-pass/deriving-global.rs
src/test/run-pass/deriving-via-extension-struct-like-enum-variant.rs
src/test/run-pass/die-macro.rs
src/test/run-pass/enum-discr.rs
src/test/run-pass/enum-variants.rs
src/test/run-pass/expr-repeat-vstore.rs
src/test/run-pass/extern-mod-ordering-exe.rs
src/test/run-pass/extern-pub.rs
src/test/run-pass/foreign-call-no-runtime.rs
src/test/run-pass/func-arg-incomplete-pattern.rs
src/test/run-pass/func-arg-ref-pattern.rs
src/test/run-pass/func-arg-wild-pattern.rs
src/test/run-pass/generic-newtype-struct.rs
src/test/run-pass/guards-not-exhaustive.rs
src/test/run-pass/impl-privacy-xc-1.rs
src/test/run-pass/impl-privacy-xc-2.rs
src/test/run-pass/issue-2185.rs
src/test/run-pass/issue-2804.rs
src/test/run-pass/issue-3211.rs
src/test/run-pass/issue-3250.rs
src/test/run-pass/issue-3556.rs
src/test/run-pass/issue-3563-3.rs
src/test/run-pass/issue-3609.rs
src/test/run-pass/issue-4120.rs
src/test/run-pass/issue-4401.rs
src/test/run-pass/issue-5239-2.rs
src/test/run-pass/issue-5572.rs
src/test/run-pass/issue-7563.rs
src/test/run-pass/issue-7911.rs
src/test/run-pass/ivec-tag.rs
src/test/run-pass/kinds-in-metadata.rs
src/test/run-pass/let-destruct-ref.rs
src/test/run-pass/link-section.rs
src/test/run-pass/match-drop-strs-issue-4541.rs
src/test/run-pass/match-range-static.rs
src/test/run-pass/match-vec-rvalue.rs
src/test/run-pass/mid-path-type-params.rs
src/test/run-pass/move-out-of-field.rs
src/test/run-pass/move-self.rs
src/test/run-pass/moves-based-on-type-capture-clause.rs
src/test/run-pass/multiple-trait-bounds.rs
src/test/run-pass/new-box-syntax.rs
src/test/run-pass/new-impl-syntax.rs
src/test/run-pass/newtype-struct-with-dtor.rs
src/test/run-pass/newtype-struct-xc-2.rs
src/test/run-pass/newtype-struct-xc.rs
src/test/run-pass/nullable-pointer-iotareduction.rs
src/test/run-pass/packed-struct-size-xc.rs
src/test/run-pass/pub-extern-privacy.rs
src/test/run-pass/raw-str.rs
src/test/run-pass/reflect-visit-type.rs
src/test/run-pass/self-type-param.rs
src/test/run-pass/signal-exit-status.rs
src/test/run-pass/simd-type.rs
src/test/run-pass/smallest-hello-world.rs
src/test/run-pass/static-assert.rs
src/test/run-pass/static-fn-trait-xc.rs
src/test/run-pass/static-methods-in-traits2.rs
src/test/run-pass/struct-field-assignability.rs
src/test/run-pass/struct-new-as-field-name.rs
src/test/run-pass/super.rs
src/test/run-pass/trait-default-method-xc-2.rs
src/test/run-pass/trait-default-method-xc.rs
src/test/run-pass/trait-inheritance-self-in-supertype.rs
src/test/run-pass/trait-inheritance-self.rs
src/test/run-pass/trait-object-generics.rs
src/test/run-pass/typeck-macro-interaction-issue-8852.rs
src/test/run-pass/unnamed_argument_mode.rs
src/test/run-pass/vec-matching-autoslice.rs
src/test/run-pass/vec-matching-fixed.rs
src/test/run-pass/vec-matching-fold.rs
src/test/run-pass/vec-matching-legal-tail-element-borrow.rs
src/test/run-pass/vec-matching.rs
src/test/run-pass/vec-tail-matching.rs
src/test/run-pass/while-with-break.rs

index 426b4be156edf1673afe53a625178015f4f10a48..c86676d65126d3e737244474a6a3b4fbd5eded3b 100644 (file)
@@ -242,7 +242,6 @@ ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
 tidy:
                @$(call E, check: formatting)
                $(Q)find $(S)src -name '*.r[sc]' \
-               | grep '^$(S)src/test' -v \
                | grep '^$(S)src/libuv' -v \
                | grep '^$(S)src/llvm' -v \
                | grep '^$(S)src/gyp' -v \
index b342b9602ae89c35a940b3968613f7dd2b961643..9bab9a3d9986a824cac49e848471643005e7c2bc 100644 (file)
@@ -14,6 +14,9 @@ import snapshot
 
 err=0
 cols=100
+cr_flag="xfail-tidy-cr"
+tab_flag="xfail-tidy-tab"
+linelength_flag="xfail-tidy-linelength"
 
 # Be careful to support Python 2.4, 2.6, and 3.x here!
 config_proc=subprocess.Popen([ "git", "config", "core.autocrlf" ],
@@ -46,12 +49,22 @@ file_names = [s for s in sys.argv[1:] if (not s.endswith("_gen.rs"))
 
 current_name = ""
 current_contents = ""
+check_tab = True
+check_cr = True
+check_linelength = True
+
 
 try:
     for line in fileinput.input(file_names,
                                 openhook=fileinput.hook_encoded("utf-8")):
 
         if fileinput.filename().find("tidy.py") == -1:
+            if line.find(cr_flag) != -1:
+                check_cr = False
+            if line.find(tab_flag) != -1:
+                check_tab = False
+            if line.find(linelength_flag) != -1:
+                check_linelength = False
             if line.find("// XXX") != -1:
                 report_err("XXX is no longer necessary, use FIXME")
             if line.find("TODO") != -1:
@@ -72,16 +85,16 @@ try:
                 if "SNAP" in line:
                     report_warn("unmatched SNAP line: " + line)
 
-        if (line.find('\t') != -1 and
+        if check_tab and (line.find('\t') != -1 and
             fileinput.filename().find("Makefile") == -1):
             report_err("tab character")
-        if not autocrlf and line.find('\r') != -1:
+        if check_cr and not autocrlf and line.find('\r') != -1:
             report_err("CR character")
         if line.endswith(" \n") or line.endswith("\t\n"):
             report_err("trailing whitespace")
         line_len = len(line)-2 if autocrlf else len(line)-1
 
-        if line_len > cols:
+        if check_linelength and line_len > cols:
             report_err("line longer than %d chars" % cols)
 
         if fileinput.isfirstline() and current_name != "":
@@ -90,6 +103,9 @@ try:
         if fileinput.isfirstline():
             current_name = fileinput.filename()
             current_contents = ""
+            check_cr = True
+            check_tab = True
+            check_linelength = True
 
         current_contents += line
 
index d04351203da36b33dc68d8dece88484559412d54..cf00f077e0762e1d92d90c2f4f134aac30c1e0ef 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type="lib"];
 
 pub mod extern_mod_ordering_lib {
index 4752c5a3bac56c67a5207bbbf90ed6cffc9c30fb..356990e1e01cfdaf7f0238ad5bf8ebebfe746a32 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "lib"];
 
 pub struct Fish {
index 7ef36b1fb66272d40be8f9ed195d5ba81bfdadfa..92e6ca1cc480cc257173123b44846e50ee94a37c 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "lib"];
 
 pub struct Fish {
index 4cc36773f525cdecc5bac0041d35656a34e9eca5..25d2e3399cf41727c6891e17ea5d9886b285b736 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub trait Foo {
         fn bar();
 }
index a8f8dbf318d2fd69a18f9cfa49907e20127e0e3a..387767f374f637112a52a06269826a2237a2588b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index e0d2541dbe3d15ceccb4a14de66cc5d2b141601f..3833b549b5fc009877402bb42edeea1ec22d0e3f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type="lib"];
 
 pub struct Au(int);
index 70f1b76e246ce532bfde69e4459e899e40bfba66..0160c7d3cb3b7bd180e2535aafdf6691c6a7644a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[no_std];
 
 pub fn foo() {}
index 150de8d314d8f769d9ed1de9675f6eea98d73d1a..54b2658e380d22d47fe065a21ff7c20fec4e44e5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[packed]
 pub struct S {
     a: u8,
index e1ecbf8c5432e65de64ba295bcd5befec6d9eeca..f9308ff7497984f782169b4d24f49ca7f527a2e4 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub enum Foo {
     Bar,
     priv Baz,
index a0c9edac5e146bb31259a877010f1cd326194cd5..8785a8085dc359ac7e75e6938b4b8d8cc5c17f09 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub mod num {
     pub trait Num2 {
         fn from_int2(n: int) -> Self;
index 8dc45c681bfef07e1b89c26c7611210740e3341e..5660fd5b61f9db76ca044052d26e5cb208832339 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub static mut a: int = 3;
index 0012d3e36c6462b79038562731037c0cb64d5b53..f9f8a6be7d8a8769afd7586b8745b3b1da536e56 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id="trait_default_method_xc_aux"];
 
 pub struct Something { x: int }
index 849709dfd2210fddfd3e4eedf00ae1e3b7b4ef36..145f84e558fb869de585c7d47584bccf8ddb6ecc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:trait_default_method_xc_aux.rs
 
 extern mod aux = "trait_default_method_xc_aux";
index d5abfd5754c9af5c65790ab1862dc2539023e05d..19e53fcc61aa3ee33d3b96232eb3c7d08490205b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub trait Trait {
     fn foo();
 }
index 8290f62bada26aed8db31e617f91a21765dcebbb..a9e5775fb4e6f1f6acca70b081ac8381ba861761 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type="lib"];
 
 pub struct Struct {
index 4ffe1aed32fb822681e061a1b2d85c586b84fc03..e9e59924acc7254908bbd79a2d4bd0a54792bf93 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Perlin noise benchmark from https://gist.github.com/1170424
 
 use std::f64;
index 0412a9596f0a24cf4c94eb5e303cbd431267e9b6..b42644f39cb30d7ce84456c2f9e81c909c0cb048 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
index b5697310fce188b951d6835dc85cdc9738d482d1..0b76e128587fbc3cdd3e754ad3d9177b4f4e5a4f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test reading from os::args()[1] - bogus!
 
 use std::from_str::FromStr;
index 3719e76b30fc2dd0eaa47d51fb9d0df240966868..cb24550e277767fc9d2a9b9c02abb20d4db24e75 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test reading from os::args()[1] - bogus!
 
 use std::cast::transmute;
index 94569dc5ac0a2fd785312d5c70f1930d2a0a8089..be8daf34df70678aa9122938e50336be662a3e65 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 
 extern mod extra;
index 733269f2a5f2829a48e8d5a9feeaee7cf45d9a81..ce49b8b2141ef9b8497e157494c416d82f8dcba8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::os;
 
 static PI: f64 = 3.141592653589793;
index 052900102c9a27f8a06c6e600335580b995bca79..fe4045e441047ed2c7f376a0f2274a699d4dc973 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-pretty
 // xfail-test linked failure
 
index 7b15942a08faff93586265eee1e0c7e1379e7d70..1741210f9ed50fa780eee59f06f53a6f63a64e3b 100644 (file)
@@ -27,7 +27,8 @@ fn main() {
     assert_eq!(z, 21);
     let forty: fish = fish{a: @40};
     let two: fish = fish{a: @2};
-    let answer: int = forty.a + two.a;  //~ ERROR binary operation `+` cannot be applied to type `@int`
+    let answer: int = forty.a + two.a;
+    //~^ ERROR binary operation `+` cannot be applied to type `@int`
     info!("{:?}", answer);
     assert_eq!(answer, 42);
 }
index 9bbe5c75b17234bcb5f1b08e475ff411c3960d41..6aa7f3ed06d04cd827a5414d7b5aeefdb4dd9e7e 100644 (file)
@@ -8,8 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-cr
 fn main() {
     // note that this is a literal "\r" byte
-    '\r';
-    //~^ ERROR: character constant must be escaped
+    '
+'; //~^ ERROR: character constant must be escaped
 }
index 675ff742d5cca321f97d0889dae92e95f81f376b..1e1a99270e7f5f9c514a9844f3e2e6fdb0b61683 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-tab
 fn main() {
     // note that this is a literal tab character here
     '  ';
index 041f84bc6ee0ed3ce6c4dfdcc3e9f49facdef865..39c3ed3e2a3d2ab230ff9b5394143e72dc7a369d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern: expected
 
 fn main() {
index 82eddf669af7af8d31140773f9a488e3888bd4e5..b02397c510a1f2c048e6ca68f3e4c9279b1ce0dc 100644 (file)
@@ -1,3 +1,15 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// xfail-tidy-linelength
+
 #[no_std];
 
 struct S<T> {
@@ -29,10 +41,12 @@ fn new<U>(x: int, _: U) -> S2 {
 }
 
 fn foo<'a>() {
-    let _ = S::new::<int,f64>(1, 1.0);    //~ ERROR the impl referenced by this path needs 1 type parameter, but 0 type parameters were supplied
-    let _ = S::<'a,int>::new::<f64>(1, 1.0);  //~ ERROR expected 0 lifetime parameter(s)
-    let _: S2 = Trait::new::<int,f64>(1, 1.0);    //~ ERROR the trait referenced by this path needs 1 type parameter, but 0 type parameters were supplied
-    let _: S2 = Trait::<'a,int>::new::<f64>(1, 1.0);   //~ ERROR expected 0 lifetime parameter(s)
+    let _ = S::new::<int,f64>(1, 1.0);
+    //~^ ERROR the impl referenced by this path needs 1 type parameter, but 0 type parameters were supplied
+    let _ = S::<'a,int>::new::<f64>(1, 1.0); //~ ERROR expected 0 lifetime parameter(s)
+    let _: S2 = Trait::new::<int,f64>(1, 1.0);
+    //~^ ERROR the trait referenced by this path needs 1 type parameter, but 0 type parameters were supplied
+    let _: S2 = Trait::<'a,int>::new::<f64>(1, 1.0); //~ ERROR expected 0 lifetime parameter(s)
 }
 
 fn main() {}
index 46215d6b164364a2c543c42755f0849ec0c8774f..514dd584c6a027a1696fa3897c5b4da5d435a95f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that we are able to distinguish when loans borrow different
 // anonymous fields of a tuple vs the same anonymous field.
 
index de2a8d83268089cc692fed36d3d4626821bfd798..ebaed01756fb227911f4a92092f7b9bc212b5eb7 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that we are able to distinguish when loans borrow different
 // anonymous fields of a tuple vs the same anonymous field.
 
index da0a9323d2c8178da4b8cff2cf4db54e790596c8..12624a49f7a295508a0e954c32f85eeeed1b080f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that we are able to distinguish when loans borrow different
 // anonymous fields of an enum variant vs the same anonymous field.
 
index ac565e9bfd694241ddf24ecb9278945177256b7c..5af1f8312aaa55b78cd9ed4a1aebdce5cc3e9fed 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     // FIXME(#2202) - Due to the way that borrowck treats closures,
     // you get two error reports here.
index 7615036300f6fefcf09b46f983e58cc9ea58f09f..63f88347090e4ec397d77bebe7476c9e4b3cc53f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn with(f: |&~str|) {}
 
 fn arg_item(&_x: &~str) {}
index 6e6a779840e761dbe352bf1159a628bacbde8d04..53b5d866b81d9329e6349d75b3acec32f1d23658 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn call_f(f: proc() -> int) -> int {
     f()
 }
index 565629b1c306df59cae114fcbe10da62c6e6a9b4..0015ddf368e2ec0754f39c36f91de6395be8488f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test that attempt to move `&mut` pointer while pointee is borrowed
 // yields an error.
 //
index 06b77686d2e5049025b0d187e2a3288de36034c5..c4c0544428598b6f9d4ee35e2546fee0036ef452 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S {f:~str}
 impl Drop for S {
     fn drop(&mut self) { println!("{}", self.f); }
index 4faee14e8c72d4afc102ac4ba808bbb3f006004d..66d16f88172f4d1821df2312c31cc8e424ee785c 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S(~str);
 impl Drop for S {
     fn drop(&mut self) { }
index 4b6a2eca1af1df5ce4221fe1223831ff3a8cd399..27b831f3d2bd2c2ea94238e70a74e93114e95274 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test that we do not permit moves from &[] matched by a vec pattern.
 
 #[deriving(Clone)]
index 85ddfd9424c292f0b30b05696d95d52d1e461b51..0e1c4758c1be10a23e43e79df363cb01ea6d7ca5 100644 (file)
@@ -16,7 +16,8 @@ struct S<'a> {
 }
 
 fn copy_borrowed_ptr<'a,'b>(p: &'a mut S<'b>) -> S<'b> {
-    S { pointer: &mut *p.pointer } //~ ERROR lifetime of `p` is too short to guarantee its contents can be safely reborrowed
+    S { pointer: &mut *p.pointer }
+    //~^ ERROR lifetime of `p` is too short to guarantee its contents can be safely reborrowed
 }
 
 fn main() {
index 3c01045369f28a5b5517d8759d91d73733f5f496..1822cd4a89231b0fbbc5f8f6c798ca0c691c71cb 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[allow(dead_code)];
 fn main() {
     // Original borrow ends at end of function
index ab6f70945be6cab8a66db1bd2da1ccb92ee24273..06b66c2627cc774692c7de55c9ee182cc5d4aa04 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test that attempt to swap `&mut` pointer while pointee is borrowed
 // yields an error.
 //
index ca20d68e4cdcbde130e1e448ab4ef9cec03edeab..97f781cffc9ce9c514b7a9129d2520b86ab35060 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() -> &[int] {
     let vec = ~[1, 2, 3, 4];
     let tail = match vec {
index 635ce77bb8a5b22909439529854c46c6cdd3476f..da692e330b673a4218708a5e336ac6deb1e10f57 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() {
     let mut v = ~[1, 2, 3];
     match v {
index 7246b6688fdb259d2a1c327276a6405370f3729d..909af7da96084246efc0bef160681643a92bb2f9 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     let mut a = [1, 2, 3, 4];
     let t = match a {
index 02ba1b9d2fffb634f41b8336a5aedfc7bbccfe71..be66dcf372ed39123c70973c399b5245e4bc2bea 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() {
     let mut vec = ~[~1, ~2, ~3];
     match vec {
index e542238d035665c2b56f238f167877663d939223..cf20d57ac58bea82672db985de39c06f241e8b39 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() -> &int {
     let vec = ~[1, 2, 3, 4];
     let tail = match vec {
index 160f73f4a58ac8f51b0a53fd23a390507f0dfbb4..45a42f821456de4f58e59a4a40a21ee8fc2ccf61 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(managed_boxes)];
 
 fn f<T>(x: T) -> @T {
index f05931d7fb40885ff793dd0cc9c81b69749a95d1..c789c83d9adf53e6dc2a75c30dba63d682203337 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 enum E {
     Foo,
     Bar(~str)
index 4afab8db5468b525cae2ed29fd6109ccfdbd189f..6b25e4be2d9a3f033e9e51d53ebcc379a74ef3e4 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 
 trait Foo {}
 
index 77281b26554b1f502fb49db5774486a0abdb880f..9747a44cef074ee903d295052a148681d3869619 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 
 fn take_any(_: ||:) {
 }
index 44c62442ff4d104248a473c1da3a9a8dcddeeb89..a5168c46045805948e728e64139313070f9d5256 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index fc8e2d4d853f1e4f5ce23d5e07524536092bb29e..60c80f872ec0fdfafee092f1be70c0f21a3d606f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn foo(f: || -> !) {}
 
 fn main() {
index 8c100fd9718ffbcc59d2e26160fb89a0141eaa57..5b38b17ad959d92ff15c9ad057cbf6ef90954551 100644 (file)
@@ -1 +1,11 @@
-# //~ ERROR 1:1: 1:2 error: expected item
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+# //~ ERROR 11:1: 11:2 error: expected item
index e39059124a091223fd31449d1d721e6626e870ba..3a1f696193e96a94cea05034f190f91ab1737222 100644 (file)
@@ -17,7 +17,8 @@
 
 impl<A> Foo for A {
 //~^ ERROR conflicting implementations for trait `trait_impl_conflict::Foo`
-//~^^ ERROR cannot provide an extension implementation where both trait and type are not defined in this crate
+//~^^ ERROR cannot provide an extension implementation where both trait and type
+//          are not defined in this crate
 }
 
 fn main() {
index 1d59406d1bcf4bd27344bc6a39eeb38313ff5e32..7860e19ea3e80270e40a75d41c79cede136059eb 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 
 // xfail'd because the lint pass doesn't know to ignore standard library
index 9d2b68ddb81ef6ce2cd712ac3160e3941998c7c2..23b9f0482424796ed9b8b2fc6ad8be3c0c24616d 100644 (file)
@@ -1,2 +1,12 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern: unresolved name `this_does_nothing_what_the`.
 fn main() { info!("doing"); this_does_nothing_what_the; info!("boing"); }
index f92dad961d1344b7b713338b639637ffa6791c3e..92b7b601e4dc36430bf5447ed5f17209916e2176 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 enum test {
     div_zero = 1/0, //~ERROR expected constant: attempted to divide by zero
     rem_zero = 1%0  //~ERROR expected constant: attempted remainder with a divisor of zero
index 24e447eec6d3697c1ed85d31a752bc351c528c41..d99d4dc33a27ac257743bffb2aee2e506e9f63a9 100644 (file)
@@ -8,4 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn main() { env!("__HOPEFULLY_NOT_DEFINED__"); } //~ ERROR: environment variable `__HOPEFULLY_NOT_DEFINED__` not defined
+fn main() {
+    env!("__HOPEFULLY_NOT_DEFINED__");
+    //~^ ERROR: environment variable `__HOPEFULLY_NOT_DEFINED__` not defined
+}
index 28e7a37778aeebd0af010046220e07b5e61d35a7..a95124239a94f523c0578d482e341b73467aca27 100644 (file)
@@ -17,6 +17,8 @@ fn new() -> Foo<A, B, C> {Foo}
 }
 
 fn main() {
-    Foo::<int>::new(); //~ ERROR the impl referenced by this path needs at least 2 type parameters, but 1 type parameter were supplied
-    //~^ ERROR not enough type parameters provided: expected at least 2, found 1
+    Foo::<int>::new();
+    //~^ ERROR the impl referenced by this path needs at least 2 type parameters,
+    //         but 1 was supplied
+    //~^^^ ERROR not enough type parameters provided: expected at least 2, found 1
 }
index 10404680cdd236aa1927f9a0e13e70e28bf86286..c6ee8a870ee5313e98e944b102cf5f5b55ff3478 100644 (file)
@@ -19,6 +19,8 @@ fn new() -> Vec<T, A> {Vec}
 }
 
 fn main() {
-    Vec::<int, Heap, bool>::new(); //~ ERROR the impl referenced by this path needs at most 2 type parameters, but 3 type parameters were supplied
-    //~^ ERROR too many type parameters provided: expected at most 2, found 3
+    Vec::<int, Heap, bool>::new();
+    //~^ ERROR the impl referenced by this path needs at most 2 type parameters,
+    //         but 3 were supplied
+    //~^^^ ERROR too many type parameters provided: expected at most 2, found 3
 }
index 65c0d09ccf4d699963b5d49e8ffc52ef79dc715e..b4c80bc1e3d13ebca08911bb74a8ba0c097b3f1a 100644 (file)
@@ -15,5 +15,6 @@
 struct Vec<T, A = Heap>;
 
 fn main() {
-    let _: Vec<int, Heap, bool>; //~ ERROR wrong number of type arguments: expected at most 2 but found 3
+    let _: Vec<int, Heap, bool>;
+    //~^ ERROR wrong number of type arguments: expected at most 2 but found 3
 }
index 2a80760cd1b715b92dac4416751d50df6ab8e9a1..e1398b2a361a1f0af5cab20ed52a3a4b72e3241d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // regression test for issue 11256
 #[crate_type="foo"];    //~ ERROR invalid `crate_type` value
 
index 8afaf8995c291f0ace90aa6c2b12d424f2e0d333..b78e01f2b7a677c948e77b8d8730ea2d61945586 100644 (file)
@@ -18,7 +18,8 @@ pub struct send_packet<T> {
 mod pingpong {
     use send_packet;
     pub type ping = send_packet<pong>;
-    pub struct pong(send_packet<ping>); //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
+    pub struct pong(send_packet<ping>);
+    //~^ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
 }
 
 fn main() {}
index 6d8dec687cd55278df9405f4e76ede6ea4c62ff1..3613fb8ccbe12a26f1ade178b3474e470cfddbe9 100644 (file)
@@ -9,7 +9,8 @@
 // except according to those terms.
 
 enum foo { foo(bar) }
-enum bar { bar_none, bar_some(bar) } //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
+enum bar { bar_none, bar_some(bar) }
+//~^ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
 
 fn main() {
 }
index 88ebf610aaf4ffc49e77b55615ed4682a6b7266b..db3124214bd9775ea4b051e75a49d219e1eb240e 100644 (file)
@@ -9,8 +9,9 @@
 // except according to those terms.
 
 enum foo { foo(bar) }
-struct bar { x: bar } //~ ERROR illegal recursive struct type; wrap the inner value in a box to make it representable
-//~^ ERROR this type cannot be instantiated without an instance of itself
+struct bar { x: bar }
+//~^ ERROR illegal recursive struct type; wrap the inner value in a box to make it representable
+//~^^ ERROR this type cannot be instantiated without an instance of itself
 
 fn main() {
 }
index 8680ee8707e11b9c021835829e4ac8ab72e4d50f..b8ef57e2dd34de7e0a9b39f066db344222188f8d 100644 (file)
@@ -9,7 +9,8 @@
 // except according to those terms.
 
 enum E1 { V1(E2<E1>), }
-enum E2<T> { V2(E2<E1>), } //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
+enum E2<T> { V2(E2<E1>), }
+//~^ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
 
 fn main() {
 }
index 23e680fd851c37de7cc0d0f9753e673ad0fc2e02..df9af9c6bcca162c1c059176b75e245d2c90fc54 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     let _p: char = 100; //~ ERROR mismatched types: expected `char` but found
 }
index fe57d7171a68fe7b4c1c923726dfd6f264602b66..9f60cceb152ec006603d6935103d3c0ab01e6119 100644 (file)
@@ -17,7 +17,8 @@ trait PTrait {
 
 impl PTrait for P {
    fn getChildOption(&self) -> Option<@P> {
-       static childVal: @P = self.child.get(); //~ ERROR attempt to use a non-constant value in a constant
+       static childVal: @P = self.child.get();
+       //~^ ERROR attempt to use a non-constant value in a constant
        fail!();
    }
 }
index de2165ff633c111833d73a3c424ebe78481456df..f6b5be349d0ebe97502c26812b8ac89e919fd6de 100644 (file)
@@ -10,6 +10,8 @@
 
 fn main() {
     match None {
-        Err(_) => () //~ ERROR mismatched types: expected `std::option::Option<<generic #1>>` but found `std::result::Result<<generic #2>,<generic #3>>`
+        Err(_) => ()
+        //~^ ERROR mismatched types: expected `std::option::Option<<generic #1>>`
+        //         but found `std::result::Result<<generic #2>,<generic #3>>`
     }
 }
index 79360597f721516ef69db7b967336f525eeecc86..19a7ed05bf4424ebe3d3a1df70c91731cceb0e16 100644 (file)
@@ -8,7 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-struct S { //~ ERROR illegal recursive struct type; wrap the inner value in a box to make it representable
+struct S {
+    //~^ ERROR illegal recursive struct type; wrap the inner value in a box to make it representable
     element: Option<S>
 }
 
index 0fbc79b1bc7bdb85c5bc193d0069b44e03f19727..b280365a7bacc694a7b8c6102ddbc4abb1ecfe2e 100644 (file)
@@ -1,6 +1,18 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn bar(int_param: int) {}
 
 fn main() {
-     let foo: [u8, ..4] = [1u8, ..4u8];
-     bar(foo); //~ ERROR mismatched types: expected `int` but found `[u8, .. 4]` (expected int but found vector)
+    let foo: [u8, ..4] = [1u8, ..4u8];
+    bar(foo);
+    //~^ ERROR mismatched types: expected `int` but found `[u8, .. 4]`
+    //         (expected int but found vector)
 }
index 5739f3dc46b909dd96a2cae57c1e89d1a19b44de..ec1f62c33fcbb7648b204766c59b48d2dfe0dd0e 100644 (file)
@@ -12,5 +12,7 @@
 
 static A: (int,int) = (4,2);
 fn main() {
-    match 42 { A => () } //~ ERROR mismatched types: expected `<generic integer #0>` but found `(int,int)` (expected integral variable but found tuple)
+    match 42 { A => () }
+    //~^ ERROR mismatched types: expected `<generic integer #0>` but found `(int,int)`
+    //         (expected integral variable but found tuple)
 }
index 25efa108ae34dfb0c8ba8748362b670f34f5f209..ae523e1a9c4742590c789a6152dbed9b523927d2 100644 (file)
@@ -17,15 +17,19 @@ fn main() {
     }
 
     match (true, false) {
-        (true, false, false) => () //~ ERROR mismatched types: expected `(bool,bool)` but found tuple (expected a tuple with 2 elements but found one with 3 elements)
+        (true, false, false) => ()
+        //~^ ERROR mismatched types: expected `(bool,bool)` but found tuple
+        //         (expected a tuple with 2 elements but found one with 3 elements)
     }
 
     match (true, false) {
-        ~(true, false) => () //~ ERROR mismatched types: expected `(bool,bool)` but found a ~-box pattern
+        ~(true, false) => ()
+        //~^ ERROR mismatched types: expected `(bool,bool)` but found a ~-box pattern
     }
 
     match (true, false) {
-        &(true, false) => () //~ ERROR mismatched types: expected `(bool,bool)` but found an &-pointer pattern
+        &(true, false) => ()
+        //~^ ERROR mismatched types: expected `(bool,bool)` but found an &-pointer pattern
     }
 
 
index 399dd453f756c28f420771906e398a98f6087834..88b08655caad2547d3fc066932c15cf1e1062859 100644 (file)
@@ -11,5 +11,6 @@
 // Regression test for issue #5239
 
 fn main() {
-    let x: |int| -> int = |ref x| { x += 1; }; //~ ERROR binary assignment operation `+=` cannot be applied to type `&int`
+    let x: |int| -> int = |ref x| { x += 1; };
+    //~^ ERROR binary assignment operation `+=` cannot be applied to type `&int`
 }
index 676e8897dde8dd79818383db7cb7452e9a087760..8ac2429a3317c5fedc0c995cf893ace58777b01e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // opyright 2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
index 339f21d10c31dbf87e9420d78a9251f7ffcac41b..235a8003958d88430461c584ca0ebb5f1c17bf4e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(macro_rules)];
 
 // error-pattern: unknown macro variable `nonexistent`
index 22bb660a080666160761e4c61c79c5cb9b8aee82..bdb8c7299c5eae858094bf60b5421cf330812a6e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 //xfail-test
 
 // Creating a stack closure which references an owned pointer and then
index 23d9f3199c1779eac9ffc22994c2957f23367355..60f16275fc4ac45b17d82605c0eff4a928142a07 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[allow(dead_code)];
 
 // Matching against NaN should result in a warning
index 6c062b0f3f7ba1a0ba80b84c8878374b56e8aa2c..d0ff116b42fe1b829856b3142a757ce7ae211051 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Trying to create a fixed-length vector with a negative size
 
 fn main() {
index cf7cb1a5a535f48f593063c82772bb73349012c0..05d7b878d767b146711caabb03e06254424d4b07 100644 (file)
@@ -36,7 +36,8 @@ struct A
 
 fn main()
 {
-    let a = A {v: ~B{v: None} as ~Foo}; //~ ERROR cannot pack type `~B`, which does not fulfill `Send`
+    let a = A {v: ~B{v: None} as ~Foo};
+    //~^ ERROR cannot pack type `~B`, which does not fulfill `Send`
     let v = Rc::new(RefCell::new(a));
     let w = v.clone();
     let b = v.borrow();
index ce31ac2e8fa0a3bc7305b5f4843816c91fccd7c4..74bc1ac0d86a1b3870c047626aad700d08199aa6 100644 (file)
@@ -13,7 +13,7 @@
 
 use std::ptr;
 pub unsafe fn g() {
-    return; 
+    return;
     if *ptr::null() {}; //~ ERROR unreachable
 }
 
index c39c258c701f9001aef7428f841938fda7289479..5c7778807510b7ce331d29c3e9b479a1f1d751a5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 // xfail'd because the lint pass doesn't know to ignore standard library
 // stuff.
index 3c9c403e83d934375473cf5cd037617f011ba231..0a4ec841bd3cebc81b2b2475e2f635ac18fb3d95 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     let super: int; //~ ERROR found `super` in ident position
 }
index de277b4c36efddcb70a7b4346dcd7c798c2f34d4..1557aff6689f243904de63777be1b5f045f639b0 100644 (file)
@@ -1,10 +1,21 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(managed_boxes)];
 
 struct Foo {
     f: @int,
 }
 
-impl Drop for Foo { //~ ERROR cannot implement a destructor on a structure that does not satisfy Send
+impl Drop for Foo {
+    //~^ ERROR cannot implement a destructor on a structure that does not satisfy Send
     fn drop(&mut self) {
     }
 }
index e996a0468e4e295ffbffc21a84a30ad71eaff1bc..234043a879972efe2b883cb93fbd5a95877de324 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 // xfail'd because to_foo() doesn't work.
 
index 27cd2bae125c8187ec0e967b41de310e734b4f4d..e6c535925a4a00648217a5aa658eae2f7150eaeb 100644 (file)
@@ -34,9 +34,9 @@ fn main() {
     test(1000); //~ error: literal out of range for its type
 
     let x = 128_i8; //~ error: literal out of range for its type
-    let x = 127_i8; 
-    let x = -128_i8; 
-    let x = -(128_i8); 
+    let x = 127_i8;
+    let x = -128_i8;
+    let x = -(128_i8);
     let x = -129_i8; //~ error: literal out of range for its type
 
     let x: i32 = 2147483647; // should be OK
index dc131698b90653afc33c06ed37743459483a1a55..1b32c008af182c48da621c1feb3079f7e2c5bd77 100644 (file)
@@ -12,8 +12,9 @@
 
 #[feature(macro_rules)];
 
-macro_rules! test ( () => { fn foo() -> int { 1i; } } ) //~ ERROR  not all control paths return a value
-                                             //~^ NOTE consider removing this semicolon
+macro_rules! test ( () => { fn foo() -> int { 1i; } } )
+                                             //~^ ERROR not all control paths return a value
+                                             //~^^ NOTE consider removing this semicolon
 
 fn no_return() -> int {} //~ ERROR  not all control paths return a value
 
index 6140b81b7d0457c1e4dd4d1cdb5bae00af2ef07b..7a2d89ecfc7f9af47c4e64297ce716191bcf76d8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 // xfail'd because lint is messed up with the new visitor transition
 
index d8fbb8b879c6ec34d853713efd24f00a8726ac98..104438848c4c0cfc5aa6d8aefee27dd49fe44658 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(macro_rules)];
 
 macro_rules! test ( ($nm:ident,
index cd3c9df6a7255e37b79a78a4fe1213615b3a56e4..6bd184ce6a67b64c785e654313018a99f23af296 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(macro_rules)];
 
 macro_rules! test ( ($nm:ident,
index 697678e286d82ec2020cefe71d8664f09c7b1288..a3b5a1264f7298c959edd35d49b3fa22cf2e2951 100644 (file)
@@ -17,5 +17,6 @@ fn main() {
     let x: ~HashMap<~str, ~str> = ~HashMap::new();
     let x: ~Map<~str, ~str> = x;
     let y: ~Map<uint, ~str> = ~x;
-    //~^ ERROR failed to find an implementation of trait std::container::Map<uint,~str> for ~std::container::Map<~str,~str>:Send
+    //~^ ERROR failed to find an implementation of trait std::container::Map<uint,~str>
+    //         for ~std::container::Map<~str,~str>:Send
 }
index 4d2b95b61ea8d09b3438cd77feaeb9219c1892e5..5ffcb26e12ed53b549e2098a8cba19d71826f56d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     match 1 {
         1..2u => 1, //~ ERROR mismatched types in range
index 020ccde845246bc7b5b7b972cf2363e3eed46729..d8d665e2af6b0a56c930a9faa94edfb9895a77e3 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     match 1 {
         1 => 1, //~ ERROR mismatched types between arms
index 6e9bf603aef9e7e3759caa9a536d08511b198613..1ebb8ed5ddc62d0231871935264f44e7bf0a7a2d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 
 struct S { a: int }
 enum E { C(int) }
index b3e139805a0d90fc9771d5237a9953a118d5bf26..e778dd18e68d3e64ac24d34bacad4d4741371ab7 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() {
     let v = [1, 2, 3];
     match v {
index 2cf2d5b93b056c5db559089cc0dd392af5d4d092..5a50cb48da665b07c80999964919391d799c8b37 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     let a = ~[];
     match a {
index 6ea0300cf1e7dff74a7560a6b84454ee02fa9634..c3a06aa0e2c274184bcb213d041454cd61d9f062 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     match () {
         [()] => { } //~ ERROR mismatched types: expected `()` but found a vector pattern
index 5eca6546ea92c68f86fbf1abadbc3147258b6c96..56c7264e36ef5135285576bed63bc8a5d1bdfad4 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     match ~"foo" {
         ['f', 'o', ..] => { } //~ ERROR mismatched types: expected `~str` but found a vector pattern
index 88cf4537f10d4db198935b53baf3556e89134885..d595effcb4b048826aa29863ce7b2a36c65534f1 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     let x: ~[(int, int)] = ~[];
     match x {
index 1a2beedff9306e9684f7b2142a714f8641e5553a..f07d4fcf70c2058bb3be731c9ebc71a435a1f806 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that if you move from `x.f` or `x[0]`, `x` is inaccessible.
 // Also tests that we give a more specific error message.
 
index 3cad214a44a7e21406ae0abbea28e49afe550fed..4172d03d3de6a60990bafb99a0028683b22587af 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S {
     x: ~E
 }
index fe9c7ede83a0883e75c40fb38210e7ac907da88e..ca22907062bd0f89c3cb4464189fe7b26888a4f1 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::task;
 
 fn main() {
index b70c9e11f34c4af267e993b4c0d102d2c0e0bf58..2cadb3422e5c4531a9ec6d909c1c1b4ae6705efa 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that references to move-by-default values trigger moves when
 // they occur as part of various kinds of expressions.
 
index 4e2391ea25ff2dd54c86c89f838bc8c28131f85d..4c62e47965e08209a3778fdaf1184884639db167 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that references to move-by-default values trigger moves when
 // they occur as part of various kinds of expressions.
 
index 42944a206b360bb5d4bc2d6265dd7e766ec8fc2d..6ea4b488738dfeb5085b67faa86fe42615e820ad 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that bindings to move-by-default values trigger moves of the
 // discriminant. Also tests that the compiler explains the move in
 // terms of the binding, not the discriminant.
index 57c1cb5ecc640ea2ace4ef731c1749d68d4617cf..a4cbb30f93f61667fc8f353fc230a65ed59c08b9 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 type Noncopyable = proc();
 
 struct Foo {
index 0e14de61ff74cc64fe4764ea327b9a31c371edcc..501b17b202cfafbce991003788321fefaf689818 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that an `&` pointer to something inherently mutable is itself
 // to be considered mutable.
 
index 942c862120792e1bd443e60282019794757c1479..4b00334899dc7a5e7fc461d4984cfcff3f5b2927 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index 9ba006e8c4448d5015aa17cb857af1f23428d015..51ca71ae2cc5365a494385dad698708802f8677b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // regresion test for issue 11256
 #[crate_type];  //~ ERROR `crate_type` requires a value
 
index 9b7189d02bb4db35c2eb6c65974da0555b9c2592..e27b9dd85b471d865d295e886d729e0f1e8ca8f6 100644 (file)
@@ -16,5 +16,7 @@ fn bar<T: Freeze>(_: T) {}
 
 fn main() {
     let x = A(marker::NoFreeze);
-    bar(x); //~ ERROR instantiating a type parameter with an incompatible type `Foo`, which does not fulfill `Freeze`
+    bar(x);
+    //~^ ERROR instantiating a type parameter with an incompatible type `Foo`,
+    //         which does not fulfill `Freeze`
 }
index a963446b84c734d2bdfe88c7aeffc99d3d16c8f4..b814a71dcbe63cf323a245ff871f0693cd71024a 100644 (file)
@@ -15,5 +15,7 @@ fn bar<T: Freeze>(_: T) {}
 
 fn main() {
     let x = Rc::new(RefCell::new(5));
-    bar(x); //~ ERROR instantiating a type parameter with an incompatible type `std::rc::Rc<std::cell::RefCell<int>>`, which does not fulfill `Freeze`
+    bar(x);
+    //~^ ERROR instantiating a type parameter with an incompatible type
+    //         `std::rc::Rc<std::cell::RefCell<int>>`, which does not fulfill `Freeze`
 }
index 9ac7966e7041b48c8dd9eb458721e63c071a1c45..c85574438ba3b57225adf2fea97f3dbb31170720 100644 (file)
@@ -16,5 +16,7 @@ fn bar<T: Freeze>(_: T) {}
 
 fn main() {
     let x = Foo { a: 5, m: marker::NoFreeze };
-    bar(x); //~ ERROR instantiating a type parameter with an incompatible type `Foo`, which does not fulfill `Freeze`
+    bar(x);
+    //~^ ERROR instantiating a type parameter with an incompatible type `Foo`,
+    //         which does not fulfill `Freeze`
 }
index 7a5ad743d217afd6f52de0ed92f684ec0d3ccc71..4395151cbc1571c96f12353f4e262324be0be47f 100644 (file)
@@ -18,5 +18,7 @@ fn bar<T: Send>(_: T) {}
 
 fn main() {
     let x = A(marker::NoSend);
-    bar(x); //~ ERROR instantiating a type parameter with an incompatible type `Foo`, which does not fulfill `Send`
+    bar(x);
+    //~^ ERROR instantiating a type parameter with an incompatible type `Foo`,
+    //         which does not fulfill `Send`
 }
index d884ff7f231685f503ce41bf77fafe7918cad5c7..20f1cbc47bcd6dfb583650674d75140be45d3376 100644 (file)
@@ -14,5 +14,7 @@ fn bar<T: Send>(_: T) {}
 
 fn main() {
     let x = Rc::new(5);
-    bar(x); //~ ERROR instantiating a type parameter with an incompatible type `std::rc::Rc<int>`, which does not fulfill `Send`
+    bar(x);
+    //~^ ERROR instantiating a type parameter with an incompatible type `std::rc::Rc<int>`,
+    //         which does not fulfill `Send`
 }
index 7617602cbfbb8c7acee18dba65f27ece3d17b368..5b083374c51e68265a5ed43e3d1e5bed242ef236 100644 (file)
@@ -19,5 +19,7 @@ fn bar<T: Send>(_: T) {}
 
 fn main() {
     let x = Foo { a: 5, ns: marker::NoSend };
-    bar(x); //~ ERROR instantiating a type parameter with an incompatible type `Foo`, which does not fulfill `Send`
+    bar(x);
+    //~^ ERROR instantiating a type parameter with an incompatible type `Foo`,
+    //         which does not fulfill `Send`
 }
index 883ba5b0eaa673ceb2aa133ae9f77bbb11387ce5..a4eba4b4cbf77a1defb520494e58d429232e6c01 100644 (file)
@@ -11,5 +11,6 @@
 enum State { ST_NULL, ST_WHITESPACE }
 
 fn main() {
-    ~[ST_NULL, ..(ST_WHITESPACE as uint)]; //~ ERROR expected constant integer for repeat count but found variable
+    ~[ST_NULL, ..(ST_WHITESPACE as uint)];
+    //~^ ERROR expected constant integer for repeat count but found variable
 }
index 857b53a2c226e5471dc8df18a5c0e226cbaccc33..52c60971708fa1d8c7f4e76850bef52b0b9aea55 100644 (file)
@@ -12,6 +12,7 @@
 
 fn main() {
     fn bar(n: int) {
-        let _x: [int, ..n]; //~ ERROR expected constant expr for vector length: Non-constant path in constant expr
+        let _x: [int, ..n];
+        //~^ ERROR expected constant expr for vector length: Non-constant path in constant expr
     }
 }
index 51aa576fc94086426a5d8e410e8989f44be08564..eac0dcb310e54c476e98bb51c54878b37d66ec51 100644 (file)
@@ -35,7 +35,8 @@ fn main() {
       (_, a) => {}
       (b, b) => {}
     }
-    match ~[Some(42), None, Some(21)] { //~ ERROR non-exhaustive patterns: vectors of length 0 not covered
+    match ~[Some(42), None, Some(21)] {
+        //~^ ERROR non-exhaustive patterns: vectors of length 0 not covered
         [Some(..), None, ..tail] => {}
         [Some(..), Some(..), ..tail] => {}
         [None] => {}
index 9dae4be5b51ca14616fff9b6214c8d0f0223c086..a26733ebcee662b24b121eba10c77a812753a7bf 100644 (file)
@@ -14,6 +14,7 @@
 enum bar { t1((), Option<~[int]>), t2, }
 
 // n.b. my change changes this error message, but I think it's right -- tjc
-fn foo(t: bar) -> int { match t { t1(_, Some(x)) => { return x * 3; } _ => { fail!(); } } } //~ ERROR binary operation `*` cannot be applied to
+fn foo(t: bar) -> int { match t { t1(_, Some(x)) => { return x * 3; } _ => { fail!(); } } }
+//~^ ERROR binary operation `*` cannot be applied to
 
 fn main() { }
index bc27027e886ba5e8393f4b0c476c01e8754c5104..c6419991b112c4a860bb6859e0e75188c0946a15 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that inherited visibility applies to methods.
 
 mod a {
index c3946b330103aa57ee361d81dd1349c6698f14da..357e650ffce4d29d428e0a8396b67c5786281bd0 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:private_variant_xc.rs
 // xfail-test
 
index b7be0dd7b9b1e65365a445f8acb12cd8dd8a82f3..2cd96735a07090685e9da4e3d72b0bb9f8f40c1d 100644 (file)
@@ -14,7 +14,8 @@ struct dog {
 
 impl dog {
     pub fn chase_cat(&mut self) {
-        let p: &'static mut uint = &mut self.cats_chased; //~ ERROR cannot infer an appropriate lifetime
+        let p: &'static mut uint = &mut self.cats_chased;
+        //~^ ERROR cannot infer an appropriate lifetime
         *p += 1u;
     }
 
index 2f60898cfeef152e094dc9b02ad9199c14e81115..c8fe60a2490fa4b2816a713ad66d75409be0831f 100644 (file)
@@ -17,7 +17,8 @@ struct dog {
 impl dog {
     pub fn chase_cat(&mut self) {
         let _f = || {
-            let p: &'static mut uint = &mut self.food; //~ ERROR cannot infer an appropriate lifetime
+            let p: &'static mut uint = &mut self.food;
+            //~^ ERROR cannot infer an appropriate lifetime
             *p = 3u;
         };
     }
index 09801d37ee92c5ec6f91375d603419324974b608..817a4265a992ab99be240ae63d5c6cf8564d5099 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 // xfail'd because the first error does not show up.
 
index 493b9c466bd3ba2b00f4d2fe33e93db80c0703d9..940a7f9afbbb3f29c16a1d6a518714e81523fb0b 100644 (file)
@@ -12,7 +12,8 @@ fn wants_static_fn(_x: 'static ||) {}
 
 fn main() {
     let i = 3;
-    wants_static_fn(|| { //~ ERROR cannot infer an appropriate lifetime due to conflicting requirements
+    wants_static_fn(|| {
+        //~^ ERROR cannot infer an appropriate lifetime due to conflicting requirements
         info!("i={}", i);
     })
 }
index 62a65596f0651878a4a4a50f7f8dda36a25567c4..db091092589de807e3bbe67e2eb422c1e7a15b08 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 // xfail'd due to problems with by value self.
 
index 9574f05fa5852fdc9cd1054b8d2cd8df106afc5b..8c8404f7abc83e49394c361678cbc1086a54d2e9 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn arg_item(~ref x: ~int) -> &'static int {
     x //~^ ERROR borrowed value does not live long enough
 }
index 01195d0ac944d8bb739f967fea57285359e0dbbf..6cd22799d42cec6b5de1280347886adf53553588 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 // xfail'd due to problems with by-value self.
 
index 351daf461d2fea5bfbaf26ca1cbb923c7bb501d6..a230e813a48e0d89174bdbfa6a8028aca57011a3 100644 (file)
@@ -14,21 +14,24 @@ enum opts {
 
 fn matcher1(x: opts) {
     match x {
-      a(ref i) | b(i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
+      a(ref i) | b(i) => {}
+      //~^ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
       c(_) => {}
     }
 }
 
 fn matcher2(x: opts) {
     match x {
-      a(ref i) | b(i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
+      a(ref i) | b(i) => {}
+      //~^ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
       c(_) => {}
     }
 }
 
 fn matcher4(x: opts) {
     match x {
-      a(ref mut i) | b(ref i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
+      a(ref mut i) | b(ref i) => {}
+      //~^ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
       c(_) => {}
     }
 }
index 266c2a9c4537244dd959984af825a20636ef1c2d..6a57ee76cdff28958aadde6fde814ccd83dc897d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(simd)];
 
 #[simd]
index 4f7f7dd7408af1372bdafe2878d7868831fece2f..d9e3846c5060bf6e54c7bac794321f1d328c7cc6 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[allow(dead_code)];
 
 #[static_assert]
index ceaa388917984a7117a0ed519baf2b14f6123327..30c6f05bd6084d9f73edcd21c5959e659250b2f3 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[allow(dead_code)];
 
 #[static_assert]
index b637037f60e8f6167e9a3a8c415d36cf4bd6cfc0..5e175aa0feef4cffd9e7e5af82560c43dacdb0ab 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 mod a {
     pub struct S;
     impl S {
index 35f5ac1bb18a8534b5eaa9d9702b4d35b4e98355..ed9d3cd74d045b1de2ef05abc58d0cd5ecf33abe 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(managed_boxes)];
 
 fn f<T:'static>(_: T) {}
index 7721e18537ec7509325422dede1743bdbd042ed3..03be2cc8f0f02741a85cb0fa3492a56bb8f91ff6 100644 (file)
@@ -10,6 +10,7 @@
 
 fn foo() -> int { 23 }
 
-static a: [int, ..2] = [foo(), ..2]; //~ ERROR: function calls in constants are limited to struct and enum constructors
+static a: [int, ..2] = [foo(), ..2];
+//~^ ERROR: function calls in constants are limited to struct and enum constructors
 
 fn main() {}
index 9bcf0777bbd349ae3d35ccc482c9381bab14620c..a6082d3148071c7b46bbbaa0ef23fa8a82157240 100644 (file)
@@ -14,7 +14,8 @@ trait foo {
 }
 
 impl foo for int {
-    fn bar(&self) {} //~ ERROR method `bar` has a `&self` declaration in the impl, but not in the trait
+    fn bar(&self) {}
+    //~^ ERROR method `bar` has a `&self` declaration in the impl, but not in the trait
 }
 
 fn main() {}
index 9ec92e6dbfabcfdfb8ae102c7d114069a6e7d37b..7176d5f92f9a15587a74129ac43fd97b5e6d44a1 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use super::f; //~ ERROR failed to resolve import
 
 fn main() {
index f04770409a2858bd08d9dfe3812ee0369620a91c..297d36c3a0e8374c1c975241ec77e0314be8b43b 100644 (file)
@@ -23,8 +23,8 @@ fn f(&self, x: &'static str) {
 }
 
 fn main() {
-    let s: ~Trait<int> = ~Struct { person: "Fred" };    //~ ERROR expected Trait<int>, but found Trait<&'static str>
+    let s: ~Trait<int> = ~Struct { person: "Fred" };
     //~^ ERROR expected Trait<int>, but found Trait<&'static str>
+    //~^^ ERROR expected Trait<int>, but found Trait<&'static str>
     s.f(1);
 }
-
index 60184464085a50254e3809b4c382647962d6ec53..677c4943043faa61582dfeb57d35fd68230a8d11 100644 (file)
@@ -13,5 +13,6 @@
 fn first((value, _): (int, f64)) -> int { value }
 
 fn main() {
-    let y = first ((1,2,3)); //~ ERROR expected a tuple with 2 elements but found one with 3 elements
+    let y = first ((1,2,3));
+    //~^ ERROR expected a tuple with 2 elements but found one with 3 elements
 }
index 7c41c5d12e6000a52d537e52d1689817a7d3d528..da8478de98585e2d5ef701a44f226042b7926f84 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test that we print out the names of type parameters correctly in
 // our error messages.
 
index 606a86f188f15fb299cd710dc931198ae40ae150..fad20a7e37374a07f0f15f23a435b35198e77098 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 enum E {}
 
 fn f(e: E) {
index 6f1f1aba459306b560cf231d084acd94f9376581..316e17c54adca141ff19a03343e907e6ab894dce 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     -true; //~ ERROR cannot apply unary operator `-` to type `bool`
 }
index bef6165d120a5f2ea216f439f5ea11d52b96e140..d79461a577ec9499a6560d8115cc5ea11b7bf8e0 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
+
 struct Number {
     n: i64
 }
@@ -32,6 +34,6 @@ fn main() {
     let n = ~Number { n: 42 };
     let mut l = ~List { list: ~[] };
     l.push(n);
-    //^~ NOTE: `n` moved here because it has type `~Number`, which is non-copyable (perhaps you meant to use clone()?)
-    let x = n.to_str(); //~ ERROR: use of moved value: `n`
+    let x = n.to_str();
+    //~^ ERROR: use of moved value: `n`
 }
index b98827409a8774c9b6bf67934f7c1095dbc419b8..b93fc2680cd30b762afba8c0be18f725b4dc8124 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S {
     x: int,
 }
index 69a0b94c348df8a1e041922e283a7f8181dc196f..56e5fdce3cf71f733e6cb5fae96af5187fe75c02 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S {
     x: ~int
 }
index 3ac3e8c832d8c86b209c559cf2089de4447796ef..a4db5457750cd86372d5be2281fa027971cf09bb 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:use_from_trait_xc.rs
 
 extern mod use_from_trait_xc;
index 4514d925c82b4d85f5c763d6341f5f629e0571df..8f8d96f8024e7c2353fe28a895af37b582fb40a4 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use Trait::foo;  //~ ERROR cannot import from a trait or type implementation
 //~^ ERROR failed to resolve import
 use Foo::new;    //~ ERROR cannot import from a trait or type implementation
index 3156cd9af3276ef8fba39523b1bf8c4217158cd0..d0599c2ba4bdb8586350c0e04c98fd677f5f4dea 100644 (file)
@@ -24,10 +24,14 @@ fn main() {
         foo(1); //~ ERROR: this function takes at least 2 parameters but 1 parameter was supplied
 
         let x: extern "C" unsafe fn(f: int, x: u8) = foo;
-        //~^ ERROR: mismatched types: expected `extern "C" unsafe fn(int, u8)` but found `extern "C" unsafe fn(int, u8, ...)` (expected non-variadic fn but found variadic function)
+        //~^ ERROR: mismatched types: expected `extern "C" unsafe fn(int, u8)`
+        //          but found `extern "C" unsafe fn(int, u8, ...)`
+        //          (expected non-variadic fn but found variadic function)
 
         let y: extern "C" unsafe fn(f: int, x: u8, ...) = bar;
-        //~^ ERROR: mismatched types: expected `extern "C" unsafe fn(int, u8, ...)` but found `extern "C" extern fn(int, u8)` (expected variadic fn but found non-variadic function)
+        //~^ ERROR: mismatched types: expected `extern "C" unsafe fn(int, u8, ...)`
+        //          but found `extern "C" extern fn(int, u8)`
+        //          (expected variadic fn but found non-variadic function)
 
         foo(1, 2, 3f32); //~ ERROR: can't pass an f32 to variadic function, cast to c_double
         foo(1, 2, true); //~ ERROR: can't pass bool to variadic function, cast to c_int
index c2eaa9287f495ba26ef8323c75d63ba89d83398f..012245f9451c42864479338b7cd289a6e80c50a9 100644 (file)
@@ -14,7 +14,9 @@
 extern mod xc_private_method_lib;
 
 fn main() {
-    let _ = xc_private_method_lib::Struct{ x: 10 }.meth_struct();  //~ ERROR method `meth_struct` is private
+    let _ = xc_private_method_lib::Struct{ x: 10 }.meth_struct();
+    //~^ ERROR method `meth_struct` is private
 
-    let _ = xc_private_method_lib::Variant1(20).meth_enum();  //~ ERROR method `meth_enum` is private
+    let _ = xc_private_method_lib::Variant1(20).meth_enum();
+    //~^ ERROR method `meth_enum` is private
 }
index ae80cdd78228111c227111ad7921e0f715b95f14..e6094fdef9fe07e134b34d698bd126d1531281ff 100644 (file)
@@ -31,8 +31,8 @@
 // the size of the discriminant value is machine dependent, this has be taken into account when
 // datatype layout should be predictable as in this case.
 enum ABC {
-       TheA { x: i64, y: i64 },
-       TheB (i64, i32, i32),
+    TheA { x: i64, y: i64 },
+    TheB (i64, i32, i32),
 }
 
 // This is a special case since it does not have the implicit discriminant field.
@@ -42,10 +42,10 @@ enum Univariant {
 
 fn main() {
 
-       // 0b0111110001111100011111000111110001111100011111000111110001111100 = 8970181431921507452
-       // 0b01111100011111000111110001111100 = 2088533116
-       // 0b0111110001111100 = 31868
-       // 0b01111100 = 124
+    // 0b0111110001111100011111000111110001111100011111000111110001111100 = 8970181431921507452
+    // 0b01111100011111000111110001111100 = 2088533116
+    // 0b0111110001111100 = 31868
+    // 0b01111100 = 124
     let the_a = TheA { x: 0, y: 8970181431921507452 };
     let the_a_ref: &ABC = &the_a;
 
index 0485a5ba022665eb44b4fee0878d21c501b379af..ed711e2ca0be62ee7e404017bedab8211e1fd3f1 100644 (file)
@@ -232,7 +232,8 @@ fn different_order_of_struct_fields(Struct { b: s, a: t }: Struct ) {
 }
 
 fn complex_nesting(((u,   v  ), ((w,   (x,   Struct { a: y, b: z})), Struct { a: ae, b: oe }), ue ):
-                   ((i16, i32), ((i64, (i32, Struct,             )), Struct                 ), u16)) {
+                   ((i16, i32), ((i64, (i32, Struct,             )), Struct                 ), u16))
+{
     zzz();
 }
 
index cd7bd57795cd7ba58cb7b571e6f4d65539908339..5930af11567774fa14ff75d8cef06e0e25fb1891 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
index 03f1a695667495fb4135342ee0daf9496f0d99f2..0a737ffe0732ce92f669575f2b6552e5016e41da 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
index a13dde22710bc7245c84e388ea0d5780302af966..74064bb57822dba2d3b70bad337c04e7c3be2642 100644 (file)
@@ -24,7 +24,7 @@
 
 #[allow(unused_variable)];
 
-// This test case makes sure that debug info does not ICE when include_str is 
+// This test case makes sure that debug info does not ICE when include_str is
 // used multiple times (see issue #11322).
 
 fn main() {
index 425aff8d44172859247faa6e5c644aef4d2889c0..00e240d147c4b3febda1684416160a5c8af5fdf5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {
     let args : ~[~str] = ::std::os::args();
     ::std::io::println(args[0]);
index 5ab39e00eb34af406e8eda7ab9466e2e0defe1d6..ef94fd3e331f4dd277e5cf1478ce71c61aa22144 100644 (file)
@@ -31,8 +31,8 @@
 // the size of the discriminant value is machine dependent, this has be taken into account when
 // datatype layout should be predictable as in this case.
 enum ABC {
-       TheA { x: i64, y: i64 },
-       TheB (i64, i32, i32),
+    TheA { x: i64, y: i64 },
+    TheB (i64, i32, i32),
 }
 
 // This is a special case since it does not have the implicit discriminant field.
@@ -46,10 +46,10 @@ fn main() {
     // repeated byte. This way each interpretation of the union should look the same, no matter if
     // this is a big or little endian machine.
 
-       // 0b0111110001111100011111000111110001111100011111000111110001111100 = 8970181431921507452
-       // 0b01111100011111000111110001111100 = 2088533116
-       // 0b0111110001111100 = 31868
-       // 0b01111100 = 124
+    // 0b0111110001111100011111000111110001111100011111000111110001111100 = 8970181431921507452
+    // 0b01111100011111000111110001111100 = 2088533116
+    // 0b0111110001111100 = 31868
+    // 0b01111100 = 124
     let the_a = @TheA { x: 0, y: 8970181431921507452 };
 
     // 0b0001000100010001000100010001000100010001000100010001000100010001 = 1229782938247303441
index b0d9b0aa88493614c71debe160dc1135c30432b4..29a7de4a3169cc56ff55c185b98be66a8c0f25f9 100644 (file)
 #[allow(unused_variable)];
 
 fn function_one() {
-       let abc = 10101;
-       zzz();
+    let abc = 10101;
+    zzz();
 }
 
 fn function_two() {
-       let abc = 20202;
-       zzz();
+    let abc = 20202;
+    zzz();
 }
 
 
 fn function_three() {
-       let abc = 30303;
-       zzz();
+    let abc = 30303;
+    zzz();
 }
 
 
 fn main() {
-       function_one();
-       function_two();
-       function_three();
+    function_one();
+    function_two();
+    function_three();
 }
 
 fn zzz() {()}
index 29d67c17684fab15f08ef0b384705b2b6e6eae35..f5abe6e249d712cf41ce79006502224d37897acb 100644 (file)
 #[allow(unused_variable)];
 
 fn function_one() {
-       let a = 10101;
-       zzz();
+    let a = 10101;
+    zzz();
 }
 
 fn function_two() {
-       let b = 20202;
-       zzz();
+    let b = 20202;
+    zzz();
 }
 
 
 fn function_three() {
-       let c = 30303;
-       zzz();
+    let c = 30303;
+    zzz();
 }
 
 
 fn main() {
-       function_one();
-       function_two();
-       function_three();
+    function_one();
+    function_two();
+    function_three();
 }
 
 fn zzz() {()}
index 1a0532887bf546df38c144c0991a40421ea3ae83..5e6480fa8c5601579c21cfacaea3b561e58a8572 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
index 6ee2574ca74d961ee49c2a98f2626b55e5e3f4ad..795b9d275dd78c219a29446ce6f7d2b266ddf2e6 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
index 98ded437273a93472e0f12bf875e1556c3641201..b706ad1c38cc4ae8b4b204d4e19436da84c4fbe1 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
@@ -28,9 +29,9 @@
 #[allow(unused_variable)];
 
 struct Struct {
-       x: u32,
-       y: i32,
-       z: i16
+    x: u32,
+    y: i32,
+    z: i16
 }
 
 // The first element is to ensure proper alignment, irrespective of the machines word size. Since
@@ -42,7 +43,7 @@ enum Regular {
 }
 
 enum Univariant {
-       TheOnlyCase(Struct)
+    TheOnlyCase(Struct)
 }
 
 fn main() {
index fbdf99dd241522e3999a11aca5e9e21c2ba6741d..d7804da78941a5e043eb1c9ef8e5611526f03d05 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
index e6a89adbd9c9cf7a1b70a44a2ba72eea0b0ffbf8..c9d577a24917ecede5b5a2aa137c4ad78b10cc0d 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// xfail-tidy-linelength
 // xfail-android: FIXME(#10381)
 
 // compile-flags:-Z extra-debug-info
@@ -40,7 +41,7 @@ enum Regular {
 }
 
 enum Univariant {
-       TheOnlyCase(i64)
+    TheOnlyCase(i64)
 }
 
 fn main() {
index 66fa8e183e9dddee0f0113d7b804cf13825ef556..647a6e55f98574c2b192035c03b3f7b346bdbc88 100644 (file)
@@ -31,8 +31,8 @@
 // the size of the discriminant value is machine dependent, this has be taken into account when
 // datatype layout should be predictable as in this case.
 enum ABC {
-       TheA { x: i64, y: i64 },
-       TheB (i64, i32, i32),
+    TheA { x: i64, y: i64 },
+    TheB (i64, i32, i32),
 }
 
 // This is a special case since it does not have the implicit discriminant field.
@@ -46,10 +46,10 @@ fn main() {
     // repeated byte. This way each interpretation of the union should look the same, no matter if
     // this is a big or little endian machine.
 
-       // 0b0111110001111100011111000111110001111100011111000111110001111100 = 8970181431921507452
-       // 0b01111100011111000111110001111100 = 2088533116
-       // 0b0111110001111100 = 31868
-       // 0b01111100 = 124
+    // 0b0111110001111100011111000111110001111100011111000111110001111100 = 8970181431921507452
+    // 0b01111100011111000111110001111100 = 2088533116
+    // 0b0111110001111100 = 31868
+    // 0b01111100 = 124
     let the_a = ~TheA { x: 0, y: 8970181431921507452 };
 
     // 0b0001000100010001000100010001000100010001000100010001000100010001 = 1229782938247303441
index 15e6e52e3baf324dde31be4ff64a960b37bdde35..4ddf0c5816ec74db039a6be5f2f9369a114486ea 100644 (file)
@@ -11,7 +11,8 @@
 // This is meant as a test case for Issue 3961.
 //
 // Test via: rustc --pretty normal src/test/pretty/block-comment-wchar.rs
-//
+// xfail-tidy-cr
+// xfail-tidy-tab
 // pp-exact:block-comment-wchar.pp
 fn f() {
     fn nested() {
index 98b9fd0507799fc4d0c0284fcf514aa12eb52b9d..0c2daa06f83e73b926a3c55d5315e25a954d4041 100644 (file)
@@ -11,7 +11,8 @@
 // This is meant as a test case for Issue 3961.
 //
 // Test via: rustc --pretty normal src/test/pretty/block-comment-wchar.rs
-//
+// xfail-tidy-cr
+// xfail-tidy-tab
 // pp-exact:block-comment-wchar.pp
 fn f() {
     fn nested() {
index 5169652a6c06940c2351525c7c5af988638989d3..a9d0d1f67d5f6d9ffe7bace12f0ac984fb10c1b8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Any copyright is dedicated to the Public Domain.
 // http://creativecommons.org/publicdomain/zero/1.0/
 
index 685cdcdaeade0b06c9761be62892111a9e24e54e..f22f1b409526900b3f1909221c9cf50ec1d667c0 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 trait X { }
 impl X for uint { }
 
index 4a402132254077c6243e513e9aca61ca3feb8e73..c5f24160db51a34b3315abf0e3cfc890a1b3a5dc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // pp-exact
 
 trait Tr { }
index 20d1678ee4153324cc773bc56f34319fc29e977d..acd534ccbfa2c8125cd51d5ca06b11976b106013 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // pp-exact
 struct Foo;
 struct Bar(int, int);
index f715e21f781bd0c515dfd61f94e3c86d8baea986..c52c11b1b91881c68963d854fa45242ebedae8bc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern:assertion failed: 1 == 2
 
 fn main() {
index a31bd25a6f1d640f730f8069480f6dc25185c7f0..7cebfc723de5f0ce2442cbd24038a195f58fc54e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern:assertion failed: `(left == right) && (right == left)` (left: `14`, right: `15`)
 
 #[deriving(Eq)]
index 8ff62d5a43d108293327d964e90f8b95a6e9927a..7f7eddd86cf67e6fbc5db21293ec1b5621fdaa7a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern:test
 
 fn main() {
index bb62a7e8beff664b576fad114e36cfa4f9ed71fa..f1d9b15c42a0b09fd0f6ae7d0186554fddebd7cc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern:test
 
 fn f() {
index 71cc7317e6ef20aadf6e6990b86828b59e435efa..82e790c5d9fd90f7f916afb8577bd46663d389c4 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // error-pattern:test
 
 fn main() {
index 7c4aca1e02807885ec0f5a96d4b676de49616ce3..fa21dfac47cdc8e55198cfc041ed32bca52f60cd 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod foo;
 
 fn main() {
index 0c4a6f7df4b3ccea6c08dce0136132bf6780926a..5c24e69d79f9f11b2ff38f9ee0d0cd6bc40fa1bc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 
 #[link(name = "cfoo")]
index 7c4aca1e02807885ec0f5a96d4b676de49616ce3..fa21dfac47cdc8e55198cfc041ed32bca52f60cd 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod foo;
 
 fn main() {
index e64811af9c763db21b3c69552d5de14980ffe579..1f13d610144fd848f463b537d3f2d6ff1057e473 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 
 #[link(name = "cfoo")]
index 6b6a786ef54a21eec2579c49ce787bbe1fbef7e3..0f8ca1e6ef18b3a04de4e9750fadc4214d11be25 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 
 #[no_mangle]
index 3da09eb6bb6a87b0eca9600106ec86af9b37cd6c..4cb7a7493857a0ced19c09805d178349934d20f3 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "staticlib"];
 
 #[no_mangle]
index 7c4aca1e02807885ec0f5a96d4b676de49616ce3..fa21dfac47cdc8e55198cfc041ed32bca52f60cd 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod foo;
 
 fn main() {
index 0c4a6f7df4b3ccea6c08dce0136132bf6780926a..5c24e69d79f9f11b2ff38f9ee0d0cd6bc40fa1bc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 
 #[link(name = "cfoo")]
index 7c4aca1e02807885ec0f5a96d4b676de49616ce3..fa21dfac47cdc8e55198cfc041ed32bca52f60cd 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod foo;
 
 fn main() {
index e64811af9c763db21b3c69552d5de14980ffe579..1f13d610144fd848f463b537d3f2d6ff1057e473 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 
 #[link(name = "cfoo")]
index 6fef49ac8dadb588e6cc72f632a9089e9e5a67b3..71b54f6c3414cd47204720df5c8762d04a584b20 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id = "foo#0.10-pre"];
 
 // Querying about the crate metadata should *not* parse the entire crate, it
index 11c5682389e55df200e812a2a0223188677e3bb3..546d987b90c95ba24d0aa15bcf2cd12ebc15fffa 100644 (file)
@@ -1,2 +1,12 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id = "mylib"];
 #[crate_type = "lib"];
index 26a1de1806a7961aa453c256e0d19e74a768278b..c94f7df4c92989f3af463d321efb56ce53790926 100644 (file)
@@ -1,2 +1,12 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id = "mylib"];
 #[crate_type = "rlib"];
index c5c0bc606cd699cda9d339035a1ca95bff4a70f4..4c79f7e2855356528414cdf805b4f5215d8d7c7c 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn bar() {}
index b76b4321d62aa8e066b24d213c79ccc8230b8d7b..2661b1f4eb49b7a93d03ca34e2563991eb2e37c3 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn foo() {}
index 937118269a7473e7edd5bf16dbc27367e323bb69..b88687711304418ace0f28350a1be9b5f0c9f2ba 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id="foo#0.1"];
 
 pub mod foo;
index c5c0bc606cd699cda9d339035a1ca95bff4a70f4..4c79f7e2855356528414cdf805b4f5215d8d7c7c 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn bar() {}
index b76b4321d62aa8e066b24d213c79ccc8230b8d7b..2661b1f4eb49b7a93d03ca34e2563991eb2e37c3 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn foo() {}
index 937118269a7473e7edd5bf16dbc27367e323bb69..b88687711304418ace0f28350a1be9b5f0c9f2ba 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id="foo#0.1"];
 
 pub mod foo;
index 3cdacc96ee9e01f2d2e8fa0316e906581bdafd19..fbe967786e25ecb61c99a398e60a81ef37134689 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
index 69ea8dcecfc6b9d508190c324cd7b8e8ec1c83db..dd7f5f14e40e797dd5cb5514744fde020300cea1 100644 (file)
@@ -1,2 +1,12 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 pub fn m1() {}
index 2f5d75a3872cf022a96dd58fd6e523244b406ed5..98e9a9ee95071c93ea2104f0526d0be9716c791d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 extern mod m1;
 
index cc4ff2cff74e16a0bacef0d5a92c4b49dea8b371..b963a4c4f0aef2a27bc729a8d30e97035b7a4212 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 extern mod m2;
 
index c52d1f7fcbcd2be4fd16f04b87affd0b02811297..ea2975d6b6ee3b30e931cbc13f7ae1bf89f42eca 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod m3;
 
 fn main() { m3::m3() }
index f328e4d9d04c31d0d70d16d21a07d1613be9d577..8ae3d072362ed6b5db81a00be3becce691926a7f 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() {}
index 3da09eb6bb6a87b0eca9600106ec86af9b37cd6c..4cb7a7493857a0ced19c09805d178349934d20f3 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "staticlib"];
 
 #[no_mangle]
index 3cdacc96ee9e01f2d2e8fa0316e906581bdafd19..fbe967786e25ecb61c99a398e60a81ef37134689 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
index a3ed67729262b33cfb6216e561a5176fe11eccab..61ee2481c2cd17549d71a0955f8e67c617b42e9a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod lib;
 
 fn main() {}
index 89d7b6452c9095fbf3d646f40206313644e65540..358b6512ae560aec8e9f9fece487444758e3ccad 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 #[crate_type = "dylib"];
 
index 130bc2fe8032a20877469be001f6bd4de28d70d5..9aafd086480299c4d6afc7e4903a6570454781cc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 extern mod both;
 
index da90f8731f42d457f5cec6727f3fd90525a3958b..5d21c01c63137031c698440b7a4fb3a956d91640 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod dylib;
 extern mod both;
 
index 9652cb2764120a1ad0f32b3cb0b940ce6f1a7410..8bdff1d8f08dfebcc765ef82d018569ebde8b0df 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "dylib"];
 extern mod rlib;
 
index ec67dea0ab01375dd27b90793c667c9c9b5d1204..9a97ddfd1b594a28340254d560506202e272e1f0 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod dylib;
 extern mod rlib;
 
index 32c322f3f59dda6f7aae1fd6d92371d515c29914..8ed6dbd865be0f0e7fd8235cfa06dfca29f85301 100644 (file)
@@ -1,2 +1,12 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 pub fn rlib() {}
index 3d944fd7a58aa57cbbe219d4da285caf4b6de700..5565ae3186c12aecca507f280f8ec61ae19482e8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id = "bar"];
 
 fn main() {}
index c5c0bc606cd699cda9d339035a1ca95bff4a70f4..4c79f7e2855356528414cdf805b4f5215d8d7c7c 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn bar() {}
index f86ef62a9feef2f9399450b7d3c4e13233c6de06..2c22cea09aa29ab61e5f09a6b7a2072e8d7c3ce5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod bar;
 
 fn main() {
index c5c0bc606cd699cda9d339035a1ca95bff4a70f4..4c79f7e2855356528414cdf805b4f5215d8d7c7c 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn bar() {}
index f86ef62a9feef2f9399450b7d3c4e13233c6de06..2c22cea09aa29ab61e5f09a6b7a2072e8d7c3ce5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod bar;
 
 fn main() {
index 45590d86ba6c51f0babffb0b43e3e2f44d2f9e07..a9e231b0ea839791c963402de9fd4719b0b5a414 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn main() { }
index 1a244efd4dda4eb9004e3d7da959be1043b9a149..ddf90e9157b79b27e836b72213188a01a67ab742 100644 (file)
@@ -1,2 +1,12 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 pub fn m1() {}
index 96f771220838e338b4eacd4902001f6ed5ea6de4..612e59d10827d1920fe6d62ac322c0d2a398cbf8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 extern mod m1;
 
index cb8d75291605a8985aa40f4956070a08065ba277..7545eed6f01b2fdbc777ba2ac7d6c3bf83f31562 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 extern mod m2;
 
index c52d1f7fcbcd2be4fd16f04b87affd0b02811297..ea2975d6b6ee3b30e931cbc13f7ae1bf89f42eca 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod m3;
 
 fn main() { m3::m3() }
index 69c7683780b2fc43f9c44aa5545d36652e703f4d..d9b7810cc86186e904d6814562d0e3353be465cf 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id="foo#0.1"];
 
 /// The '# ' lines should be removed from the output, but the #[deriving] should be
index ef407ed298798aba9c344ba80ecd0150f175385f..818ec1e5eb79013ce4ad7275cf9559d6bce200a5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id = "foo#0.1"];
 
 //! Very docs
index c5c0bc606cd699cda9d339035a1ca95bff4a70f4..4c79f7e2855356528414cdf805b4f5215d8d7c7c 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn bar() {}
index f86ef62a9feef2f9399450b7d3c4e13233c6de06..2c22cea09aa29ab61e5f09a6b7a2072e8d7c3ce5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod bar;
 
 fn main() {
index c5c0bc606cd699cda9d339035a1ca95bff4a70f4..4c79f7e2855356528414cdf805b4f5215d8d7c7c 100644 (file)
@@ -1 +1,11 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn bar() {}
index f86ef62a9feef2f9399450b7d3c4e13233c6de06..2c22cea09aa29ab61e5f09a6b7a2072e8d7c3ce5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod bar;
 
 fn main() {
index 4e2cdb6c222165b1579eb70b91b29aa4395a5370..9fe2f947c7092e6a404b4d713d97ae4723fe2079 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_type = "rlib"];
 
 pub static mut statik: int = 0;
index 96dabf8f07699c6fa01fc362b65dbea69f6f13ce..c47d20583936b3c60604d1bdbe06ce84c5b106ae 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod lib;
 
 use std::task;
index 1490d67904967e4f5ca19a325bf92598547ebf60..88e0d24ffe1d9d2690c1263a1bb6b879c9cb8a51 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Check that we do not ICE when compiling this
 // macro, which reuses the expression `$id`
 
index 5e8a92cd1c236cdf86579968c81ecd4391f8780b..8ceef83094876131d60473008dbd5d03ce340a0a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     let bar = ~3;
     let h: proc() -> int = proc() *bar;
index e8c3b2480d9aec8fcee961b0ed0c8e0357488b08..0650b03b4853f637179a70d7fcc117431afd874f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // exec-env:RUST_POISON_ON_FREE=1
 
 // Test that we root `x` even though it is found in immutable memory,
index 03341e6f946e7addd10927d3c796fb1190c56065..a6a56a68c5a04d5ab49abaec485cb279709564dd 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index afe1489ce237b46222ea3231239883d296c8be59..c53375c1f5b52455c2fc9387feec67da29bad667 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // copyright 2014 the rust project developers. see the copyright
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/copyright.
index 53a009ecc135915419793c310fec0e8ab51647a8..ec422a54b3a7a54e19e602110cac9fd49551950b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test cleanup of rvalue temporary that occurs while `~` construction
 // is in progress. This scenario revealed a rather terrible bug.  The
 // ingredients are:
index 982a0d92c4c4b7a857091ddf7dd954437f4f6072..4df457fd86223a29ee5e931708a6160aa925af5f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // copyright 2014 the rust project developers. see the copyright
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/copyright.
index 3ed77cd9fb767cdccfc621e0e8f966b108ebd339..51511009beec71a7fa267389f65ecc87d430b5b7 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index e40272bb7a4d546ba5ea59efb7beb3add3908720..0bbabcb859993007f39415a493b8ff7162c45210 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn negate(x: &int) -> int {
     -*x
 }
index 52fa1399363cdf4de434167400dce4ee8bbb49c3..419df84bdf55ba1b914b441cdb425d584ec399ef 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct SpeechMaker {
     speeches: uint
 }
index b31f0eab2e2239494bef52c7d1464ecfd0a982ad..f6abfda03e3f46f5265666f940c0d258c214721c 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn sum(x: &[int]) -> int {
     let mut sum = 0;
     for y in x.iter() { sum += *y; }
index 8a271a4d65f3c06f5ac728c3c24464bf00cef97b..dee2b6f2568d72ed05d0f6a7e33dbe63cdea98fc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn bar(v: &mut [uint]) -> ~[uint] {
     v.to_owned()
 }
index f8650c856c69dc56cad5a2de580b7f639bca0ef0..4a680027b46e2adb91f70047567acd5fd1e992e3 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct SpeechMaker {
     speeches: uint
 }
index 3adb805581dd0d119f879d04a6f355e5938a7262..2f866955ff46cafcf836287e646e1859d9379e66 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct SpeechMaker {
     speeches: uint
 }
index 356c1596186966693da74c9bb66199d6c189fc07..0e205617173cb2d3739a31adfb9178b6b8cbf1dd 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn reverse(v: &mut [uint]) {
     v.reverse();
 }
index 556d70f3c88a28cae38d89e20956e3d1e3e6e8cf..3deb31efd311dc92ccc10c300b1de313836c2932 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn bar(v: &mut [uint]) {
     v.reverse();
     v.reverse();
index 2bb0516cad449ce63aedaadc606bd33e813eadfc..b79d9d6beba8706db217535047d9ac11cab9f6aa 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 enum Foo {
     IntVal(i32),
     Int64Val(i64)
index ebbdc157c7d13343ed796276add303041b3372b8..075a9431b195e97c8d40bf206bcc24921481db64 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 type task_id = int;
 
 #[deriving(Eq)]
index a7a3784877c596a5577ed8b8ee2b84c7ade56686..832474c714d0b21f56496df8b6cc428dbd061ea1 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast #7103 `extern mod` does not work on check-fast
 // xfail-pretty - does not converge
 
index 83c8679027bb88c0b11b5473ee42bd60cac55bb4..38ecd6db63cbc4821b2256677dc003acae98eb45 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(struct_variant)];
 
 #[deriving(Eq)]
index f08e5f054a9da75651f4def6d7f05aa9217a879c..0d58cae703663d1ab214f596e587f4125dc58248 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Just testing that fail!() type checks in statement or expr
 
 #[allow(unreachable_code)];
index 28f38829167bbf6d21ead5dbe06420d994c197a2..1d7ec0aa1bc37664295f4197f82e69f9f83c56fe 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 enum Animal {
     Cat = 0u,
     Dog = 1u,
index 69f3c8813883aa44425bfedfb0d35a83f6b58d2b..43bcd284dc2704d0a5f3dc6a2d3215ff1452b957 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[allow(dead_assignment)];
 #[allow(unused_variable)];
 #[feature(struct_variant)];
index c841297e19f2f2f357f367e80f452314254590b0..c34c902b8147bb41d55cde86e0ad28737f7d553d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(managed_boxes)];
 
 pub fn main() {
index 17731d9ec9402d55813930385c8eb8baafb6ab36..3437f5621e4bf99fc8f3fc3c314c60543d1e17ff 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:extern_mod_ordering_lib.rs
 // xfail-fast
 
index b146f32ec1ec64194d03665d1af3ef8168409a2c..2802572847211088bacfe1d613812940710ec96e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern {
     pub fn free(p: *u8);
 }
index daaaac93791bd38b8da3e0c7d21bf94c6f3f2d3b..130f04b3fb2adee9246171c411d3537118d837db 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::cast;
 use std::libc;
 use std::unstable::run_in_bare_thread;
index cba12e9199b2966925db31d2d692f14f8d0664cd..6dc9ef2fa4bbf24e55a6f3a3531ca9e26e184051 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test that we do not leak when the arg pattern must drop part of the
 // argument (in this case, the `y` field).
 
index 1b7d641fa8259ffcbfe26ecf6c987523e199931d..11df22d7433d644c608b93a0e1456e10c4be4783 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // exec-env:RUST_POISON_ON_FREE=1
 
 // Test argument patterns where we create refs to the inside of `~`
index ec58198d4a34823e0c245805a1b29b01876b59d6..97ba561baea39a45450b5fad2d031a0474850a71 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test that we can compile code that uses a `_` in function argument
 // patterns.
 
index d6aa69c4c13582af5e13e01480f4082d3bc56a22..f87e11cbb6147358ebb268702e41e9d611360b77 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S<T>(T);
 
 pub fn main() {
index 4d30fbe15591a629a3d3f38b49d6fe495e102e18..4496769ec56464e9e7ed37b6c83ac1f03340f8ce 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 enum Q { R(Option<uint>) }
 
 fn xyzzy(q: Q) -> uint {
index 19d3caf818d19a394faadf2f70ee291b17604e3d..96d1b8b38d6316a4a34129d664c84ce747156d14 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:impl_privacy_xc_1.rs
 // xfail-fast
 
index 306294fa76d3bfd900356498708850b09622d657..06df8da3c38aaa6dc5d77277b1b86f8789614f45 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:impl_privacy_xc_2.rs
 // xfail-fast
 
index cef183e5f33c772fc333b6df4dbd6a74c3f85270..88fab664e69ed7fbe6dc51bf024c8289c6d9170f 100644 (file)
@@ -14,7 +14,8 @@
 
 // notes on this test case:
 // On Thu, Apr 18, 2013 at 6:30 PM, John Clements <clements@brinckerhoff.org> wrote:
-// the "issue-2185.rs" test was xfailed with a ref to #2263. Issue #2263 is now fixed, so I tried it again, and after adding some &self parameters, I got this error:
+// the "issue-2185.rs" test was xfailed with a ref to #2263. Issue #2263 is now fixed,
+// so I tried it again, and after adding some &self parameters, I got this error:
 //
 // Running /usr/local/bin/rustc:
 // issue-2185.rs:24:0: 26:1 error: conflicting implementations for a trait
 // issue-2185.rs:21     fn iter(&self, blk: |A|) { self(blk); }
 // issue-2185.rs:22 }
 //
-// â€¦ so it looks like it's just not possible to implement both the generic iterable<uint> and iterable<A> for the type iterable<uint>. Is it okay if I just remove this test?
+// â€¦ so it looks like it's just not possible to implement both
+// the generic iterable<uint> and iterable<A> for the type iterable<uint>.
+// Is it okay if I just remove this test?
 //
 // but Niko responded:
-// think it's fine to remove this test, just because it's old and cruft and not hard to reproduce. *However* it should eventually be possible to implement the same interface for the same type multiple times with different type parameters, it's just that our current trait implementation has accidental limitations.
+// think it's fine to remove this test, just because it's old and cruft and not hard to reproduce.
+// *However* it should eventually be possible to implement the same interface for the same type
+// multiple times with different type parameters, it's just that our current trait implementation
+// has accidental limitations.
 
 // so I'm leaving it in.
 // actually, it looks like this is related to bug #3429. I'll rename this bug.
index f3c74cd929596d9bdd0e0faeb3c50bb54425ad36..bb288e88b206df74e916ac61adb5b6f57c3ba813 100644 (file)
@@ -53,7 +53,8 @@ fn add_interface(_store: int, managed_ip: ~str, data: extra::json::Json) -> (~st
     }
 }
 
-fn add_interfaces(store: int, managed_ip: ~str, device: HashMap<~str, extra::json::Json>) -> ~[(~str, object)]
+fn add_interfaces(store: int, managed_ip: ~str, device: HashMap<~str, extra::json::Json>)
+-> ~[(~str, object)]
 {
     match device.get(&~"interfaces")
     {
index 63a457be9f0209f8be67921fc4bc64efb4df104b..6921ba649e6c484bc3a771bb3dae0369e5b22b07 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     let mut x = 0;
     for _ in range(0, 4096) { x += 1; }
index 0a93b89a94d42d5f03ef6269759c92b93065f25d..255f6b1635c1fca81508e3256fd21c2a70ee8ed3 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[auto_serialize]
 
 type t = (uint, uint);
index e092d45ce68c8a4c97b7ef8b5ad077721b2d737d..9e20de16ae1bb02caa4990562693fc9818a4b6e9 100644 (file)
 extern mod extra;
 
 enum Token {
-        Text(@~str),
-        ETag(@~[~str], @~str),
-        UTag(@~[~str], @~str),
-        Section(@~[~str], bool, @~[Token], @~str, @~str, @~str, @~str, @~str),
-        IncompleteSection(@~[~str], bool, @~str, bool),
-        Partial(@~str, @~str, @~str),
+    Text(@~str),
+    ETag(@~[~str], @~str),
+    UTag(@~[~str], @~str),
+    Section(@~[~str], bool, @~[Token], @~str, @~str, @~str, @~str, @~str),
+    IncompleteSection(@~[~str], bool, @~str, bool),
+    Partial(@~str, @~str, @~str),
 }
 
 fn check_strs(actual: &str, expected: &str) -> bool
 {
-        if actual != expected
-        {
-            println!("Found {}, but expected {}", actual, expected);
-            return false;
-        }
-        return true;
+    if actual != expected
+    {
+        println!("Found {}, but expected {}", actual, expected);
+        return false;
+    }
+    return true;
 }
 
 pub fn main()
 {
- //       assert!(check_strs(fmt!("%?", Text(@~"foo")), "Text(@~\"foo\")"));
- //       assert!(check_strs(fmt!("%?", ETag(@~[~"foo"], @~"bar")), "ETag(@~[ ~\"foo\" ], @~\"bar\")"));
+// assert!(check_strs(fmt!("%?", Text(@~"foo")), "Text(@~\"foo\")"));
+// assert!(check_strs(fmt!("%?", ETag(@~[~"foo"], @~"bar")), "ETag(@~[ ~\"foo\" ], @~\"bar\")"));
 
-        let t = Text(@~"foo");
-        let u = Section(@~[~"alpha"], true, @~[t], @~"foo", @~"foo", @~"foo", @~"foo", @~"foo");
-        let v = format!("{:?}", u);    // this is the line that causes the seg fault
-        assert!(v.len() > 0);
+    let t = Text(@~"foo");
+    let u = Section(@~[~"alpha"], true, @~[t], @~"foo", @~"foo", @~"foo", @~"foo", @~"foo");
+    let v = format!("{:?}", u);    // this is the line that causes the seg fault
+    assert!(v.len() > 0);
 }
index 54f865a6cd5802fad38509e023d68b30b3edf32c..f60d8b2de64a1b14abecd3e13f76e08ad8259a75 100644 (file)
@@ -41,8 +41,6 @@ struct Rect {
     size: Size,
 }
 
-// TODO: operators
-
 // Contains the information needed to do shape rendering via ASCII art.
 struct AsciiArt {
     width: uint,
index bcda2e27614c687f1da1d8a2bebac62d311d7cea..9f6b1578b9575b74f8cd6daf67ce3bc87a5afe39 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 extern mod extra;
 
 use std::comm::Chan;
index deb8e0a3b07f8fc547104296a81864f92267a536..d0968633d9fae4b1d376090c6d918c7d14d51adf 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 
 // XFAIL'd due to Valgrind complaining about TLS loss.
index 72390cfdad7797866a8236322d29ec6529b5f6c6..35675225aae0c4e2e6bcc7ea3050f15c23b4c22c 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     let mut count = 0;
     for _ in range(0, 999_999) { count += 1; }
index eabc1cfeb595ff891d1bc965f7266d1b398c7606..863acc5c0c3c0c1d30067885c5347c55dbe449a0 100644 (file)
@@ -10,7 +10,7 @@
 
 // Regression test for issue #5239
 
-pub fn main() { 
+pub fn main() {
     let _f: |int| -> int = |ref x: int| { *x };
     let foo = 10;
     assert!(_f(foo) == 10);
index d1a1fbf09400579dd2f09b4b95cbf56eafbf45fc..d71e30eb64a454378a1a72c5070695acea06ee0d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn foo<T: ::std::cmp::Eq>(_t: T) { }
 
 pub fn main() { }
index f15c6de97783bd79bf2472807e579797b2195ad8..11d392f1fb1b358e6d2515a162474e46f641bce5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 trait IDummy {
     fn do_nothing(&self);
 }
index a21e6e04abcd5ab4f1d7129ee9c1ea1d3d7c22fa..6f4618a3b3b21a01f4a3bed304b0de7778ed6170 100644 (file)
@@ -10,7 +10,7 @@
 
 // xfail-pretty
 
-// (Closes #7911) Test that we can use the same self expression 
+// (Closes #7911) Test that we can use the same self expression
 // with different mutability in macro in two methods
 
 #[allow(unused_variable)]; // unused foobar_immut + foobar_mut
index aa009a91aecf318d0ddff2387fff88bd35b4d078..302ea5a4b01ef83c4cf38444decbca53b43ac7dc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::task;
 
 fn producer(c: &Chan<~[u8]>) {
index 857cfccee9b19f18dcf39c12a6d96ca08f915dfb..12eff66f72db6744e111dafc467ff024d65d45ff 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast
 // aux-build:kinds_in_metadata.rs
 
index fdb2805ae1841ad3501d39f6059609f8300efd46..c58fd89bb41f5d5bee240df02cbc2ab3c1da1b3a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     let x = ~"hello";
     let ref y = x;
index 0a1d28b2ef1fbdecc7d47ef8ab2a1e25bc24ec39..38b5a858aff083cd2358091b440392ea06947677 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[cfg(not(target_os = "macos"))]
 #[link_section=".moretext"]
 fn i_live_in_more_text() -> &'static str {
index dbc88f023696b5e218c37836b1c8a25f44550479..5fbe6b4aa6325e3c289ff009dec93192c29c4ff6 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests a tricky scenario involving string matching,
 // copying, and moving to ensure that we don't segfault
 // or double-free, as we were wont to do in the past.
index 0bf0d6e41fa40345391c8e6c56e5007f901b0d0c..039b3f9a26c5b413eadcddb8f7d07f6464502c7d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 static s: int = 1;
 static e: int = 42;
 
index a6e61fbacd4be67e7e0f7f7a71b1dacb079ead43..20693897236a7d29a88eef1cd40eed428e209462 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Tests that matching rvalues with drops does not crash.
 
 pub fn main() {
index bc4f4273dfbf80e757f65f95d71c125338dbe7fd..4a04a71f9a0162f4c4a828355dac1680d09468fe 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S<T> {
     contents: T,
 }
index 6cf207e5cbc2ce21ae068eca47c05120818c3da7..2041c69ceccbc953463e23824ed2166f5e2036f8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct StringBuffer {
     s: ~str
 }
index 1bb45b867c3341032b3fb967ea8ede1acf7a0460..854beea70025d856ff069eddc0f32828daa76202 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct S {
     x: ~str
 }
index eb347ab28ff97b1688bb5e4725f4dc9479b0dd21..6751cca798a8990e69ad90181b3c45f18e96808a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::task;
 
 pub fn main() {
index cdfa93d3094595b68d9d53739a8d005d96451aec..fc052b6a389558d926ad476bd3ace98be141138a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn f<T:Eq + Ord>(_: T) {
 }
 
index d237c4d9a4e8530d61950e2b81114d98b8fac779..7a90ea436e0567c995eda1d33cd4edfa4a79ede6 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
index c1cdb3c1b23ff243cd24a68db4bbc5f54ae13566..6def21a389a5bbb9d7b8c848d82546cc296c4e53 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct Thingy {
     x: int,
     y: int
index cbbfc387de3d7bc6c9f02f627f2fd06ae56c2f1d..ca79c304802bd3c6b76fa6f060ff00cbd696d873 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::libc::c_int;
 use std::libc;
 
index cedf1d42c3dcddfa46c493fffa83deee75c014c8..7c1e1e05098fb184ff8ec32cd77d31077a31972b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast
 // aux-build:newtype_struct_xc.rs
 
index 2280b335f3f933195fd770736778cc7970e4c73f..3237db1288e2fb89a586b236a8b8c817ac188ab6 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast
 // aux-build:newtype_struct_xc.rs
 
index 7d8d5d635f904724e7bce6b064b8a6a69293296f..5d688c1f030de3bc9d312e08d3da3e78a223caf2 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-test
 
 // xfail'd due to a bug in move detection for macros.
index 336df24586a9fbe84b46e44d8d4698dfda92cc54..94984db4df150e615fa703dffd9a9301a93b7de8 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast
 // aux-build:packed.rs
 
index c5d631336337a6499a713fffe89d0a3b029d200f..742df0f5c6d87f60bd8f72aa654be60a482a2ea5 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::cast::transmute;
 
 mod a {
index bfe5326043983dabdf4f0691c135c77ab4af648a..95a6d1e5941a92da406e2ad28bd7d56b6808d26e 100644 (file)
Binary files a/src/test/run-pass/raw-str.rs and b/src/test/run-pass/raw-str.rs differ
index 91e69028103a33536aa675b4f6d814f8926a9671..a0d6fc4c157f52e95a6164f0f16f4c23a95ffa38 100644 (file)
@@ -114,7 +114,8 @@ fn visit_enter_enum_variant(&mut self,
                                 _disr_val: Disr,
                                 _n_fields: uint,
                                 _name: &str) -> bool { true }
-    fn visit_enum_variant_field(&mut self, _i: uint, _offset: uint, _inner: *TyDesc) -> bool { true }
+    fn visit_enum_variant_field(&mut self, _i: uint, _offset: uint, _inner: *TyDesc)
+        -> bool { true }
     fn visit_leave_enum_variant(&mut self,
                                 _variant: uint,
                                 _disr_val: Disr,
@@ -128,7 +129,8 @@ fn visit_leave_enum(&mut self,
     fn visit_enter_fn(&mut self, _purity: uint, _proto: uint,
                       _n_inputs: uint, _retstyle: uint) -> bool { true }
     fn visit_fn_input(&mut self, _i: uint, _mode: uint, _inner: *TyDesc) -> bool { true }
-    fn visit_fn_output(&mut self, _retstyle: uint, _variadic: bool, _inner: *TyDesc) -> bool { true }
+    fn visit_fn_output(&mut self, _retstyle: uint, _variadic: bool, _inner: *TyDesc)
+        -> bool { true }
     fn visit_leave_fn(&mut self, _purity: uint, _proto: uint,
                       _n_inputs: uint, _retstyle: uint) -> bool { true }
 
index d90ec51bedfa2e4d9ada685e84ae793574303d02..5c4e2f5ebd52b297e557424eac52d1a18c42101b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 trait MyTrait {
     fn f(&self) -> Self;
 }
index 0e8ca4d99428b7f46546ccab6c997639e1ee8696..f4686ee1ba705aa7694a9bad599b23a026c3f47b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // copyright 2013 the rust project developers. see the copyright
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/copyright.
index 029478b4d59653f6d2dfa3b513f913835168428a..0893f943995267ea4ab5e9efef0ea8ce33347913 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast feature doesn't work
 
 #[feature(simd)];
index 11cef9d480a4d5ad62b85fd03b082a26ca261270..59526ae6e01979e1c1a4413b6af1f87056e68bc1 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test - FIXME(#8538) some kind of problem linking induced by extern "C" fns that I do not understand
+// xfail-test - FIXME(#8538) some kind of problem linking induced by extern "C" fns
 // xfail-fast - check-fast doesn't like this
 
 // Smallest hello world with no runtime
index 93c8d67c9c0a5a5d32df79018b681bea1a4ff0b9..f8fd81b9365159f6bcc21f72e46515172385720f 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[static_assert]
 static b: bool = true;
 
index ef40d2789e46afeff356bd8a6bb6ee20cab83222..0cafa632130254dea2eb2cfdd7c226ef728f893e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // aux-build:static_fn_trait_xc_aux.rs
 // xfail-fast
 
index a73978ce73c636be62ca29ea938010937ae3a895..d0448de2c49705302b0f80dc1e317a0e39a46903 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub trait Number: NumConv {
     fn from<T:Number>(n: T) -> Self;
 }
index da00e1595dee47293c3e8c209e34fa0164b95f23..e15a4f419aed45322c4eca09abb4e25061283218 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(managed_boxes)];
 
 struct Foo<'a> {
index fb93c560e0de437abaa0db43170913e5d6f97141..21eb0ae99b4af9f39cb50ea3a15f7506afd594bc 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 struct Foo {
     new: int,
 }
index b5eb6e850456e34d5c55d5902bab8581eafb1c33..95aeff425e8a90c6fe090d822f3e894b1c6e1b14 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub mod a {
     pub fn f() {}
     pub mod b {
index 58066adc4bd6f6b2c2bdf497c197771a4aa5a2e7..6e722a8d5da06a6cdece9d1916b80a009a1b0944 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast
 // aux-build:trait_default_method_xc_aux.rs
 // aux-build:trait_default_method_xc_aux_2.rs
index e8387458ab60fea1b0ddc2e00256222855cfff48..30309fb14b22dddbf7caa2a88b1570717d50bc0b 100644 (file)
@@ -1,7 +1,16 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // xfail-fast
 // aux-build:trait_default_method_xc_aux.rs
 
-
 extern mod aux = "trait_default_method_xc_aux";
 use aux::{A, TestEquality, Something};
 use aux::B;
index fac29e68525cf7a501ecd5dc298657f8b84053fc..63ac921e2a52b2bf5bf5fea5a008e808c521b16a 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Test for issue #4183: use of Self in supertraits.
 
 use std::num;
index c1683082ae74a1cf1c04a65b0980dc7476d41f6a..07b0929968dfeedeca924963e2954b57511cd784 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 trait Foo<T> {
     fn f(&self, x: &T);
 }
index ebde7e787e41e4928b2f1fd5d8a7a97453c0ace6..e2422a1dcf563b032f711ee6b040d9dbb3e6218b 100644 (file)
@@ -17,7 +17,8 @@ pub trait Trait2<A> {
 pub struct Impl<A1, A2, A3> {
     /*
      * With A2 we get the ICE:
-     * task <unnamed> failed at 'index out of bounds: the len is 1 but the index is 1', /home/tortue/rust_compiler_newest/src/librustc/middle/subst.rs:58
+     * task <unnamed> failed at 'index out of bounds: the len is 1 but the index is 1',
+     * src/librustc/middle/subst.rs:58
      */
     t: ~Trait2<A2>
 }
index a4512e99ce0d0923e4e46f1a70ba5ee7fb4c4e17..be9e5fcbdf3496cd1cebe1af5d6884b9a3d8b023 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[feature(macro_rules)];
 
 enum T {
index 948824834df844071542df662b62507db80a0336..3a5e0dd8ae3b9a219549093cb0b37e952ab6df36 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn good(_a: &int) {
 }
 
index 68d2ce364631c6f6aee1435722987a90394c1839..0ca210af03718358da10c94ea266bbcb301b3b8e 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     let x = ~[1, 2, 3];
     match x {
index ed88dc3008a170b2e6e5390633a561df168feadf..17633f12ce524406bed2c12240f8d80ade54a55b 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() {
     let x = [1, 2, 3];
     match x {
index 75c48da8d812d11b5739f34fcd3ade83e4052db6..5ba42b68f27c1839050d3a253baae2659975821d 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn foldl<T,U:Clone>(values: &[T],
                     initial: U,
                     function: |partial: U, element: &T| -> U)
index d90abe31b2767755970930e695fcc97f44a3ef6a..fbdcc1ab69c2b02b52a0533120451f62771cda20 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 pub fn main() {
     let x = &[1, 2, 3, 4, 5];
     if !x.is_empty() {
index 16c68afa47bab2548561d95be6e097af27f3c47e..ced3baf3c3c7e812dd589ab872610bcbc77e6ea1 100644 (file)
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 fn a() {
     let x = ~[1];
     match x {
index 1ab9e17523d0ad1faf38ac6625a9f3e455bfae4e..d42b2959dba3193cc0b1801d9b0bd6e29d53e275 100644 (file)
@@ -1,3 +1,14 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+
 struct Foo {
     string: ~str
 }
index 61a13a42fa0824f663b00b46f9e8fe0f2fb4b2bc..57bc3bda9636aac2b0414207c4c8f3f59003e701 100644 (file)
@@ -1,4 +1,12 @@
-
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
 
 
 pub fn main() {