From 00c856c0b1feac74df8b404fad94d74a0cf1624a Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 3 Dec 2012 16:48:01 -0800 Subject: [PATCH] Update license, add license boilerplate to most files. Remainder will follow. --- LICENSE.txt => COPYRIGHT | 76 +++---- LICENSE-APACHE | 201 ++++++++++++++++++ LICENSE-MIT | 26 +++ src/compiletest/common.rs | 10 + src/compiletest/compiletest.rc | 10 + src/compiletest/errors.rs | 10 + src/compiletest/header.rs | 10 + src/compiletest/procsrv.rs | 10 + src/compiletest/util.rs | 10 + src/driver/driver.rs | 10 + src/libcargo/cargo.rc | 10 + src/libcargo/pgp.rs | 10 + src/libcore/at_vec.rs | 10 + src/libcore/bool.rs | 10 + src/libcore/box.rs | 10 + src/libcore/cast.rs | 10 + src/libcore/char.rs | 10 + src/libcore/cleanup.rs | 10 + src/libcore/clone.rs | 10 + src/libcore/cmath.rs | 10 + src/libcore/cmp.rs | 10 + src/libcore/comm.rs | 10 + src/libcore/condition.rs | 10 + src/libcore/core.rc | 10 + src/libcore/dlist.rs | 10 + src/libcore/dvec.rs | 10 + src/libcore/extfmt.rs | 10 + src/libcore/f32.rs | 10 + src/libcore/f64.rs | 10 + src/libcore/flate.rs | 10 + src/libcore/float.rs | 10 + src/libcore/from_str.rs | 10 + src/libcore/gc.rs | 10 + src/libcore/hash.rs | 10 + src/libcore/int-template.rs | 10 + src/libcore/int-template/i16.rs | 10 + src/libcore/int-template/i32.rs | 10 + src/libcore/int-template/i64.rs | 10 + src/libcore/int-template/i8.rs | 10 + src/libcore/int-template/int.rs | 10 + src/libcore/io.rs | 10 + src/libcore/iter-trait.rs | 10 + src/libcore/iter-trait/dlist.rs | 10 + src/libcore/iter-trait/dvec.rs | 10 + src/libcore/iter-trait/option.rs | 10 + src/libcore/iter.rs | 10 + src/libcore/libc.rs | 10 + src/libcore/logging.rs | 10 + src/libcore/mutable.rs | 10 + src/libcore/num.rs | 10 + src/libcore/ops.rs | 10 + src/libcore/option.rs | 10 + src/libcore/os.rs | 10 + src/libcore/owned.rs | 10 + src/libcore/path.rs | 10 + src/libcore/pipes.rs | 10 + src/libcore/private.rs | 10 + src/libcore/rand.rs | 10 + src/libcore/reflect.rs | 10 + src/libcore/repr.rs | 10 + src/libcore/result.rs | 10 + src/libcore/rt.rs | 10 + src/libcore/run.rs | 10 + src/libcore/send_map.rs | 10 + src/libcore/stackwalk.rs | 10 + src/libcore/sys.rs | 10 + src/libcore/task/local_data.rs | 10 + src/libcore/task/local_data_priv.rs | 10 + src/libcore/task/mod.rs | 10 + src/libcore/task/rt.rs | 10 + src/libcore/task/spawn.rs | 10 + src/libcore/to_bytes.rs | 10 + src/libcore/to_str.rs | 10 + src/libcore/tuple.rs | 10 + src/libcore/uint-template.rs | 10 + src/libcore/uint-template/u16.rs | 10 + src/libcore/uint-template/u32.rs | 10 + src/libcore/uint-template/u64.rs | 10 + src/libcore/uint-template/u8.rs | 10 + src/libcore/uint-template/uint.rs | 10 + src/libcore/unicode.rs | 10 + src/libcore/unit.rs | 10 + src/libcore/util.rs | 10 + src/libcore/vec.rs | 10 + src/libfuzzer/ast_match.rs | 10 + src/libfuzzer/cycles.rs | 10 + src/libfuzzer/fuzzer.rc | 10 + src/libfuzzer/ivec_fuzz.rs | 10 + src/libfuzzer/rand_util.rs | 10 + src/librustc/back/abi.rs | 10 + src/librustc/back/link.rs | 10 + src/librustc/back/rpath.rs | 10 + src/librustc/back/target_strs.rs | 10 + src/librustc/back/upcall.rs | 10 + src/librustc/back/x86.rs | 10 + src/librustc/back/x86_64.rs | 10 + src/librustc/driver/driver.rs | 10 + src/librustc/driver/mod.rs | 10 + src/librustc/driver/session.rs | 10 + src/librustc/front/config.rs | 10 + src/librustc/front/core_inject.rs | 10 + src/librustc/front/intrinsic.rs | 10 + src/librustc/front/intrinsic_inject.rs | 10 + src/librustc/front/test.rs | 10 + src/librustc/lib/llvm.rs | 10 + src/librustc/metadata/common.rs | 10 + src/librustc/metadata/creader.rs | 10 + src/librustc/metadata/csearch.rs | 10 + src/librustc/metadata/cstore.rs | 10 + src/librustc/metadata/decoder.rs | 10 + src/librustc/metadata/encoder.rs | 10 + src/librustc/metadata/filesearch.rs | 10 + src/librustc/metadata/loader.rs | 10 + src/librustc/metadata/mod.rs | 10 + src/librustc/metadata/tydecode.rs | 10 + src/librustc/metadata/tyencode.rs | 10 + src/librustc/middle/astencode.rs | 10 + src/librustc/middle/borrowck/check_loans.rs | 10 + src/librustc/middle/borrowck/gather_loans.rs | 10 + src/librustc/middle/borrowck/loan.rs | 10 + src/librustc/middle/borrowck/mod.rs | 10 + src/librustc/middle/borrowck/preserve.rs | 10 + src/librustc/middle/capture.rs | 10 + src/librustc/middle/check_alt.rs | 10 + src/librustc/middle/check_const.rs | 10 + src/librustc/middle/check_loop.rs | 10 + src/librustc/middle/const_eval.rs | 10 + src/librustc/middle/freevars.rs | 10 + src/librustc/middle/kind.rs | 10 + src/librustc/middle/lang_items.rs | 10 + src/librustc/middle/lint.rs | 10 + src/librustc/middle/liveness.rs | 10 + src/librustc/middle/mem_categorization.rs | 10 + src/librustc/middle/pat_util.rs | 10 + src/librustc/middle/privacy.rs | 10 + src/librustc/middle/region.rs | 10 + src/librustc/middle/resolve.rs | 10 + src/librustc/middle/trans/alt.rs | 10 + src/librustc/middle/trans/base.rs | 10 + src/librustc/middle/trans/build.rs | 10 + src/librustc/middle/trans/callee.rs | 10 + src/librustc/middle/trans/closure.rs | 10 + src/librustc/middle/trans/common.rs | 10 + src/librustc/middle/trans/consts.rs | 10 + src/librustc/middle/trans/controlflow.rs | 10 + src/librustc/middle/trans/datum.rs | 10 + src/librustc/middle/trans/debuginfo.rs | 10 + src/librustc/middle/trans/deriving.rs | 10 + src/librustc/middle/trans/expr.rs | 10 + src/librustc/middle/trans/foreign.rs | 10 + src/librustc/middle/trans/glue.rs | 10 + src/librustc/middle/trans/inline.rs | 10 + src/librustc/middle/trans/machine.rs | 10 + src/librustc/middle/trans/macros.rs | 10 + src/librustc/middle/trans/meth.rs | 10 + src/librustc/middle/trans/monomorphize.rs | 10 + src/librustc/middle/trans/reachable.rs | 10 + src/librustc/middle/trans/reflect.rs | 10 + src/librustc/middle/trans/shape.rs | 10 + src/librustc/middle/trans/tvec.rs | 10 + src/librustc/middle/trans/type_of.rs | 10 + src/librustc/middle/trans/type_use.rs | 10 + src/librustc/middle/trans/uniq.rs | 10 + src/librustc/middle/ty.rs | 10 + src/librustc/middle/typeck/astconv.rs | 10 + src/librustc/middle/typeck/check/alt.rs | 10 + src/librustc/middle/typeck/check/demand.rs | 10 + src/librustc/middle/typeck/check/method.rs | 10 + src/librustc/middle/typeck/check/mod.rs | 10 + src/librustc/middle/typeck/check/regionck.rs | 10 + .../middle/typeck/check/regionmanip.rs | 10 + src/librustc/middle/typeck/check/vtable.rs | 10 + src/librustc/middle/typeck/check/writeback.rs | 10 + src/librustc/middle/typeck/coherence.rs | 10 + src/librustc/middle/typeck/collect.rs | 10 + src/librustc/middle/typeck/deriving.rs | 10 + .../middle/typeck/infer/assignment.rs | 10 + src/librustc/middle/typeck/infer/combine.rs | 10 + src/librustc/middle/typeck/infer/floating.rs | 10 + src/librustc/middle/typeck/infer/glb.rs | 10 + src/librustc/middle/typeck/infer/integral.rs | 10 + src/librustc/middle/typeck/infer/lattice.rs | 10 + src/librustc/middle/typeck/infer/lub.rs | 10 + src/librustc/middle/typeck/infer/macros.rs | 10 + src/librustc/middle/typeck/infer/mod.rs | 10 + .../middle/typeck/infer/region_inference.rs | 10 + src/librustc/middle/typeck/infer/resolve.rs | 10 + src/librustc/middle/typeck/infer/sub.rs | 10 + src/librustc/middle/typeck/infer/test.rs | 10 + src/librustc/middle/typeck/infer/to_str.rs | 10 + src/librustc/middle/typeck/infer/unify.rs | 10 + src/librustc/middle/typeck/mod.rs | 10 + src/librustc/middle/typeck/rscope.rs | 10 + src/librustc/rustc.rc | 10 + src/librustc/util/common.rs | 10 + src/librustc/util/ppaux.rs | 10 + src/librustdoc/astsrv.rs | 10 + src/librustdoc/attr_parser.rs | 10 + src/librustdoc/attr_pass.rs | 10 + src/librustdoc/config.rs | 10 + src/librustdoc/demo.rs | 10 + src/librustdoc/desc_to_brief_pass.rs | 10 + src/librustdoc/doc.rs | 10 + src/librustdoc/escape_pass.rs | 10 + src/librustdoc/extract.rs | 10 + src/librustdoc/fold.rs | 10 + src/librustdoc/markdown_index_pass.rs | 10 + src/librustdoc/markdown_pass.rs | 10 + src/librustdoc/markdown_writer.rs | 10 + src/librustdoc/page_pass.rs | 10 + src/librustdoc/parse.rs | 10 + src/librustdoc/pass.rs | 10 + src/librustdoc/path_pass.rs | 10 + src/librustdoc/prune_hidden_pass.rs | 10 + src/librustdoc/prune_private_pass.rs | 10 + src/librustdoc/rustdoc.rc | 10 + src/librustdoc/sectionalize_pass.rs | 10 + src/librustdoc/sort_item_name_pass.rs | 10 + src/librustdoc/sort_item_type_pass.rs | 10 + src/librustdoc/sort_pass.rs | 10 + src/librustdoc/text_pass.rs | 10 + src/librustdoc/trim_pass.rs | 10 + src/librustdoc/tystr_pass.rs | 10 + src/librustdoc/unindent_pass.rs | 10 + src/librustdoc/util.rs | 10 + src/librusti/rusti.rc | 10 + src/librusti/wrapper.rs | 10 + src/libstd/arc.rs | 10 + src/libstd/arena.rs | 10 + src/libstd/base64.rs | 10 + src/libstd/bitv.rs | 10 + src/libstd/c_vec.rs | 10 + src/libstd/cell.rs | 10 + src/libstd/cmp.rs | 10 + src/libstd/comm.rs | 10 + src/libstd/dbg.rs | 10 + src/libstd/deque.rs | 10 + src/libstd/ebml.rs | 10 + src/libstd/fun_treemap.rs | 10 + src/libstd/future.rs | 10 + src/libstd/getopts.rs | 10 + src/libstd/json.rs | 10 + src/libstd/list.rs | 10 + src/libstd/map.rs | 10 + src/libstd/md4.rs | 10 + src/libstd/net.rs | 10 + src/libstd/net_ip.rs | 10 + src/libstd/net_tcp.rs | 10 + src/libstd/net_url.rs | 10 + src/libstd/par.rs | 10 + src/libstd/prettyprint.rs | 10 + src/libstd/rope.rs | 10 + src/libstd/serialization.rs | 10 + src/libstd/sha1.rs | 10 + src/libstd/smallintmap.rs | 10 + src/libstd/sort.rs | 10 + src/libstd/sync.rs | 10 + src/libstd/task_pool.rs | 10 + src/libstd/tempfile.rs | 10 + src/libstd/term.rs | 10 + src/libstd/test.rs | 10 + src/libstd/time.rs | 10 + src/libstd/timer.rs | 10 + src/libstd/treemap.rs | 10 + src/libstd/unicode.rs | 10 + src/libstd/uv.rs | 10 + src/libstd/uv_global_loop.rs | 10 + src/libstd/uv_iotask.rs | 10 + src/libstd/uv_ll.rs | 10 + src/libstd/workcache.rs | 10 + src/libsyntax/ast.rs | 10 + src/libsyntax/ast_map.rs | 10 + src/libsyntax/ast_util.rs | 10 + src/libsyntax/attr.rs | 10 + src/libsyntax/codemap.rs | 10 + src/libsyntax/diagnostic.rs | 10 + src/libsyntax/ext/auto_serialize.rs | 10 + src/libsyntax/ext/base.rs | 10 + src/libsyntax/ext/build.rs | 10 + src/libsyntax/ext/concat_idents.rs | 10 + src/libsyntax/ext/deriving.rs | 10 + src/libsyntax/ext/env.rs | 10 + src/libsyntax/ext/expand.rs | 10 + src/libsyntax/ext/fmt.rs | 10 + src/libsyntax/ext/ident_to_str.rs | 10 + src/libsyntax/ext/log_syntax.rs | 10 + src/libsyntax/ext/pipes/ast_builder.rs | 10 + src/libsyntax/ext/pipes/check.rs | 10 + src/libsyntax/ext/pipes/liveness.rs | 10 + src/libsyntax/ext/pipes/mod.rs | 10 + src/libsyntax/ext/pipes/parse_proto.rs | 10 + src/libsyntax/ext/pipes/pipec.rs | 10 + src/libsyntax/ext/pipes/proto.rs | 10 + src/libsyntax/ext/qquote.rs | 10 + src/libsyntax/ext/quote.rs | 10 + src/libsyntax/ext/simplext.rs | 10 + src/libsyntax/ext/source_util.rs | 10 + src/libsyntax/ext/trace_macros.rs | 10 + src/libsyntax/ext/tt/macro_parser.rs | 10 + src/libsyntax/ext/tt/macro_rules.rs | 10 + src/libsyntax/ext/tt/transcribe.rs | 10 + src/libsyntax/fold.rs | 10 + src/libsyntax/parse/attr.rs | 10 + src/libsyntax/parse/classify.rs | 10 + src/libsyntax/parse/comments.rs | 10 + src/libsyntax/parse/common.rs | 10 + src/libsyntax/parse/eval.rs | 10 + src/libsyntax/parse/lexer.rs | 10 + src/libsyntax/parse/mod.rs | 10 + src/libsyntax/parse/obsolete.rs | 10 + src/libsyntax/parse/prec.rs | 10 + src/libsyntax/parse/token.rs | 10 + src/libsyntax/print/pp.rs | 10 + src/libsyntax/print/pprust.rs | 10 + src/libsyntax/syntax.rc | 10 + src/libsyntax/util/interner.rs | 10 + src/libsyntax/visit.rs | 10 + src/rt/arch/i386/gpr.cpp | 10 + src/rt/arch/i386/gpr.h | 10 + src/rt/arch/i386/regs.h | 10 + src/rt/arch/x86_64/gpr.cpp | 10 + src/rt/arch/x86_64/gpr.h | 10 + src/rt/arch/x86_64/regs.h | 10 + src/rt/boxed_region.h | 10 + src/rt/rust_abi.cpp | 10 + src/rt/rust_abi.h | 10 + src/rt/rust_crate_map.cpp | 10 + src/rt/rust_crate_map.h | 10 + src/rt/rust_debug.h | 10 + src/rt/rust_gc_metadata.cpp | 10 + src/rt/rust_gc_metadata.h | 10 + src/rt/rust_gpr_base.h | 10 + src/rt/rust_sched_driver.h | 10 + src/rt/rust_sched_reaper.h | 10 + src/rt/rust_signal.h | 10 + src/rt/rust_unwind.h | 10 + src/rt/rust_util.cpp | 10 + src/rt/sync/sync.h | 10 + src/rt/sync/timer.cpp | 10 + src/rt/sync/timer.h | 10 + src/rt/util/hash_map.h | 10 + src/rt/util/indexed_list.h | 10 + 342 files changed, 3646 insertions(+), 47 deletions(-) rename LICENSE.txt => COPYRIGHT (86%) create mode 100644 LICENSE-APACHE create mode 100644 LICENSE-MIT diff --git a/LICENSE.txt b/COPYRIGHT similarity index 86% rename from LICENSE.txt rename to COPYRIGHT index b85bc581d2f..f0ec45395c3 100644 --- a/LICENSE.txt +++ b/COPYRIGHT @@ -1,13 +1,26 @@ Short version for non-lawyers: -This work licensed under MIT-like terms. +The Rust Project is dual-licensed under Apache 2.0 and MIT +terms. -Long version follows: +Longer version: -The collective work presented here includes packages written -by third parties. The following third party packages are -included: +The Rust Project is copyright 2012, The Rust Project +Developers (given in the file AUTHORS.txt). + +Licensed under the Apache License, Version 2.0 + or the MIT +license , +at your option. All files in the project carrying such +notice may not be copied, modified, or distributed except +according to those terms. + + +The Rust Project includes packages written by third parties. +The following third party packages are included, and carry +their own copyright notices and license terms: * The ISAAC pseudo random number generation package. Code @@ -334,12 +347,12 @@ included: * Additional copyright may be retained by contributors other - than Mozilla or the parties enumerated in this file. Such - copyright can be determined on a case-by-case basis by - examining the author of each portion of a file in the - revision-control commit records of the project, or by - consulting representative comments claiming copyright - ownership for a file. + than Mozilla, the Rust Project Authors, or the parties + enumerated in this file. Such copyright can be determined + on a case-by-case basis by examining the author of each + portion of a file in the revision-control commit records + of the project, or by consulting representative comments + claiming copyright ownership for a file. For example, the text: @@ -349,40 +362,9 @@ included: that their author and copyright-holder is Google Inc. In all such cases, the absence of explicit licensing text - indicates that the contributor chose to license their - work for distribution under identical terms to those - Mozilla has chosen for the collective work, enumerated - below. The only difference is the retention of copyright - itself, held by the contributor. + indicates that the contributor chose to license their work + for distribution under identical terms to those Mozilla + has chosen for the collective work, enumerated at the top + of this file. The only difference is the retention of + copyright itself, held by the contributor. - -The remaining code and documentation in the collective work -presented here, as well as the collective work itslf, is -distributed under the following terms ("The Rust License"): - - Copyright (c) 2006-2012 Graydon Hoare - Copyright (c) 2009-2012 Mozilla Foundation - - Permission is hereby granted, free of charge, to any - person obtaining a copy of this software and associated - documentation files (the "Software"), to deal in the - Software without restriction, including without - limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of - the Software, and to permit persons to whom the Software - is furnished to do so, subject to the following - conditions: - - The above copyright notice and this permission notice - shall be included in all copies or substantial portions - of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF - ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED - TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A - PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT - SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY - CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR - IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. diff --git a/LICENSE-APACHE b/LICENSE-APACHE new file mode 100644 index 00000000000..16fe87b06e8 --- /dev/null +++ b/LICENSE-APACHE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 00000000000..bfa1f40439a --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,26 @@ +Copyright (c) 2006-2012 Graydon Hoare +Copyright (c) 2009-2012 Mozilla Foundation + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index dcbe419ddb1..20b7e32d0c9 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + enum mode { mode_compile_fail, mode_run_fail, mode_run_pass, mode_pretty, } impl mode : cmp::Eq { diff --git a/src/compiletest/compiletest.rc b/src/compiletest/compiletest.rc index a9ca15babde..ceceeee9d7a 100644 --- a/src/compiletest/compiletest.rc +++ b/src/compiletest/compiletest.rc @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[crate_type = "bin"]; #[no_core]; diff --git a/src/compiletest/errors.rs b/src/compiletest/errors.rs index a8b69201a22..632619f1381 100644 --- a/src/compiletest/errors.rs +++ b/src/compiletest/errors.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use common::config; use io::ReaderUtil; diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs index 3071c9a70a1..24645e02b20 100644 --- a/src/compiletest/header.rs +++ b/src/compiletest/header.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use common::config; use io::ReaderUtil; diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index 38102e9af35..23f9e819bc4 100644 --- a/src/compiletest/procsrv.rs +++ b/src/compiletest/procsrv.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use run::spawn_process; use io::{ReaderUtil, WriterUtil}; use libc::{c_int, pid_t}; diff --git a/src/compiletest/util.rs b/src/compiletest/util.rs index ac0b4b03596..569d89fd3fe 100644 --- a/src/compiletest/util.rs +++ b/src/compiletest/util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use os::getenv; use common::config; diff --git a/src/driver/driver.rs b/src/driver/driver.rs index 49143ddc97d..e96ff9662eb 100644 --- a/src/driver/driver.rs +++ b/src/driver/driver.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[no_core]; extern mod core(vers = "0.5"); diff --git a/src/libcargo/cargo.rc b/src/libcargo/cargo.rc index a559592e3c3..2ced2026f6d 100644 --- a/src/libcargo/cargo.rc +++ b/src/libcargo/cargo.rc @@ -1,4 +1,14 @@ // -*- rust -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // cargo.rs - Rust package manager diff --git a/src/libcargo/pgp.rs b/src/libcargo/pgp.rs index 5fbfa55838c..8fd4994ba14 100644 --- a/src/libcargo/pgp.rs +++ b/src/libcargo/pgp.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + fn gpgv(args: ~[~str]) -> { status: int, out: ~str, err: ~str } { return run::program_output(~"gpgv", args); } diff --git a/src/libcore/at_vec.rs b/src/libcore/at_vec.rs index 6d4a5849e35..49ba1d5aa90 100644 --- a/src/libcore/at_vec.rs +++ b/src/libcore/at_vec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Managed vectors // NB: transitionary, de-mode-ing. diff --git a/src/libcore/bool.rs b/src/libcore/bool.rs index 8ea5772dc12..6d2ed9b423e 100644 --- a/src/libcore/bool.rs +++ b/src/libcore/bool.rs @@ -1,4 +1,14 @@ // -*- rust -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; diff --git a/src/libcore/box.rs b/src/libcore/box.rs index 920b98d7b0b..bc6a56868a5 100644 --- a/src/libcore/box.rs +++ b/src/libcore/box.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations on managed box types // NB: transitionary, de-mode-ing. diff --git a/src/libcore/cast.rs b/src/libcore/cast.rs index 9aaf373869c..46ac2824efb 100644 --- a/src/libcore/cast.rs +++ b/src/libcore/cast.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Unsafe operations #[forbid(deprecated_mode)] diff --git a/src/libcore/char.rs b/src/libcore/char.rs index d88e7ec9be1..057b03c9546 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Utilities for manipulating the char type // NB: transitionary, de-mode-ing. diff --git a/src/libcore/cleanup.rs b/src/libcore/cleanup.rs index 9a3b40757a7..fe512a93661 100644 --- a/src/libcore/cleanup.rs +++ b/src/libcore/cleanup.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[doc(hidden)]; // NB: transitionary, de-mode-ing. diff --git a/src/libcore/clone.rs b/src/libcore/clone.rs index 8e180ff3414..a0569348b2e 100644 --- a/src/libcore/clone.rs +++ b/src/libcore/clone.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /** Clonable types are copied with the clone method */ diff --git a/src/libcore/cmath.rs b/src/libcore/cmath.rs index 46ac90413a6..284b1b88a3b 100644 --- a/src/libcore/cmath.rs +++ b/src/libcore/cmath.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[doc(hidden)]; // FIXME #3538 // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 0a9335d3774..0f9e12058ba 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The `Ord` and `Eq` comparison traits diff --git a/src/libcore/comm.rs b/src/libcore/comm.rs index c9cd1a21b45..64395470c84 100644 --- a/src/libcore/comm.rs +++ b/src/libcore/comm.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Deprecated communication between tasks diff --git a/src/libcore/condition.rs b/src/libcore/condition.rs index 30b25403a4e..9ba095cf1bc 100644 --- a/src/libcore/condition.rs +++ b/src/libcore/condition.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // helper for transmutation, shown below. type RustClosure = (int,int); struct Handler { diff --git a/src/libcore/core.rc b/src/libcore/core.rc index e371082a50d..142cd234bc6 100644 --- a/src/libcore/core.rc +++ b/src/libcore/core.rc @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The Rust core library diff --git a/src/libcore/dlist.rs b/src/libcore/dlist.rs index 35399878e26..5f37607b85a 100644 --- a/src/libcore/dlist.rs +++ b/src/libcore/dlist.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! A doubly-linked list. Supports O(1) head, tail, count, push, pop, etc. diff --git a/src/libcore/dvec.rs b/src/libcore/dvec.rs index c885d241659..96fdc876c94 100644 --- a/src/libcore/dvec.rs +++ b/src/libcore/dvec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Dynamic vector diff --git a/src/libcore/extfmt.rs b/src/libcore/extfmt.rs index eb985a272df..aedc24d3ce9 100644 --- a/src/libcore/extfmt.rs +++ b/src/libcore/extfmt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Support for fmt! expressions. //! //! The syntax is close to that of Posix format strings: diff --git a/src/libcore/f32.rs b/src/libcore/f32.rs index 2d0b130688d..3b4af904eee 100644 --- a/src/libcore/f32.rs +++ b/src/libcore/f32.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/f64.rs b/src/libcore/f64.rs index 6adbbbb2c40..360da91f654 100644 --- a/src/libcore/f64.rs +++ b/src/libcore/f64.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/flate.rs b/src/libcore/flate.rs index b2dd468236a..506937f053f 100644 --- a/src/libcore/flate.rs +++ b/src/libcore/flate.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Simple compression diff --git a/src/libcore/float.rs b/src/libcore/float.rs index 50dd4b90bfb..d95b7a276b2 100644 --- a/src/libcore/float.rs +++ b/src/libcore/float.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/from_str.rs b/src/libcore/from_str.rs index 8e9cd5a0227..f6dc385778e 100644 --- a/src/libcore/from_str.rs +++ b/src/libcore/from_str.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! The trait for types that can be created from strings // NB: transitionary, de-mode-ing. diff --git a/src/libcore/gc.rs b/src/libcore/gc.rs index 7bad8e72e20..81936d17774 100644 --- a/src/libcore/gc.rs +++ b/src/libcore/gc.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Precise garbage collector The precise GC exposes two functions, gc and diff --git a/src/libcore/hash.rs b/src/libcore/hash.rs index cdca6852dbb..26f4f0840cd 100644 --- a/src/libcore/hash.rs +++ b/src/libcore/hash.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/int-template.rs b/src/libcore/int-template.rs index 4763f55400a..5b80745b972 100644 --- a/src/libcore/int-template.rs +++ b/src/libcore/int-template.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/int-template/i16.rs b/src/libcore/int-template/i16.rs index ccafb8f9d3b..3effa40bd16 100644 --- a/src/libcore/int-template/i16.rs +++ b/src/libcore/int-template/i16.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `i16` mod inst { diff --git a/src/libcore/int-template/i32.rs b/src/libcore/int-template/i32.rs index f890ff1f918..710868fcb8d 100644 --- a/src/libcore/int-template/i32.rs +++ b/src/libcore/int-template/i32.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `i32` mod inst { diff --git a/src/libcore/int-template/i64.rs b/src/libcore/int-template/i64.rs index 1afefc3135e..0612322dab6 100644 --- a/src/libcore/int-template/i64.rs +++ b/src/libcore/int-template/i64.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `i64` mod inst { diff --git a/src/libcore/int-template/i8.rs b/src/libcore/int-template/i8.rs index 6dd14ef842d..37d7e610566 100644 --- a/src/libcore/int-template/i8.rs +++ b/src/libcore/int-template/i8.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `i8` mod inst { diff --git a/src/libcore/int-template/int.rs b/src/libcore/int-template/int.rs index 5bd1ac667be..87f5659e6f4 100644 --- a/src/libcore/int-template/int.rs +++ b/src/libcore/int-template/int.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `int` pub use inst::pow; diff --git a/src/libcore/io.rs b/src/libcore/io.rs index 1bebf817f9b..570df08e77c 100644 --- a/src/libcore/io.rs +++ b/src/libcore/io.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Basic input/output diff --git a/src/libcore/iter-trait.rs b/src/libcore/iter-trait.rs index 6de6633f5f8..861f55afc99 100644 --- a/src/libcore/iter-trait.rs +++ b/src/libcore/iter-trait.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // This makes use of a clever hack that brson came up with to // workaround our lack of traits and lack of macros. See core.{rc,rs} for // how this file is used. diff --git a/src/libcore/iter-trait/dlist.rs b/src/libcore/iter-trait/dlist.rs index 2d782b1262b..2b9d3ad7da3 100644 --- a/src/libcore/iter-trait/dlist.rs +++ b/src/libcore/iter-trait/dlist.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + mod inst { #[allow(non_camel_case_types)] pub type IMPL_T = dlist::DList; diff --git a/src/libcore/iter-trait/dvec.rs b/src/libcore/iter-trait/dvec.rs index b30c1372a2e..9b7016c17d5 100644 --- a/src/libcore/iter-trait/dvec.rs +++ b/src/libcore/iter-trait/dvec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + mod inst { #[allow(non_camel_case_types)] pub type IMPL_T = dvec::DVec; diff --git a/src/libcore/iter-trait/option.rs b/src/libcore/iter-trait/option.rs index 680893eb95b..a3a18a5509a 100644 --- a/src/libcore/iter-trait/option.rs +++ b/src/libcore/iter-trait/option.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + mod inst { #[allow(non_camel_case_types)] pub type IMPL_T = Option; diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 37491ae0b71..4b35417f23b 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The iteration traits and common implementation diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs index 03ff6ac0be9..64f63663098 100644 --- a/src/libcore/libc.rs +++ b/src/libcore/libc.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/logging.rs b/src/libcore/logging.rs index 958d1ac56ea..d8bcab62b8f 100644 --- a/src/libcore/logging.rs +++ b/src/libcore/logging.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Logging // NB: transitionary, de-mode-ing. diff --git a/src/libcore/mutable.rs b/src/libcore/mutable.rs index eafdf58e67e..ccefda41fda 100644 --- a/src/libcore/mutable.rs +++ b/src/libcore/mutable.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Module for wrapping freezable data structures in managed boxes. diff --git a/src/libcore/num.rs b/src/libcore/num.rs index d84f97c9639..bc36c3c2fff 100644 --- a/src/libcore/num.rs +++ b/src/libcore/num.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! An interface for numeric types pub trait Num { diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 9180d50a8f6..02827a73165 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Core operators #[forbid(deprecated_mode)]; diff --git a/src/libcore/option.rs b/src/libcore/option.rs index e5fcc7e83eb..1da3f1b5dd6 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Operations on the ubiquitous `Option` type. diff --git a/src/libcore/os.rs b/src/libcore/os.rs index 80a9d685f0e..ea97b3ce026 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/owned.rs b/src/libcore/owned.rs index a8a6b5d30d0..2f369e18fd1 100644 --- a/src/libcore/owned.rs +++ b/src/libcore/owned.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations on unique pointer types // NB: transitionary, de-mode-ing. diff --git a/src/libcore/path.rs b/src/libcore/path.rs index a9a99565cf1..afff41e53db 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Cross-platform file path handling diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs index a06564a470e..10f69a9ecaf 100644 --- a/src/libcore/pipes.rs +++ b/src/libcore/pipes.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Runtime support for message passing with protocol enforcement. diff --git a/src/libcore/private.rs b/src/libcore/private.rs index bf640656267..2b6156b14c4 100644 --- a/src/libcore/private.rs +++ b/src/libcore/private.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. // tjc: Re-forbid deprecated modes once a snapshot fixes the // function problem diff --git a/src/libcore/rand.rs b/src/libcore/rand.rs index 786fed88de9..96caf062d27 100644 --- a/src/libcore/rand.rs +++ b/src/libcore/rand.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Random number generation // NB: transitional, de-mode-ing. diff --git a/src/libcore/reflect.rs b/src/libcore/reflect.rs index d9b18947779..12b02b1b8d2 100644 --- a/src/libcore/reflect.rs +++ b/src/libcore/reflect.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Runtime type reflection diff --git a/src/libcore/repr.rs b/src/libcore/repr.rs index 3bec87e0af6..d8f9c6d243f 100644 --- a/src/libcore/repr.rs +++ b/src/libcore/repr.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! More runtime type reflection diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 20d4bd81056..d575655f7a5 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! A type representing either success or failure // NB: transitionary, de-mode-ing. diff --git a/src/libcore/rt.rs b/src/libcore/rt.rs index 22a13db5245..f4e3463f0b7 100644 --- a/src/libcore/rt.rs +++ b/src/libcore/rt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[legacy_exports]; // NB: transitionary, de-mode-ing. diff --git a/src/libcore/run.rs b/src/libcore/run.rs index cb6a7f737f9..7afcb4f3c99 100644 --- a/src/libcore/run.rs +++ b/src/libcore/run.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs index 11de9ab1a7e..27b670fbf7f 100644 --- a/src/libcore/send_map.rs +++ b/src/libcore/send_map.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Sendable hash maps. Very much a work in progress. diff --git a/src/libcore/stackwalk.rs b/src/libcore/stackwalk.rs index a88a44701ce..1beb1a56efa 100644 --- a/src/libcore/stackwalk.rs +++ b/src/libcore/stackwalk.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[doc(hidden)]; // FIXME #3538 #[legacy_modes]; // tjc: remove after snapshot diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs index 32a6987a672..7d5d644719f 100644 --- a/src/libcore/sys.rs +++ b/src/libcore/sys.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Misc low level stuff // NB: transitionary, de-mode-ing. diff --git a/src/libcore/task/local_data.rs b/src/libcore/task/local_data.rs index 99101189315..cc0353a354b 100644 --- a/src/libcore/task/local_data.rs +++ b/src/libcore/task/local_data.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Task local data management diff --git a/src/libcore/task/local_data_priv.rs b/src/libcore/task/local_data_priv.rs index b8537373e65..494801d88ea 100644 --- a/src/libcore/task/local_data_priv.rs +++ b/src/libcore/task/local_data_priv.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[doc(hidden)]; // FIXME #3538 use local_data::LocalDataKey; diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 8497ac7e565..bd8ddda9e7f 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. // tjc: Deprecated modes allowed because of function arg issue // in task::spawn. Re-forbid after snapshot. diff --git a/src/libcore/task/rt.rs b/src/libcore/task/rt.rs index db3d1ec9f70..be66e9e26b8 100644 --- a/src/libcore/task/rt.rs +++ b/src/libcore/task/rt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The task interface to the runtime diff --git a/src/libcore/task/spawn.rs b/src/libcore/task/spawn.rs index b4bea442e69..05f775d08d4 100644 --- a/src/libcore/task/spawn.rs +++ b/src/libcore/task/spawn.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*!************************************************************************** * Spawning & linked failure * diff --git a/src/libcore/to_bytes.rs b/src/libcore/to_bytes.rs index 0d409e70495..b0e445c1b19 100644 --- a/src/libcore/to_bytes.rs +++ b/src/libcore/to_bytes.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The `ToBytes` and `IterBytes` traits diff --git a/src/libcore/to_str.rs b/src/libcore/to_str.rs index fb0608906a1..7f9aa28e364 100644 --- a/src/libcore/to_str.rs +++ b/src/libcore/to_str.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The `ToStr` trait for converting to strings diff --git a/src/libcore/tuple.rs b/src/libcore/tuple.rs index 5f6881b8f14..5ab013223c6 100644 --- a/src/libcore/tuple.rs +++ b/src/libcore/tuple.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index 9c191e7dadf..17f76619583 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; diff --git a/src/libcore/uint-template/u16.rs b/src/libcore/uint-template/u16.rs index fe465aa1c6f..c4c299a4b79 100644 --- a/src/libcore/uint-template/u16.rs +++ b/src/libcore/uint-template/u16.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `u16` mod inst { diff --git a/src/libcore/uint-template/u32.rs b/src/libcore/uint-template/u32.rs index 7ec576d3500..6979bb7b5cc 100644 --- a/src/libcore/uint-template/u32.rs +++ b/src/libcore/uint-template/u32.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `u32` mod inst { diff --git a/src/libcore/uint-template/u64.rs b/src/libcore/uint-template/u64.rs index 860d60b3830..14860148798 100644 --- a/src/libcore/uint-template/u64.rs +++ b/src/libcore/uint-template/u64.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `u64` mod inst { diff --git a/src/libcore/uint-template/u8.rs b/src/libcore/uint-template/u8.rs index 2ee9af9882d..81635bf1e7f 100644 --- a/src/libcore/uint-template/u8.rs +++ b/src/libcore/uint-template/u8.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `u8` pub use inst::is_ascii; diff --git a/src/libcore/uint-template/uint.rs b/src/libcore/uint-template/uint.rs index 1c635db2f54..718d7956b31 100644 --- a/src/libcore/uint-template/uint.rs +++ b/src/libcore/uint-template/uint.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Operations and constants for `uint` pub use inst::{ diff --git a/src/libcore/unicode.rs b/src/libcore/unicode.rs index 9341ef7cef4..8f808fca52e 100644 --- a/src/libcore/unicode.rs +++ b/src/libcore/unicode.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[doc(hidden)]; // FIXME #3538 // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; diff --git a/src/libcore/unit.rs b/src/libcore/unit.rs index dc7379212ba..5e306d4b57d 100644 --- a/src/libcore/unit.rs +++ b/src/libcore/unit.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Functions for the unit type. diff --git a/src/libcore/util.rs b/src/libcore/util.rs index 9e20653f4da..7dbc9f76f7a 100644 --- a/src/libcore/util.rs +++ b/src/libcore/util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Miscellaneous helpers for common patterns. diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 976bcbf394b..fc6bd8f1d91 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Vectors #[forbid(deprecated_mode)]; diff --git a/src/libfuzzer/ast_match.rs b/src/libfuzzer/ast_match.rs index 611402476f9..417141fd865 100644 --- a/src/libfuzzer/ast_match.rs +++ b/src/libfuzzer/ast_match.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std; use vec; diff --git a/src/libfuzzer/cycles.rs b/src/libfuzzer/cycles.rs index ec263ead954..5824fac8287 100644 --- a/src/libfuzzer/cycles.rs +++ b/src/libfuzzer/cycles.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std; use std::rand; use uint::range; diff --git a/src/libfuzzer/fuzzer.rc b/src/libfuzzer/fuzzer.rc index d8f4fd97c66..66ef622fcd8 100644 --- a/src/libfuzzer/fuzzer.rc +++ b/src/libfuzzer/fuzzer.rc @@ -1,4 +1,14 @@ // -*- rust -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[link(name = "fuzzer", vers = "0.5", diff --git a/src/libfuzzer/ivec_fuzz.rs b/src/libfuzzer/ivec_fuzz.rs index f6133b8f954..eadc706fe13 100644 --- a/src/libfuzzer/ivec_fuzz.rs +++ b/src/libfuzzer/ivec_fuzz.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* Idea: provide functions for 'exhaustive' and 'random' modification of vecs. diff --git a/src/libfuzzer/rand_util.rs b/src/libfuzzer/rand_util.rs index 6745805e2d8..d16a7d0f17f 100644 --- a/src/libfuzzer/rand_util.rs +++ b/src/libfuzzer/rand_util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + extern mod std; use std::rand; diff --git a/src/librustc/back/abi.rs b/src/librustc/back/abi.rs index 7c35e3d892d..055b16c9b8c 100644 --- a/src/librustc/back/abi.rs +++ b/src/librustc/back/abi.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs index 2914eec6165..f4ac2dee300 100644 --- a/src/librustc/back/link.rs +++ b/src/librustc/back/link.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use libc::{c_int, c_uint, c_char}; use driver::session; use session::Session; diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs index 8038d7bb6dd..c12458c3f28 100644 --- a/src/librustc/back/rpath.rs +++ b/src/librustc/back/rpath.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map; use std::map::HashMap; use metadata::cstore; diff --git a/src/librustc/back/target_strs.rs b/src/librustc/back/target_strs.rs index 798c4868a7c..709375dc62f 100644 --- a/src/librustc/back/target_strs.rs +++ b/src/librustc/back/target_strs.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + type t = { module_asm: ~str, meta_sect_name: ~str, diff --git a/src/librustc/back/upcall.rs b/src/librustc/back/upcall.rs index 4b823680f14..1d992683faa 100644 --- a/src/librustc/back/upcall.rs +++ b/src/librustc/back/upcall.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session; use middle::trans::base; diff --git a/src/librustc/back/x86.rs b/src/librustc/back/x86.rs index 8d4b50f9ac4..5d8109b9c08 100644 --- a/src/librustc/back/x86.rs +++ b/src/librustc/back/x86.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session; use session::sess_os_to_meta_os; use metadata::loader::meta_section_name; diff --git a/src/librustc/back/x86_64.rs b/src/librustc/back/x86_64.rs index ec2f5b18490..ffc598c3a07 100644 --- a/src/librustc/back/x86_64.rs +++ b/src/librustc/back/x86_64.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session; use session::sess_os_to_meta_os; use metadata::loader::meta_section_name; diff --git a/src/librustc/driver/driver.rs b/src/librustc/driver/driver.rs index ba6b34ac5e6..6ce9934b729 100644 --- a/src/librustc/driver/driver.rs +++ b/src/librustc/driver/driver.rs @@ -1,4 +1,14 @@ // -*- rust -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use metadata::{creader, cstore, filesearch}; use session::{Session, Session_, OptLevel, No, Less, Default, Aggressive}; use syntax::parse; diff --git a/src/librustc/driver/mod.rs b/src/librustc/driver/mod.rs index a9d5afeb522..3e87f835fc3 100644 --- a/src/librustc/driver/mod.rs +++ b/src/librustc/driver/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[legacy_exports]; use syntax::diagnostic; diff --git a/src/librustc/driver/session.rs b/src/librustc/driver/session.rs index 7614bdbb25b..e85afca2000 100644 --- a/src/librustc/driver/session.rs +++ b/src/librustc/driver/session.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::{ast, codemap}; use syntax::ast::node_id; diff --git a/src/librustc/front/config.rs b/src/librustc/front/config.rs index df44083361e..22054b6a8d2 100644 --- a/src/librustc/front/config.rs +++ b/src/librustc/front/config.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::{ast, fold, attr}; export strip_unconfigured_items; diff --git a/src/librustc/front/core_inject.rs b/src/librustc/front/core_inject.rs index 7668d317d81..0d01bdbd336 100644 --- a/src/librustc/front/core_inject.rs +++ b/src/librustc/front/core_inject.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session::Session; use syntax::codemap; use syntax::ast; diff --git a/src/librustc/front/intrinsic.rs b/src/librustc/front/intrinsic.rs index 9a9229ebaef..8a65ac6894b 100644 --- a/src/librustc/front/intrinsic.rs +++ b/src/librustc/front/intrinsic.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: this file is include_str!'ed into the compiler, re-parsed // and injected into each crate the compiler builds. Keep it small. diff --git a/src/librustc/front/intrinsic_inject.rs b/src/librustc/front/intrinsic_inject.rs index ac74bac3f2f..ce918747c3f 100644 --- a/src/librustc/front/intrinsic_inject.rs +++ b/src/librustc/front/intrinsic_inject.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session::Session; use syntax::parse; use syntax::ast; diff --git a/src/librustc/front/test.rs b/src/librustc/front/test.rs index 21fb1d49b3a..27e9e35b7ec 100644 --- a/src/librustc/front/test.rs +++ b/src/librustc/front/test.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Code that generates a test runner to run all the tests in a crate use syntax::{ast, ast_util}; diff --git a/src/librustc/lib/llvm.rs b/src/librustc/lib/llvm.rs index ea86db77c3f..2fdc15b330b 100644 --- a/src/librustc/lib/llvm.rs +++ b/src/librustc/lib/llvm.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use libc::{c_char, c_int, c_uint, c_longlong, c_ulonglong}; diff --git a/src/librustc/metadata/common.rs b/src/librustc/metadata/common.rs index 06f1dfdab1a..48c621ea7d3 100644 --- a/src/librustc/metadata/common.rs +++ b/src/librustc/metadata/common.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // EBML enum definitions and utils shared by the encoder and decoder const tag_items: uint = 0x02u; diff --git a/src/librustc/metadata/creader.rs b/src/librustc/metadata/creader.rs index f6040ef8d29..5a1b49b1a4c 100644 --- a/src/librustc/metadata/creader.rs +++ b/src/librustc/metadata/creader.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Validates all used crates and extern libraries and loads their metadata use syntax::diagnostic::span_handler; diff --git a/src/librustc/metadata/csearch.rs b/src/librustc/metadata/csearch.rs index d6c74ae33f4..cab42d83844 100644 --- a/src/librustc/metadata/csearch.rs +++ b/src/librustc/metadata/csearch.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Searching for information from the cstore use std::ebml; diff --git a/src/librustc/metadata/cstore.rs b/src/librustc/metadata/cstore.rs index 911d0080449..4f5046e4008 100644 --- a/src/librustc/metadata/cstore.rs +++ b/src/librustc/metadata/cstore.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // The crate store - a central repo for information collected about external // crates and libraries diff --git a/src/librustc/metadata/decoder.rs b/src/librustc/metadata/decoder.rs index 0df86fac044..07636481de2 100644 --- a/src/librustc/metadata/decoder.rs +++ b/src/librustc/metadata/decoder.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Decoding metadata from a single crate's metadata use std::ebml; diff --git a/src/librustc/metadata/encoder.rs b/src/librustc/metadata/encoder.rs index 61a1615185e..f9d485cf83d 100644 --- a/src/librustc/metadata/encoder.rs +++ b/src/librustc/metadata/encoder.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Metadata encoding use util::ppaux::ty_to_str; diff --git a/src/librustc/metadata/filesearch.rs b/src/librustc/metadata/filesearch.rs index b2d20ce56e8..5d03bbf4f6f 100644 --- a/src/librustc/metadata/filesearch.rs +++ b/src/librustc/metadata/filesearch.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // A module for searching for libraries // FIXME (#2658): I'm not happy how this module turned out. Should // probably just be folded into cstore. diff --git a/src/librustc/metadata/loader.rs b/src/librustc/metadata/loader.rs index 61b8bcf9067..512bf454750 100644 --- a/src/librustc/metadata/loader.rs +++ b/src/librustc/metadata/loader.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Finds crate binaries and loads their metadata use syntax::diagnostic::span_handler; diff --git a/src/librustc/metadata/mod.rs b/src/librustc/metadata/mod.rs index dfe983cc32b..43790002136 100644 --- a/src/librustc/metadata/mod.rs +++ b/src/librustc/metadata/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[legacy_exports]; export encoder; export creader; diff --git a/src/librustc/metadata/tydecode.rs b/src/librustc/metadata/tydecode.rs index 51c56cb8a64..ab84ae6e061 100644 --- a/src/librustc/metadata/tydecode.rs +++ b/src/librustc/metadata/tydecode.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Type decoding // tjc note: Would be great to have a `match check` macro equivalent diff --git a/src/librustc/metadata/tyencode.rs b/src/librustc/metadata/tyencode.rs index 7b5571851a5..9dbdf9fe493 100644 --- a/src/librustc/metadata/tyencode.rs +++ b/src/librustc/metadata/tyencode.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Type encoding use io::WriterUtil; diff --git a/src/librustc/middle/astencode.rs b/src/librustc/middle/astencode.rs index 34d20e54828..49d3fdab437 100644 --- a/src/librustc/middle/astencode.rs +++ b/src/librustc/middle/astencode.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use util::ppaux::ty_to_str; use syntax::ast; diff --git a/src/librustc/middle/borrowck/check_loans.rs b/src/librustc/middle/borrowck/check_loans.rs index 7cf5ad32b3c..1a7c78dce14 100644 --- a/src/librustc/middle/borrowck/check_loans.rs +++ b/src/librustc/middle/borrowck/check_loans.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ---------------------------------------------------------------------- // Checking loans // diff --git a/src/librustc/middle/borrowck/gather_loans.rs b/src/librustc/middle/borrowck/gather_loans.rs index c0f9cb3d5e2..5383db78aec 100644 --- a/src/librustc/middle/borrowck/gather_loans.rs +++ b/src/librustc/middle/borrowck/gather_loans.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ---------------------------------------------------------------------- // Gathering loans // diff --git a/src/librustc/middle/borrowck/loan.rs b/src/librustc/middle/borrowck/loan.rs index b3023497220..649c3e0eefe 100644 --- a/src/librustc/middle/borrowck/loan.rs +++ b/src/librustc/middle/borrowck/loan.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ---------------------------------------------------------------------- // Loan(Ex, M, S) = Ls holds if ToAddr(Ex) will remain valid for the entirety // of the scope S, presuming that the returned set of loans `Ls` are honored. diff --git a/src/librustc/middle/borrowck/mod.rs b/src/librustc/middle/borrowck/mod.rs index 880e8f40483..de7b7c37c3d 100644 --- a/src/librustc/middle/borrowck/mod.rs +++ b/src/librustc/middle/borrowck/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! # Borrow check diff --git a/src/librustc/middle/borrowck/preserve.rs b/src/librustc/middle/borrowck/preserve.rs index c27ceca055f..a8201cc9d11 100644 --- a/src/librustc/middle/borrowck/preserve.rs +++ b/src/librustc/middle/borrowck/preserve.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ---------------------------------------------------------------------- // Preserve(Ex, S) holds if ToAddr(Ex) will remain valid for the entirety of // the scope S. diff --git a/src/librustc/middle/capture.rs b/src/librustc/middle/capture.rs index dae17f66d15..bce59a087e9 100644 --- a/src/librustc/middle/capture.rs +++ b/src/librustc/middle/capture.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::{ast, ast_util}; use syntax::codemap::span; use std::map; diff --git a/src/librustc/middle/check_alt.rs b/src/librustc/middle/check_alt.rs index e7716ad984e..7ec20dddffe 100644 --- a/src/librustc/middle/check_alt.rs +++ b/src/librustc/middle/check_alt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::ast::*; use syntax::ast_util::{variant_def_ids, dummy_sp, unguarded_pat}; use const_eval::{eval_const_expr, const_val, const_int, const_bool, diff --git a/src/librustc/middle/check_const.rs b/src/librustc/middle/check_const.rs index 77197a1db0d..2b7516a3a67 100644 --- a/src/librustc/middle/check_const.rs +++ b/src/librustc/middle/check_const.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::ast::*; use syntax::{visit, ast_util, ast_map}; use driver::session::Session; diff --git a/src/librustc/middle/check_loop.rs b/src/librustc/middle/check_loop.rs index 6372c2c53af..433b1f81099 100644 --- a/src/librustc/middle/check_loop.rs +++ b/src/librustc/middle/check_loop.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::ast::*; use syntax::visit; diff --git a/src/librustc/middle/const_eval.rs b/src/librustc/middle/const_eval.rs index ef1a5ff3caa..389412b2413 100644 --- a/src/librustc/middle/const_eval.rs +++ b/src/librustc/middle/const_eval.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::{ast,ast_map,ast_util,visit}; use ast::*; diff --git a/src/librustc/middle/freevars.rs b/src/librustc/middle/freevars.rs index 86f2748e4c4..cfebe7c06e9 100644 --- a/src/librustc/middle/freevars.rs +++ b/src/librustc/middle/freevars.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // A pass that annotates for each loops and functions with the free // variables that they contain. diff --git a/src/librustc/middle/kind.rs b/src/librustc/middle/kind.rs index 8b1f68a375b..5c6c99d7a1c 100644 --- a/src/librustc/middle/kind.rs +++ b/src/librustc/middle/kind.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::{visit, ast_util}; use syntax::ast::*; use syntax::codemap::span; diff --git a/src/librustc/middle/lang_items.rs b/src/librustc/middle/lang_items.rs index b1d68bee259..0a00ad88a60 100644 --- a/src/librustc/middle/lang_items.rs +++ b/src/librustc/middle/lang_items.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Detecting language items. // // Language items are items that represent concepts intrinsic to the language diff --git a/src/librustc/middle/lint.rs b/src/librustc/middle/lint.rs index 3691f62cc0d..ef67cb69ede 100644 --- a/src/librustc/middle/lint.rs +++ b/src/librustc/middle/lint.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session; use driver::session::Session; use middle::ty; diff --git a/src/librustc/middle/liveness.rs b/src/librustc/middle/liveness.rs index 985f62e86a6..5ed06c2aab3 100644 --- a/src/librustc/middle/liveness.rs +++ b/src/librustc/middle/liveness.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * A classic liveness analysis based on dataflow over the AST. Computes, * for each local variable in a function, whether that variable is live diff --git a/src/librustc/middle/mem_categorization.rs b/src/librustc/middle/mem_categorization.rs index e42d18a06c9..c38778d5dff 100644 --- a/src/librustc/middle/mem_categorization.rs +++ b/src/librustc/middle/mem_categorization.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * # Categorization * diff --git a/src/librustc/middle/pat_util.rs b/src/librustc/middle/pat_util.rs index a9b2864e642..8ef743b71a6 100644 --- a/src/librustc/middle/pat_util.rs +++ b/src/librustc/middle/pat_util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::ast::*; use syntax::ast_util; use syntax::ast_util::{path_to_ident, respan, walk_pat}; diff --git a/src/librustc/middle/privacy.rs b/src/librustc/middle/privacy.rs index cebf7e9b58c..6ba46a71d4e 100644 --- a/src/librustc/middle/privacy.rs +++ b/src/librustc/middle/privacy.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // A pass that checks to make sure private fields and methods aren't used // outside their scopes. diff --git a/src/librustc/middle/region.rs b/src/librustc/middle/region.rs index 06011d928fd..658c19b6ac8 100644 --- a/src/librustc/middle/region.rs +++ b/src/librustc/middle/region.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! This file actually contains two passes related to regions. The first diff --git a/src/librustc/middle/resolve.rs b/src/librustc/middle/resolve.rs index 56515b548cf..547cad2e05d 100644 --- a/src/librustc/middle/resolve.rs +++ b/src/librustc/middle/resolve.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use driver::session::Session; use metadata::csearch::{each_path, get_method_names_if_trait}; use metadata::csearch::{get_static_methods_if_impl, get_type_name_if_impl}; diff --git a/src/librustc/middle/trans/alt.rs b/src/librustc/middle/trans/alt.rs index 03501521129..bc26338a624 100644 --- a/src/librustc/middle/trans/alt.rs +++ b/src/librustc/middle/trans/alt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * * # Compilation of match statements diff --git a/src/librustc/middle/trans/base.rs b/src/librustc/middle/trans/base.rs index 83877b7117c..7114fb9fb23 100644 --- a/src/librustc/middle/trans/base.rs +++ b/src/librustc/middle/trans/base.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // trans.rs: Translate the completed AST to the LLVM IR. // // Some functions here, such as trans_block and trans_expr, return a value -- diff --git a/src/librustc/middle/trans/build.rs b/src/librustc/middle/trans/build.rs index f9809905174..acb7fac19f8 100644 --- a/src/librustc/middle/trans/build.rs +++ b/src/librustc/middle/trans/build.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use libc::{c_uint, c_int}; use lib::llvm::llvm; diff --git a/src/librustc/middle/trans/callee.rs b/src/librustc/middle/trans/callee.rs index b3b4238034a..be6529f2a5f 100644 --- a/src/librustc/middle/trans/callee.rs +++ b/src/librustc/middle/trans/callee.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! // // Handles translation of callees as well as other call-related diff --git a/src/librustc/middle/trans/closure.rs b/src/librustc/middle/trans/closure.rs index 5c97739b136..03b46f94a3a 100644 --- a/src/librustc/middle/trans/closure.rs +++ b/src/librustc/middle/trans/closure.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use libc::c_uint; use syntax::ast; use syntax::ast_util; diff --git a/src/librustc/middle/trans/common.rs b/src/librustc/middle/trans/common.rs index 450ab0495c6..25a0f5aa80c 100644 --- a/src/librustc/middle/trans/common.rs +++ b/src/librustc/middle/trans/common.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /** Code that is useful in various trans modules. diff --git a/src/librustc/middle/trans/consts.rs b/src/librustc/middle/trans/consts.rs index 9291c4ba3ee..36c85439ff5 100644 --- a/src/librustc/middle/trans/consts.rs +++ b/src/librustc/middle/trans/consts.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use common::*; use syntax::{ast, ast_util, codemap, ast_map}; use base::get_insn_ctxt; diff --git a/src/librustc/middle/trans/controlflow.rs b/src/librustc/middle/trans/controlflow.rs index 0c09b02bb07..346fb6a34ff 100644 --- a/src/librustc/middle/trans/controlflow.rs +++ b/src/librustc/middle/trans/controlflow.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use lib::llvm::ValueRef; use common::*; use datum::*; diff --git a/src/librustc/middle/trans/datum.rs b/src/librustc/middle/trans/datum.rs index e18b5e03446..fb597cab89a 100644 --- a/src/librustc/middle/trans/datum.rs +++ b/src/librustc/middle/trans/datum.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * * A `Datum` contains all the information you need to describe the LLVM diff --git a/src/librustc/middle/trans/debuginfo.rs b/src/librustc/middle/trans/debuginfo.rs index f2bae5a8bc8..e201493ca2b 100644 --- a/src/librustc/middle/trans/debuginfo.rs +++ b/src/librustc/middle/trans/debuginfo.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map; use std::map::HashMap; use lib::llvm::llvm; diff --git a/src/librustc/middle/trans/deriving.rs b/src/librustc/middle/trans/deriving.rs index 8fc81101faf..785e3451d75 100644 --- a/src/librustc/middle/trans/deriving.rs +++ b/src/librustc/middle/trans/deriving.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Translation of automatically-derived trait implementations. This handles // enums and structs only; other types cannot be automatically derived. diff --git a/src/librustc/middle/trans/expr.rs b/src/librustc/middle/trans/expr.rs index 2cd68bd0d23..5ca72f58a6f 100644 --- a/src/librustc/middle/trans/expr.rs +++ b/src/librustc/middle/trans/expr.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! # Translation of expressions. diff --git a/src/librustc/middle/trans/foreign.rs b/src/librustc/middle/trans/foreign.rs index 6ff11b09146..3180b595f9c 100644 --- a/src/librustc/middle/trans/foreign.rs +++ b/src/librustc/middle/trans/foreign.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // The classification code for the x86_64 ABI is taken from the clay language // https://github.com/jckarter/clay/blob/master/compiler/src/externals.cpp diff --git a/src/librustc/middle/trans/glue.rs b/src/librustc/middle/trans/glue.rs index e21c2056db4..322048e45e3 100644 --- a/src/librustc/middle/trans/glue.rs +++ b/src/librustc/middle/trans/glue.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! // // Code relating to taking, dropping, etc as well as type descriptors. diff --git a/src/librustc/middle/trans/inline.rs b/src/librustc/middle/trans/inline.rs index 2ad6ad4d8c4..1cbae2eac7e 100644 --- a/src/librustc/middle/trans/inline.rs +++ b/src/librustc/middle/trans/inline.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use common::*; use syntax::ast; use syntax::ast_util::local_def; diff --git a/src/librustc/middle/trans/machine.rs b/src/librustc/middle/trans/machine.rs index 6f6a5c52ecd..e77e7d5fb4a 100644 --- a/src/librustc/middle/trans/machine.rs +++ b/src/librustc/middle/trans/machine.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Information concerning the machine representation of various types. use middle::trans::common::*; diff --git a/src/librustc/middle/trans/macros.rs b/src/librustc/middle/trans/macros.rs index 6a813b7c1b2..99175e09af5 100644 --- a/src/librustc/middle/trans/macros.rs +++ b/src/librustc/middle/trans/macros.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + { macro_rules! unpack_datum( diff --git a/src/librustc/middle/trans/meth.rs b/src/librustc/middle/trans/meth.rs index c8776741c79..b77f2b5b874 100644 --- a/src/librustc/middle/trans/meth.rs +++ b/src/librustc/middle/trans/meth.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use libc::c_uint; use base::*; use common::*; diff --git a/src/librustc/middle/trans/monomorphize.rs b/src/librustc/middle/trans/monomorphize.rs index a05c42ee3fe..5ecd33c9083 100644 --- a/src/librustc/middle/trans/monomorphize.rs +++ b/src/librustc/middle/trans/monomorphize.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use common::*; use syntax::ast; use syntax::ast_util::local_def; diff --git a/src/librustc/middle/trans/reachable.rs b/src/librustc/middle/trans/reachable.rs index a3df1c630f5..d2208ccb859 100644 --- a/src/librustc/middle/trans/reachable.rs +++ b/src/librustc/middle/trans/reachable.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Finds items that are externally reachable, to determine which items // need to have their metadata (and possibly their AST) serialized. // All items that can be referred to through an exported name are diff --git a/src/librustc/middle/trans/reflect.rs b/src/librustc/middle/trans/reflect.rs index 02423d27ac1..468b268d885 100644 --- a/src/librustc/middle/trans/reflect.rs +++ b/src/librustc/middle/trans/reflect.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use lib::llvm::{TypeRef, ValueRef}; use syntax::ast; diff --git a/src/librustc/middle/trans/shape.rs b/src/librustc/middle/trans/shape.rs index 127af438807..a95e25d625f 100644 --- a/src/librustc/middle/trans/shape.rs +++ b/src/librustc/middle/trans/shape.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // A "shape" is a compact encoding of a type that is used by interpreted glue. // This substitutes for the runtime tags used by e.g. MLs. diff --git a/src/librustc/middle/trans/tvec.rs b/src/librustc/middle/trans/tvec.rs index 76b9869be98..0504ce6d569 100644 --- a/src/librustc/middle/trans/tvec.rs +++ b/src/librustc/middle/trans/tvec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::ast; use lib::llvm::{ValueRef, TypeRef}; use back::abi; diff --git a/src/librustc/middle/trans/type_of.rs b/src/librustc/middle/trans/type_of.rs index 9251b315684..777299d9e84 100644 --- a/src/librustc/middle/trans/type_of.rs +++ b/src/librustc/middle/trans/type_of.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use common::*; use lib::llvm::{TypeRef}; use syntax::ast; diff --git a/src/librustc/middle/trans/type_use.rs b/src/librustc/middle/trans/type_use.rs index 93c79e24ce8..7dd1fe833bd 100644 --- a/src/librustc/middle/trans/type_use.rs +++ b/src/librustc/middle/trans/type_use.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Determines the ways in which a generic function body depends // on its type parameters. Used to aggressively reuse compiled // function bodies for different types. diff --git a/src/librustc/middle/trans/uniq.rs b/src/librustc/middle/trans/uniq.rs index 50ea363ace2..6a1fe50776d 100644 --- a/src/librustc/middle/trans/uniq.rs +++ b/src/librustc/middle/trans/uniq.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::ast; use lib::llvm::ValueRef; use common::*; diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 534f70ebed4..86d8ab68128 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[warn(deprecated_pattern)]; use std::{map, smallintmap}; diff --git a/src/librustc/middle/typeck/astconv.rs b/src/librustc/middle/typeck/astconv.rs index 4d0fdcdca40..91e92810d25 100644 --- a/src/librustc/middle/typeck/astconv.rs +++ b/src/librustc/middle/typeck/astconv.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * Conversion from AST representation of types to the ty.rs * representation. The main routine here is `ast_ty_to_ty()`: each use diff --git a/src/librustc/middle/typeck/check/alt.rs b/src/librustc/middle/typeck/check/alt.rs index 6131fb53124..cc47049d675 100644 --- a/src/librustc/middle/typeck/check/alt.rs +++ b/src/librustc/middle/typeck/check/alt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use syntax::print::pprust; use syntax::ast_util::{walk_pat}; use pat_util::{pat_is_binding, pat_is_const, pat_is_variant_or_struct}; diff --git a/src/librustc/middle/typeck/check/demand.rs b/src/librustc/middle/typeck/check/demand.rs index 3ae59910fe4..ee34ce64612 100644 --- a/src/librustc/middle/typeck/check/demand.rs +++ b/src/librustc/middle/typeck/check/demand.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use check::fn_ctxt; // Requires that the two types unify, and prints an error message if they diff --git a/src/librustc/middle/typeck/check/method.rs b/src/librustc/middle/typeck/check/method.rs index 43292f20e79..7930f215317 100644 --- a/src/librustc/middle/typeck/check/method.rs +++ b/src/librustc/middle/typeck/check/method.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! # Method lookup diff --git a/src/librustc/middle/typeck/check/mod.rs b/src/librustc/middle/typeck/check/mod.rs index 2081a9ef017..bfeb8a50094 100644 --- a/src/librustc/middle/typeck/check/mod.rs +++ b/src/librustc/middle/typeck/check/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* # check.rs diff --git a/src/librustc/middle/typeck/check/regionck.rs b/src/librustc/middle/typeck/check/regionck.rs index f45bef2eb5f..0f4511218ec 100644 --- a/src/librustc/middle/typeck/check/regionck.rs +++ b/src/librustc/middle/typeck/check/regionck.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* The region check is a final pass that runs over the AST after we have diff --git a/src/librustc/middle/typeck/check/regionmanip.rs b/src/librustc/middle/typeck/check/regionmanip.rs index d163dd4b3cf..4392864bd35 100644 --- a/src/librustc/middle/typeck/check/regionmanip.rs +++ b/src/librustc/middle/typeck/check/regionmanip.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // #[warn(deprecated_mode)]; // #[warn(deprecated_pattern)]; diff --git a/src/librustc/middle/typeck/check/vtable.rs b/src/librustc/middle/typeck/check/vtable.rs index 7087b7c5b79..b05bc5162db 100644 --- a/src/librustc/middle/typeck/check/vtable.rs +++ b/src/librustc/middle/typeck/check/vtable.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use check::{fn_ctxt, impl_self_ty}; use infer::{infer_ctxt, resolve_type, resolve_and_force_all_but_regions, fixup_err_to_str}; diff --git a/src/librustc/middle/typeck/check/writeback.rs b/src/librustc/middle/typeck/check/writeback.rs index ba2c9416f56..76519e81b84 100644 --- a/src/librustc/middle/typeck/check/writeback.rs +++ b/src/librustc/middle/typeck/check/writeback.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Type resolution: the phase that finds all the types in the AST with // unresolved type variables and replaces "ty_var" types with their // substitutions. diff --git a/src/librustc/middle/typeck/coherence.rs b/src/librustc/middle/typeck/coherence.rs index d441f11959d..708fda07037 100644 --- a/src/librustc/middle/typeck/coherence.rs +++ b/src/librustc/middle/typeck/coherence.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Coherence phase // // The job of the coherence phase of typechecking is to ensure that each trait diff --git a/src/librustc/middle/typeck/collect.rs b/src/librustc/middle/typeck/collect.rs index 9dda2da458a..00f6eada345 100644 --- a/src/librustc/middle/typeck/collect.rs +++ b/src/librustc/middle/typeck/collect.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* # Collect phase diff --git a/src/librustc/middle/typeck/deriving.rs b/src/librustc/middle/typeck/deriving.rs index 010ca242c7d..9a7f2315760 100644 --- a/src/librustc/middle/typeck/deriving.rs +++ b/src/librustc/middle/typeck/deriving.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Deriving phase // // The purpose of the deriving phase of typechecking is to ensure that, for diff --git a/src/librustc/middle/typeck/infer/assignment.rs b/src/librustc/middle/typeck/infer/assignment.rs index fc1db7930e9..748d6550de3 100644 --- a/src/librustc/middle/typeck/infer/assignment.rs +++ b/src/librustc/middle/typeck/infer/assignment.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ______________________________________________________________________ // Type assignment // diff --git a/src/librustc/middle/typeck/infer/combine.rs b/src/librustc/middle/typeck/infer/combine.rs index 10fc0db0f7b..55e5007cba0 100644 --- a/src/librustc/middle/typeck/infer/combine.rs +++ b/src/librustc/middle/typeck/infer/combine.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ______________________________________________________________________ // Type combining // diff --git a/src/librustc/middle/typeck/infer/floating.rs b/src/librustc/middle/typeck/infer/floating.rs index 1f215809053..48b49c9c59c 100644 --- a/src/librustc/middle/typeck/infer/floating.rs +++ b/src/librustc/middle/typeck/infer/floating.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Code related to floating-point type inference. diff --git a/src/librustc/middle/typeck/infer/glb.rs b/src/librustc/middle/typeck/infer/glb.rs index fb4bd1af199..4d00b5f7d3c 100644 --- a/src/librustc/middle/typeck/infer/glb.rs +++ b/src/librustc/middle/typeck/infer/glb.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use combine::*; use lattice::*; use to_str::ToStr; diff --git a/src/librustc/middle/typeck/infer/integral.rs b/src/librustc/middle/typeck/infer/integral.rs index 1b23cb52b20..40f0bb1ac3e 100644 --- a/src/librustc/middle/typeck/infer/integral.rs +++ b/src/librustc/middle/typeck/infer/integral.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Code related to integral type inference. diff --git a/src/librustc/middle/typeck/infer/lattice.rs b/src/librustc/middle/typeck/infer/lattice.rs index 699613e8ae6..fba0c565004 100644 --- a/src/librustc/middle/typeck/infer/lattice.rs +++ b/src/librustc/middle/typeck/infer/lattice.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use combine::*; use unify::*; use to_str::ToStr; diff --git a/src/librustc/middle/typeck/infer/lub.rs b/src/librustc/middle/typeck/infer/lub.rs index 80fcecb5d9e..563435d4600 100644 --- a/src/librustc/middle/typeck/infer/lub.rs +++ b/src/librustc/middle/typeck/infer/lub.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use combine::*; use lattice::*; use to_str::ToStr; diff --git a/src/librustc/middle/typeck/infer/macros.rs b/src/librustc/middle/typeck/infer/macros.rs index faac3d9ac55..616df1e72c5 100644 --- a/src/librustc/middle/typeck/infer/macros.rs +++ b/src/librustc/middle/typeck/infer/macros.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + { macro_rules! if_ok( diff --git a/src/librustc/middle/typeck/infer/mod.rs b/src/librustc/middle/typeck/infer/mod.rs index ec637635f95..2c5730d61ca 100644 --- a/src/librustc/middle/typeck/infer/mod.rs +++ b/src/librustc/middle/typeck/infer/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! # Type inference engine diff --git a/src/librustc/middle/typeck/infer/region_inference.rs b/src/librustc/middle/typeck/infer/region_inference.rs index a334977819b..01caac22f23 100644 --- a/src/librustc/middle/typeck/infer/region_inference.rs +++ b/src/librustc/middle/typeck/infer/region_inference.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Region inference module. diff --git a/src/librustc/middle/typeck/infer/resolve.rs b/src/librustc/middle/typeck/infer/resolve.rs index 956ab9998de..437d5ade6bd 100644 --- a/src/librustc/middle/typeck/infer/resolve.rs +++ b/src/librustc/middle/typeck/infer/resolve.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Resolution is the process of removing type variables and replacing // them with their inferred values. Unfortunately our inference has // become fairly complex and so there are a number of options to diff --git a/src/librustc/middle/typeck/infer/sub.rs b/src/librustc/middle/typeck/infer/sub.rs index 0bd53a3e800..d6a97e3d7f5 100644 --- a/src/librustc/middle/typeck/infer/sub.rs +++ b/src/librustc/middle/typeck/infer/sub.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use combine::*; use unify::*; use to_str::ToStr; diff --git a/src/librustc/middle/typeck/infer/test.rs b/src/librustc/middle/typeck/infer/test.rs index 6ffc509f6a8..2841b7e1c19 100644 --- a/src/librustc/middle/typeck/infer/test.rs +++ b/src/librustc/middle/typeck/infer/test.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /** # Standalone Tests for the Inference Module diff --git a/src/librustc/middle/typeck/infer/to_str.rs b/src/librustc/middle/typeck/infer/to_str.rs index 73eef376b1e..75024ca1a66 100644 --- a/src/librustc/middle/typeck/infer/to_str.rs +++ b/src/librustc/middle/typeck/infer/to_str.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use integral::{int_ty_set}; use floating::{float_ty_set}; use unify::{var_value, redirect, root}; diff --git a/src/librustc/middle/typeck/infer/unify.rs b/src/librustc/middle/typeck/infer/unify.rs index 88827849fa6..7a679c6c88f 100644 --- a/src/librustc/middle/typeck/infer/unify.rs +++ b/src/librustc/middle/typeck/infer/unify.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use combine::combine; use integral::*; use floating::*; diff --git a/src/librustc/middle/typeck/mod.rs b/src/librustc/middle/typeck/mod.rs index 93a8288fa23..9ca7c4f3a13 100644 --- a/src/librustc/middle/typeck/mod.rs +++ b/src/librustc/middle/typeck/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* typeck.rs, an introduction diff --git a/src/librustc/middle/typeck/rscope.rs b/src/librustc/middle/typeck/rscope.rs index d379607d6a8..5ae52252dc2 100644 --- a/src/librustc/middle/typeck/rscope.rs +++ b/src/librustc/middle/typeck/rscope.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use result::Result; use syntax::parse::token::special_idents; diff --git a/src/librustc/rustc.rc b/src/librustc/rustc.rc index 14af4bc443e..ff7e974ed9b 100644 --- a/src/librustc/rustc.rc +++ b/src/librustc/rustc.rc @@ -1,4 +1,14 @@ // -*- rust -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[link(name = "rustc", vers = "0.5", diff --git a/src/librustc/util/common.rs b/src/librustc/util/common.rs index 36a63e3a106..c1a88cae13c 100644 --- a/src/librustc/util/common.rs +++ b/src/librustc/util/common.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use syntax::ast; use syntax::codemap::{span}; diff --git a/src/librustc/util/ppaux.rs b/src/librustc/util/ppaux.rs index c0af9fd2ae8..8d465dfe71f 100644 --- a/src/librustc/util/ppaux.rs +++ b/src/librustc/util/ppaux.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use middle::ty; use middle::ty::{arg, canon_mode}; diff --git a/src/librustdoc/astsrv.rs b/src/librustdoc/astsrv.rs index 3e1c26f9f8e..a11943fbf4b 100644 --- a/src/librustdoc/astsrv.rs +++ b/src/librustdoc/astsrv.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Provides all access to AST-related, non-sendable info diff --git a/src/librustdoc/attr_parser.rs b/src/librustdoc/attr_parser.rs index 0dec45e02c5..87aee1e7f4b 100644 --- a/src/librustdoc/attr_parser.rs +++ b/src/librustdoc/attr_parser.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Attribute parsing diff --git a/src/librustdoc/attr_pass.rs b/src/librustdoc/attr_pass.rs index 31ebc38c73e..d8555b780b1 100644 --- a/src/librustdoc/attr_pass.rs +++ b/src/librustdoc/attr_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The attribute parsing pass diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index b722d7144fd..ec600860690 100644 --- a/src/librustdoc/config.rs +++ b/src/librustdoc/config.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use result::Result; use std::getopts; use std::cell::Cell; diff --git a/src/librustdoc/demo.rs b/src/librustdoc/demo.rs index 1223f6b9723..d7b50595580 100644 --- a/src/librustdoc/demo.rs +++ b/src/librustdoc/demo.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // no-reformat /*! diff --git a/src/librustdoc/desc_to_brief_pass.rs b/src/librustdoc/desc_to_brief_pass.rs index 62a83f6a520..99f69b53a3a 100644 --- a/src/librustdoc/desc_to_brief_pass.rs +++ b/src/librustdoc/desc_to_brief_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Pulls a brief description out of a long description. diff --git a/src/librustdoc/doc.rs b/src/librustdoc/doc.rs index 16fba7a9ffd..c7d52fb77d6 100644 --- a/src/librustdoc/doc.rs +++ b/src/librustdoc/doc.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! The document model pub type AstId = int; diff --git a/src/librustdoc/escape_pass.rs b/src/librustdoc/escape_pass.rs index ea2ed839632..9daf3347586 100644 --- a/src/librustdoc/escape_pass.rs +++ b/src/librustdoc/escape_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Escapes text sequences pub fn mk_pass() -> Pass { diff --git a/src/librustdoc/extract.rs b/src/librustdoc/extract.rs index 9111c6242c9..bdecd85e99e 100644 --- a/src/librustdoc/extract.rs +++ b/src/librustdoc/extract.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Converts the Rust AST to the rustdoc document model use syntax::ast; diff --git a/src/librustdoc/fold.rs b/src/librustdoc/fold.rs index 85e9aeb86f1..23f020d9254 100644 --- a/src/librustdoc/fold.rs +++ b/src/librustdoc/fold.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + pub enum Fold = Fold_; impl Fold: Clone { diff --git a/src/librustdoc/markdown_index_pass.rs b/src/librustdoc/markdown_index_pass.rs index 65f3a9f7d7f..8ed15fbad36 100644 --- a/src/librustdoc/markdown_index_pass.rs +++ b/src/librustdoc/markdown_index_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Build indexes as appropriate for the markdown pass use doc::ItemUtils; diff --git a/src/librustdoc/markdown_pass.rs b/src/librustdoc/markdown_pass.rs index 618e92bc046..193a824b550 100644 --- a/src/librustdoc/markdown_pass.rs +++ b/src/librustdoc/markdown_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Generate markdown from a document tree use doc::ItemUtils; diff --git a/src/librustdoc/markdown_writer.rs b/src/librustdoc/markdown_writer.rs index 4dfba8c29ba..e5e22c2d7fa 100644 --- a/src/librustdoc/markdown_writer.rs +++ b/src/librustdoc/markdown_writer.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use doc::ItemUtils; use io::ReaderUtil; use std::future; diff --git a/src/librustdoc/page_pass.rs b/src/librustdoc/page_pass.rs index 307c7c2cd19..07f4bd73cc0 100644 --- a/src/librustdoc/page_pass.rs +++ b/src/librustdoc/page_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Divides the document tree into pages. diff --git a/src/librustdoc/parse.rs b/src/librustdoc/parse.rs index 768f445de3b..7351f2f7b30 100644 --- a/src/librustdoc/parse.rs +++ b/src/librustdoc/parse.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! AST-parsing helpers use rustc::driver::driver; diff --git a/src/librustdoc/pass.rs b/src/librustdoc/pass.rs index 0a61c497528..0fbc61ad454 100644 --- a/src/librustdoc/pass.rs +++ b/src/librustdoc/pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /// A single operation on the document model pub type Pass = { name: ~str, diff --git a/src/librustdoc/path_pass.rs b/src/librustdoc/path_pass.rs index 41117949fa3..f93005f7d79 100644 --- a/src/librustdoc/path_pass.rs +++ b/src/librustdoc/path_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Records the full path to items use doc::ItemUtils; diff --git a/src/librustdoc/prune_hidden_pass.rs b/src/librustdoc/prune_hidden_pass.rs index f9348d881da..fde31baca57 100644 --- a/src/librustdoc/prune_hidden_pass.rs +++ b/src/librustdoc/prune_hidden_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Prunes things with the #[doc(hidden)] attribute use doc::ItemUtils; diff --git a/src/librustdoc/prune_private_pass.rs b/src/librustdoc/prune_private_pass.rs index 2d60132b561..8841deefb77 100644 --- a/src/librustdoc/prune_private_pass.rs +++ b/src/librustdoc/prune_private_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Prune things that are private #[legacy_exports]; diff --git a/src/librustdoc/rustdoc.rc b/src/librustdoc/rustdoc.rc index bfbf8b40f30..a2e0dc91b3f 100644 --- a/src/librustdoc/rustdoc.rc +++ b/src/librustdoc/rustdoc.rc @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Rustdoc - The Rust documentation generator #[link(name = "rustdoc", diff --git a/src/librustdoc/sectionalize_pass.rs b/src/librustdoc/sectionalize_pass.rs index 8bd761df533..bb11ba074a6 100644 --- a/src/librustdoc/sectionalize_pass.rs +++ b/src/librustdoc/sectionalize_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Breaks rustdocs into sections according to their headers use doc::ItemUtils; diff --git a/src/librustdoc/sort_item_name_pass.rs b/src/librustdoc/sort_item_name_pass.rs index 767468293bb..3ef4750b9ad 100644 --- a/src/librustdoc/sort_item_name_pass.rs +++ b/src/librustdoc/sort_item_name_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Sorts items by name use doc::ItemUtils; diff --git a/src/librustdoc/sort_item_type_pass.rs b/src/librustdoc/sort_item_type_pass.rs index 0bc6c1accdd..25fc11a4a2a 100644 --- a/src/librustdoc/sort_item_type_pass.rs +++ b/src/librustdoc/sort_item_type_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Sorts items by type use doc::ItemUtils; diff --git a/src/librustdoc/sort_pass.rs b/src/librustdoc/sort_pass.rs index 3fa7ff6d8a6..8418110c647 100644 --- a/src/librustdoc/sort_pass.rs +++ b/src/librustdoc/sort_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! A general sorting pass use doc::ItemUtils; diff --git a/src/librustdoc/text_pass.rs b/src/librustdoc/text_pass.rs index 6493caeebe6..3beaba840e1 100644 --- a/src/librustdoc/text_pass.rs +++ b/src/librustdoc/text_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Generic pass for performing an operation on all descriptions use doc::ItemUtils; diff --git a/src/librustdoc/trim_pass.rs b/src/librustdoc/trim_pass.rs index 58bf52f9a4a..e6696b74eae 100644 --- a/src/librustdoc/trim_pass.rs +++ b/src/librustdoc/trim_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Pulls a brief description out of a long description. diff --git a/src/librustdoc/tystr_pass.rs b/src/librustdoc/tystr_pass.rs index 4d0ef1aefe1..eace2db5ac1 100644 --- a/src/librustdoc/tystr_pass.rs +++ b/src/librustdoc/tystr_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Pulls type information out of the AST and attaches it to the document use doc::ItemUtils; diff --git a/src/librustdoc/unindent_pass.rs b/src/librustdoc/unindent_pass.rs index 8659b1a836b..a2a40238500 100644 --- a/src/librustdoc/unindent_pass.rs +++ b/src/librustdoc/unindent_pass.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Removes the common level of indention from description strings. For instance, if an entire doc comment is indented 8 spaces we want to diff --git a/src/librustdoc/util.rs b/src/librustdoc/util.rs index 7b07ef68267..7fdd3c80a98 100644 --- a/src/librustdoc/util.rs +++ b/src/librustdoc/util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Just a named container for our op, so it can have impls pub struct NominalOp { op: T diff --git a/src/librusti/rusti.rc b/src/librusti/rusti.rc index 923a36c01d2..a98c1bc9de1 100644 --- a/src/librusti/rusti.rc +++ b/src/librusti/rusti.rc @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // rusti - REPL using the JIT backend #[link(name = "rusti", diff --git a/src/librusti/wrapper.rs b/src/librusti/wrapper.rs index 1e98aa81369..aebc5e77c29 100644 --- a/src/librusti/wrapper.rs +++ b/src/librusti/wrapper.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[allow(ctypes)]; #[allow(heap_memory)]; #[allow(implicit_copies)]; diff --git a/src/libstd/arc.rs b/src/libstd/arc.rs index 3ced56e6f50..05acbeab9e5 100644 --- a/src/libstd/arc.rs +++ b/src/libstd/arc.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; /** diff --git a/src/libstd/arena.rs b/src/libstd/arena.rs index ea247d4bd3f..105e8fb122f 100644 --- a/src/libstd/arena.rs +++ b/src/libstd/arena.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Dynamic arenas. // Arenas are used to quickly allocate objects that share a diff --git a/src/libstd/base64.rs b/src/libstd/base64.rs index 5db71b12185..43f13b5b91f 100644 --- a/src/libstd/base64.rs +++ b/src/libstd/base64.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; use io::Reader; diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs index 3c1fc9ee6ce..e9ff56df30d 100644 --- a/src/libstd/bitv.rs +++ b/src/libstd/bitv.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; use vec::{to_mut, from_elem}; diff --git a/src/libstd/c_vec.rs b/src/libstd/c_vec.rs index 8777592eacc..cd1fa33a08f 100644 --- a/src/libstd/c_vec.rs +++ b/src/libstd/c_vec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * Library to interface with chunks of memory allocated in C. * diff --git a/src/libstd/cell.rs b/src/libstd/cell.rs index 78027aa8907..b972ef953e4 100644 --- a/src/libstd/cell.rs +++ b/src/libstd/cell.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; /// A dynamic, mutable location. /// diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs index 2ec0bf41675..28ee8c81e73 100644 --- a/src/libstd/cmp.rs +++ b/src/libstd/cmp.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; /// Additional general-purpose comparison functionality. diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs index e604b87b2af..f8b24389d3c 100644 --- a/src/libstd/comm.rs +++ b/src/libstd/comm.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Higher level communication abstractions. diff --git a/src/libstd/dbg.rs b/src/libstd/dbg.rs index f141a028e65..75e25f75c6c 100644 --- a/src/libstd/dbg.rs +++ b/src/libstd/dbg.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; //! Unsafe debugging functions for inspecting values. diff --git a/src/libstd/deque.rs b/src/libstd/deque.rs index f33ff892f36..96d57297cf7 100644 --- a/src/libstd/deque.rs +++ b/src/libstd/deque.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! A deque. Untested as of yet. Likely buggy #[forbid(deprecated_mode)]; #[forbid(non_camel_case_types)]; diff --git a/src/libstd/ebml.rs b/src/libstd/ebml.rs index 905b7f318e0..1bfba2c7b0c 100644 --- a/src/libstd/ebml.rs +++ b/src/libstd/ebml.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; use serialization; diff --git a/src/libstd/fun_treemap.rs b/src/libstd/fun_treemap.rs index 200193a48a8..1eccb5a8d92 100644 --- a/src/libstd/fun_treemap.rs +++ b/src/libstd/fun_treemap.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; /*! diff --git a/src/libstd/future.rs b/src/libstd/future.rs index a22e4d67468..e0aed60e803 100644 --- a/src/libstd/future.rs +++ b/src/libstd/future.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. // tjc: allowing deprecated modes due to function issue. // can re-forbid them after snapshot diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs index ec6e1d558d4..83e7841fcd0 100644 --- a/src/libstd/getopts.rs +++ b/src/libstd/getopts.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * Simple getopt alternative. * diff --git a/src/libstd/json.rs b/src/libstd/json.rs index 8551072d461..1cfda4947e2 100644 --- a/src/libstd/json.rs +++ b/src/libstd/json.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Rust JSON serialization library // Copyright (c) 2011 Google Inc. #[forbid(deprecated_mode)]; diff --git a/src/libstd/list.rs b/src/libstd/list.rs index ccff91634b8..68f807f8403 100644 --- a/src/libstd/list.rs +++ b/src/libstd/list.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! A standard linked list #[forbid(deprecated_mode)]; diff --git a/src/libstd/map.rs b/src/libstd/map.rs index b1909bfb067..05a8e37d9af 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! A map type #[forbid(deprecated_mode)]; diff --git a/src/libstd/md4.rs b/src/libstd/md4.rs index d9bc03c311d..8e58a010f46 100644 --- a/src/libstd/md4.rs +++ b/src/libstd/md4.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; pub pure fn md4(msg: &[u8]) -> {a: u32, b: u32, c: u32, d: u32} { diff --git a/src/libstd/net.rs b/src/libstd/net.rs index 76a5955c3e1..230fb4b616d 100644 --- a/src/libstd/net.rs +++ b/src/libstd/net.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Top-level module for network-related functionality pub use tcp = net_tcp; diff --git a/src/libstd/net_ip.rs b/src/libstd/net_ip.rs index 5d78fb19bab..31a62b50d90 100644 --- a/src/libstd/net_ip.rs +++ b/src/libstd/net_ip.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Types/fns concerning Internet Protocol (IP), versions 4 & 6 #[forbid(deprecated_mode)]; diff --git a/src/libstd/net_tcp.rs b/src/libstd/net_tcp.rs index 966cbbb6c14..9f6c83bb436 100644 --- a/src/libstd/net_tcp.rs +++ b/src/libstd/net_tcp.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! High-level interface to libuv's TCP functionality // XXX Need FFI fixes #[allow(deprecated_mode)]; diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs index 136df3a4193..6b7dc3f1afd 100644 --- a/src/libstd/net_url.rs +++ b/src/libstd/net_url.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Types/fns concerning URLs (see RFC 3986) #[forbid(deprecated_mode)]; diff --git a/src/libstd/par.rs b/src/libstd/par.rs index e5336b7204d..7cf9c2c3771 100644 --- a/src/libstd/par.rs +++ b/src/libstd/par.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; use future_spawn = future::spawn; diff --git a/src/libstd/prettyprint.rs b/src/libstd/prettyprint.rs index 6119c03cdca..d2829967544 100644 --- a/src/libstd/prettyprint.rs +++ b/src/libstd/prettyprint.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; use io::Writer; diff --git a/src/libstd/rope.rs b/src/libstd/rope.rs index 5aa19c4f785..473992e6820 100644 --- a/src/libstd/rope.rs +++ b/src/libstd/rope.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * High-level text containers. * diff --git a/src/libstd/serialization.rs b/src/libstd/serialization.rs index 93d025a7786..d41aa1227ce 100644 --- a/src/libstd/serialization.rs +++ b/src/libstd/serialization.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Support code for serialization. /* diff --git a/src/libstd/sha1.rs b/src/libstd/sha1.rs index 05890035273..1a005bdc03f 100644 --- a/src/libstd/sha1.rs +++ b/src/libstd/sha1.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * An implementation of the SHA-1 cryptographic hash. * diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs index dd773d25687..b83387a87ba 100644 --- a/src/libstd/smallintmap.rs +++ b/src/libstd/smallintmap.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * A simple map based on a vector for small integer keys. Space requirements * are O(highest integer key). diff --git a/src/libstd/sort.rs b/src/libstd/sort.rs index c9981c2fef5..316e23ef7ac 100644 --- a/src/libstd/sort.rs +++ b/src/libstd/sort.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Sorting methods #[forbid(deprecated_mode)]; diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs index 61201d44d2f..86b9f03313f 100644 --- a/src/libstd/sync.rs +++ b/src/libstd/sync.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; /** diff --git a/src/libstd/task_pool.rs b/src/libstd/task_pool.rs index 4ed3c16c994..938a3ffec0c 100644 --- a/src/libstd/task_pool.rs +++ b/src/libstd/task_pool.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /// A task pool abstraction. Useful for achieving predictable CPU /// parallelism. diff --git a/src/libstd/tempfile.rs b/src/libstd/tempfile.rs index 37fcbf6f4ca..25ea4ad7bb5 100644 --- a/src/libstd/tempfile.rs +++ b/src/libstd/tempfile.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Temporary files and directories #[forbid(deprecated_mode)]; diff --git a/src/libstd/term.rs b/src/libstd/term.rs index 2c12fd11e6e..5ec0f934440 100644 --- a/src/libstd/term.rs +++ b/src/libstd/term.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Simple ANSI color library #[forbid(deprecated_mode)]; diff --git a/src/libstd/test.rs b/src/libstd/test.rs index b4d15e1507a..b2dcf02a569 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[doc(hidden)]; // Support code for rustc's built in test runner generator. Currently, diff --git a/src/libstd/time.rs b/src/libstd/time.rs index 3b8d2996146..c4a6e39c86b 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; use core::cmp::Eq; diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs index 199fba45914..a53c03d6d2c 100644 --- a/src/libstd/timer.rs +++ b/src/libstd/timer.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! Utilities that leverage libuv's `uv_timer_*` API #[forbid(deprecated_mode)]; diff --git a/src/libstd/treemap.rs b/src/libstd/treemap.rs index e4b6c9b5b9a..e1874bd0bfd 100644 --- a/src/libstd/treemap.rs +++ b/src/libstd/treemap.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * A key,value store that works on anything. * diff --git a/src/libstd/unicode.rs b/src/libstd/unicode.rs index bafe385ed19..732b20ec8f2 100644 --- a/src/libstd/unicode.rs +++ b/src/libstd/unicode.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[forbid(deprecated_mode)]; pub mod icu { diff --git a/src/libstd/uv.rs b/src/libstd/uv.rs index e0fd013907c..1a4f8e89906 100644 --- a/src/libstd/uv.rs +++ b/src/libstd/uv.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * Rust bindings to libuv * diff --git a/src/libstd/uv_global_loop.rs b/src/libstd/uv_global_loop.rs index 79f6bafb4a4..be503216edb 100644 --- a/src/libstd/uv_global_loop.rs +++ b/src/libstd/uv_global_loop.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! A process-wide libuv event loop for library use. #[forbid(deprecated_mode)]; diff --git a/src/libstd/uv_iotask.rs b/src/libstd/uv_iotask.rs index ad40d96e4f7..b718c84b65e 100644 --- a/src/libstd/uv_iotask.rs +++ b/src/libstd/uv_iotask.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * A task-based interface to the uv loop * diff --git a/src/libstd/uv_ll.rs b/src/libstd/uv_ll.rs index 8bf4e9ed3af..d52adbc7873 100644 --- a/src/libstd/uv_ll.rs +++ b/src/libstd/uv_ll.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! * Low-level bindings to the libuv library. * diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs index 08f3d21be47..2fd085fdb33 100644 --- a/src/libstd/workcache.rs +++ b/src/libstd/workcache.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use core::cmp::Eq; use send_map::linear::LinearMap; use pipes::{recv, oneshot, PortOne, send_one}; diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 9dab40ba991..46fd7be656e 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // The Rust abstract syntax tree. use std::serialization::{Serializable, diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 6e0069a649a..d13ec70a975 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map; use std::map::HashMap; use ast::*; diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index e4e29d1fb45..c5a45248e8e 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use codemap::{span, BytePos}; use ast::*; diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 468704c9aff..1c7171ce787 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Functions dealing with attributes and meta_items use std::map; diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 693597eb840..ffc786274b7 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! The CodeMap tracks all the source code used within a single crate, mapping diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs index a8a013cb79c..6aaad755b8b 100644 --- a/src/libsyntax/diagnostic.rs +++ b/src/libsyntax/diagnostic.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::term; use io::WriterUtil; use codemap::span; diff --git a/src/libsyntax/ext/auto_serialize.rs b/src/libsyntax/ext/auto_serialize.rs index 42f120484f0..1242d528194 100644 --- a/src/libsyntax/ext/auto_serialize.rs +++ b/src/libsyntax/ext/auto_serialize.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* The compiler code necessary to implement the #[auto_serialize] and diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 01193a0b483..79dbbbe0b72 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use parse::parser; use diagnostic::span_handler; diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index d6b653c6189..9d74509a02c 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use codemap::span; use base::ext_ctxt; diff --git a/src/libsyntax/ext/concat_idents.rs b/src/libsyntax/ext/concat_idents.rs index 94b22d68cea..b6fb3a75938 100644 --- a/src/libsyntax/ext/concat_idents.rs +++ b/src/libsyntax/ext/concat_idents.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use base::*; fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg, diff --git a/src/libsyntax/ext/deriving.rs b/src/libsyntax/ext/deriving.rs index 829b53ae22a..b8bb9c20dc0 100644 --- a/src/libsyntax/ext/deriving.rs +++ b/src/libsyntax/ext/deriving.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /// The compiler code necessary to implement the #[deriving_eq] and /// #[deriving_iter_bytes] extensions. diff --git a/src/libsyntax/ext/env.rs b/src/libsyntax/ext/env.rs index 37fb0f05cbd..1371cd30308 100644 --- a/src/libsyntax/ext/env.rs +++ b/src/libsyntax/ext/env.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* * The compiler code necessary to support the env! extension. Eventually this diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index c0bef1e6cde..a9fdcc18661 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::HashMap; use ast::{crate, expr_, expr_mac, mac_invoc, mac_invoc_tt, diff --git a/src/libsyntax/ext/fmt.rs b/src/libsyntax/ext/fmt.rs index 71801a4d157..d6ea6791284 100644 --- a/src/libsyntax/ext/fmt.rs +++ b/src/libsyntax/ext/fmt.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* diff --git a/src/libsyntax/ext/ident_to_str.rs b/src/libsyntax/ext/ident_to_str.rs index 86145df5da2..ededc1a5f7f 100644 --- a/src/libsyntax/ext/ident_to_str.rs +++ b/src/libsyntax/ext/ident_to_str.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use base::*; use build::mk_uniq_str; diff --git a/src/libsyntax/ext/log_syntax.rs b/src/libsyntax/ext/log_syntax.rs index e87ad446a42..00462207b4b 100644 --- a/src/libsyntax/ext/log_syntax.rs +++ b/src/libsyntax/ext/log_syntax.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use base::*; use io::WriterUtil; diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index e9bb42aa2a1..7293438ca09 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Functions for building ASTs, without having to fuss with spans. // // To start with, it will be use dummy spans, but it might someday do diff --git a/src/libsyntax/ext/pipes/check.rs b/src/libsyntax/ext/pipes/check.rs index a90b679f697..cfe4a3d19ac 100644 --- a/src/libsyntax/ext/pipes/check.rs +++ b/src/libsyntax/ext/pipes/check.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /// Correctness for protocols /* diff --git a/src/libsyntax/ext/pipes/liveness.rs b/src/libsyntax/ext/pipes/liveness.rs index e86b3f0ea59..1323042eb62 100644 --- a/src/libsyntax/ext/pipes/liveness.rs +++ b/src/libsyntax/ext/pipes/liveness.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* Liveness analysis for protocols. This is useful for a lot of possible diff --git a/src/libsyntax/ext/pipes/mod.rs b/src/libsyntax/ext/pipes/mod.rs index 9f5c722afc3..7085ca40ed3 100644 --- a/src/libsyntax/ext/pipes/mod.rs +++ b/src/libsyntax/ext/pipes/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Implementation of proto! extension. This is frequently called the pipe compiler. It handles code such as... diff --git a/src/libsyntax/ext/pipes/parse_proto.rs b/src/libsyntax/ext/pipes/parse_proto.rs index 9db2c1e6733..ffc063d2b77 100644 --- a/src/libsyntax/ext/pipes/parse_proto.rs +++ b/src/libsyntax/ext/pipes/parse_proto.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Parsing pipes protocols from token trees. use parse::parser; diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 558e7d01259..87db2b1cf63 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // A protocol compiler for Rust. use to_str::ToStr; diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs index 18caef0f72f..f8c4648dd4a 100644 --- a/src/libsyntax/ext/pipes/proto.rs +++ b/src/libsyntax/ext/pipes/proto.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use to_str::ToStr; use dvec::DVec; diff --git a/src/libsyntax/ext/qquote.rs b/src/libsyntax/ext/qquote.rs index 888932e58e7..346798c9029 100644 --- a/src/libsyntax/ext/qquote.rs +++ b/src/libsyntax/ext/qquote.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use ast::{crate, expr_, mac_invoc, mac_aq, mac_var}; use parse::parser; diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 80a0616e732..27760e4117f 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use mod ast; use mod parse::token; diff --git a/src/libsyntax/ext/simplext.rs b/src/libsyntax/ext/simplext.rs index df7674264ca..d32f982de8a 100644 --- a/src/libsyntax/ext/simplext.rs +++ b/src/libsyntax/ext/simplext.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use codemap::span; use std::map::HashMap; use dvec::DVec; diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs index a105db0c08a..0e1eb2ee2df 100644 --- a/src/libsyntax/ext/source_util.rs +++ b/src/libsyntax/ext/source_util.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use base::*; use codemap::{span, Loc, FileMap}; use print::pprust; diff --git a/src/libsyntax/ext/trace_macros.rs b/src/libsyntax/ext/trace_macros.rs index fb0d4bb128e..6bf7437e152 100644 --- a/src/libsyntax/ext/trace_macros.rs +++ b/src/libsyntax/ext/trace_macros.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use codemap::span; use ext::base::ext_ctxt; use ast::tt_delim; diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 13d9e87f26e..44a3774ddd0 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Earley-like parser for macros. use parse::token; use parse::token::{Token, EOF, to_str, nonterminal}; diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 63885d5c258..0767a3cce83 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use base::{ext_ctxt, mac_result, mr_any, mr_def, normal_tt}; use codemap::span; use ast::{ident, matcher_, matcher, match_tok, diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index 78f0e4fc8f8..eeb8b068b5b 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use diagnostic::span_handler; use ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident}; use macro_parser::{named_match, matched_seq, matched_nonterminal}; diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 03a9729477a..15435f48421 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use codemap::span; use ast::*; diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index f0cb1d4ba3e..3f0b031bd06 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use either::{Either, Left, Right}; use ast_util::spanned; use common::*; //resolve bug? diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index e0210feb9de..0ff5c296125 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* Predicates on exprs and stmts that the pretty-printer and parser use */ diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 4f7bfb0d4e9..e5a52628627 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use io::println;//XXXXXXXXxxx use io::ReaderUtil; use util::interner; diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 54ac776fb32..4c14f05d56b 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::map::{HashMap}; use ast_util::spanned; use parser::Parser; diff --git a/src/libsyntax/parse/eval.rs b/src/libsyntax/parse/eval.rs index cdfd8a9bcec..c29fe773b3f 100644 --- a/src/libsyntax/parse/eval.rs +++ b/src/libsyntax/parse/eval.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use parser::Parser; use attr::parser_attr; use ast_util::mk_sp; diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 5e174f7f34f..a0cfece6b10 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use diagnostic::span_handler; use codemap::{span, CodeMap, CharPos, BytePos}; use ext::tt::transcribe::{tt_reader, new_tt_reader, dup_tt_reader, diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index c1afc43205c..5a7b62f1ff6 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + //! The main parser interface #[legacy_exports]; diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index afa87c261f1..aa52575ef45 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /*! Support for parsing unsupported, old syntaxes, for the purpose of reporting errors. Parsing of these syntaxes diff --git a/src/libsyntax/parse/prec.rs b/src/libsyntax/parse/prec.rs index 3fd905cb8ec..8dada97e35d 100644 --- a/src/libsyntax/parse/prec.rs +++ b/src/libsyntax/parse/prec.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + export as_prec; export unop_prec; export token_to_binop; diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 489c13b146b..684c8414a01 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use util::interner; use util::interner::Interner; use std::map::HashMap; diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index 014d564b84e..a51089334f0 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use io::WriterUtil; use dvec::DVec; diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index e13c6da403f..df0c1214361 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use parse::{comments, lexer, token}; use codemap::{CodeMap, BytePos}; use pp::{break_offset, word, printer, space, zerobreak, hardbreak, breaks}; diff --git a/src/libsyntax/syntax.rc b/src/libsyntax/syntax.rc index 60036fe7737..55bac5f8275 100644 --- a/src/libsyntax/syntax.rc +++ b/src/libsyntax/syntax.rc @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #[link(name = "syntax", vers = "0.5", uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")]; diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index f564589cbe0..cfa3a4224c5 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // An "interner" is a data structure that associates values with uint tags and // allows bidirectional lookup; i.e. given a value, one can easily find the // type, and vice versa. diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index bac651ef36c..6ca735469a6 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use ast::*; use codemap::span; diff --git a/src/rt/arch/i386/gpr.cpp b/src/rt/arch/i386/gpr.cpp index 778d64490ba..bebf8019427 100644 --- a/src/rt/arch/i386/gpr.cpp +++ b/src/rt/arch/i386/gpr.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #include "gpr.h" #define LOAD(rn) do { \ diff --git a/src/rt/arch/i386/gpr.h b/src/rt/arch/i386/gpr.h index 6c9685e2a5a..6ae53e113f4 100644 --- a/src/rt/arch/i386/gpr.h +++ b/src/rt/arch/i386/gpr.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // General-purpose registers. This structure is used during stack crawling. #ifndef GPR_H diff --git a/src/rt/arch/i386/regs.h b/src/rt/arch/i386/regs.h index 80eacd80178..85c02049edd 100644 --- a/src/rt/arch/i386/regs.h +++ b/src/rt/arch/i386/regs.h @@ -1,2 +1,12 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // This file is not used by i386, but we keep it here so all // architectures have the same set of header files. diff --git a/src/rt/arch/x86_64/gpr.cpp b/src/rt/arch/x86_64/gpr.cpp index 2533e826d4b..cf43125923a 100644 --- a/src/rt/arch/x86_64/gpr.cpp +++ b/src/rt/arch/x86_64/gpr.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #include "gpr.h" #define LOAD(rn) do { \ diff --git a/src/rt/arch/x86_64/gpr.h b/src/rt/arch/x86_64/gpr.h index 620392c579f..75c3b081e77 100644 --- a/src/rt/arch/x86_64/gpr.h +++ b/src/rt/arch/x86_64/gpr.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // General-purpose registers. This structure is used during stack crawling. #ifndef GPR_H diff --git a/src/rt/arch/x86_64/regs.h b/src/rt/arch/x86_64/regs.h index 63aab911c00..7d0efd1eec8 100644 --- a/src/rt/arch/x86_64/regs.h +++ b/src/rt/arch/x86_64/regs.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #define RUSTRT_RBX 0 #define RUSTRT_RSP 1 #define RUSTRT_RBP 2 diff --git a/src/rt/boxed_region.h b/src/rt/boxed_region.h index cb01335a1bc..8e7203b723a 100644 --- a/src/rt/boxed_region.h +++ b/src/rt/boxed_region.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef BOXED_REGION_H #define BOXED_REGION_H diff --git a/src/rt/rust_abi.cpp b/src/rt/rust_abi.cpp index 8de42bb6666..8abe5c72291 100644 --- a/src/rt/rust_abi.cpp +++ b/src/rt/rust_abi.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ABI-specific routines. #include diff --git a/src/rt/rust_abi.h b/src/rt/rust_abi.h index 9c921719bb7..c56bf96291f 100644 --- a/src/rt/rust_abi.h +++ b/src/rt/rust_abi.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // ABI-specific routines. #ifndef RUST_ABI_H diff --git a/src/rt/rust_crate_map.cpp b/src/rt/rust_crate_map.cpp index 9f6c18d9207..00f764a1406 100644 --- a/src/rt/rust_crate_map.cpp +++ b/src/rt/rust_crate_map.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #include "rust_crate_map.h" void iter_module_map(const mod_entry* map, diff --git a/src/rt/rust_crate_map.h b/src/rt/rust_crate_map.h index bdb0630a1af..285473e1938 100644 --- a/src/rt/rust_crate_map.h +++ b/src/rt/rust_crate_map.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef RUST_CRATE_MAP_H #define RUST_CRATE_MAP_H diff --git a/src/rt/rust_debug.h b/src/rt/rust_debug.h index 68f9e3d4519..c9aad098d38 100644 --- a/src/rt/rust_debug.h +++ b/src/rt/rust_debug.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Routines useful when debugging the Rust runtime. #ifndef RUST_DEBUG_H diff --git a/src/rt/rust_gc_metadata.cpp b/src/rt/rust_gc_metadata.cpp index 4566289d260..fbf0575b31d 100644 --- a/src/rt/rust_gc_metadata.cpp +++ b/src/rt/rust_gc_metadata.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #include "rust_gc_metadata.h" #include "rust_crate_map.h" #include "rust_globals.h" diff --git a/src/rt/rust_gc_metadata.h b/src/rt/rust_gc_metadata.h index ddeb5b382ff..d8d98e75b93 100644 --- a/src/rt/rust_gc_metadata.h +++ b/src/rt/rust_gc_metadata.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef RUST_GC_METADATA_H #define RUST_GC_METADATA_H diff --git a/src/rt/rust_gpr_base.h b/src/rt/rust_gpr_base.h index d648800aae9..4df6ea3e9ad 100644 --- a/src/rt/rust_gpr_base.h +++ b/src/rt/rust_gpr_base.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Base class for architecture-specific general-purpose registers. This // structure is used during stack crawling. diff --git a/src/rt/rust_sched_driver.h b/src/rt/rust_sched_driver.h index c8dae9ca7b8..9824c5ee3d2 100644 --- a/src/rt/rust_sched_driver.h +++ b/src/rt/rust_sched_driver.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef RUST_SCHED_DRIVER_H #define RUST_SCHED_DRIVER_H diff --git a/src/rt/rust_sched_reaper.h b/src/rt/rust_sched_reaper.h index 6b43038312d..75a8d18c0ab 100644 --- a/src/rt/rust_sched_reaper.h +++ b/src/rt/rust_sched_reaper.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef RUST_SCHED_REAPER_H #define RUST_SCHED_REAPER_H diff --git a/src/rt/rust_signal.h b/src/rt/rust_signal.h index 052c753a552..0f6ecb94303 100644 --- a/src/rt/rust_signal.h +++ b/src/rt/rust_signal.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef RUST_SIGNAL_H #define RUST_SIGNAL_H diff --git a/src/rt/rust_unwind.h b/src/rt/rust_unwind.h index 61acf89b6c0..0eb990a9c9b 100644 --- a/src/rt/rust_unwind.h +++ b/src/rt/rust_unwind.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + // Unwinding stuff missing on some architectures (Mac OS X). #ifndef RUST_UNWIND_H diff --git a/src/rt/rust_util.cpp b/src/rt/rust_util.cpp index 60e6cc3d842..8d80a344063 100644 --- a/src/rt/rust_util.cpp +++ b/src/rt/rust_util.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #include "rust_type.h" diff --git a/src/rt/sync/sync.h b/src/rt/sync/sync.h index 66682f11e9c..13d11a55021 100644 --- a/src/rt/sync/sync.h +++ b/src/rt/sync/sync.h @@ -1,4 +1,14 @@ // -*- c++ -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef SYNC_H #define SYNC_H diff --git a/src/rt/sync/timer.cpp b/src/rt/sync/timer.cpp index 0204517d512..99e5b107dc9 100644 --- a/src/rt/sync/timer.cpp +++ b/src/rt/sync/timer.cpp @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #include "../rust_globals.h" #include "timer.h" diff --git a/src/rt/sync/timer.h b/src/rt/sync/timer.h index ac06b3445c3..59d05878b50 100644 --- a/src/rt/sync/timer.h +++ b/src/rt/sync/timer.h @@ -1,3 +1,13 @@ +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /* * Utility class to measure time in a platform independent way. */ diff --git a/src/rt/util/hash_map.h b/src/rt/util/hash_map.h index 0ff6ed190d3..6e8afbece2d 100644 --- a/src/rt/util/hash_map.h +++ b/src/rt/util/hash_map.h @@ -1,4 +1,14 @@ // -*- c++ -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + /** * A C++ wrapper around uthash. */ diff --git a/src/rt/util/indexed_list.h b/src/rt/util/indexed_list.h index d58927156a6..aae6ecb8a78 100644 --- a/src/rt/util/indexed_list.h +++ b/src/rt/util/indexed_list.h @@ -1,4 +1,14 @@ // -*- c++ -*- +// Copyright 2012 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #ifndef INDEXED_LIST_H #define INDEXED_LIST_H