diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2018-01-04 18:26:34 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2018-01-19 20:27:36 +0100 |
| commit | d2c53f8b4d6a5ba69eaaa883a417fbd08e0d75b7 (patch) | |
| tree | 71078fd1ebd38f5b3c6e8fbff1363c8b99bd77f4 | |
| parent | 4ef16d7466cca262c682fb3a9441a88a61a089df (diff) | |
| download | rust-d2c53f8b4d6a5ba69eaaa883a417fbd08e0d75b7.tar.gz rust-d2c53f8b4d6a5ba69eaaa883a417fbd08e0d75b7.zip | |
Add missing licenses
| -rw-r--r-- | src/test/run-make/hotplug_codegen_backend/some_crate.rs | 10 | ||||
| -rw-r--r-- | src/test/run-make/hotplug_codegen_backend/the_backend.rs | 12 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/test/run-make/hotplug_codegen_backend/some_crate.rs b/src/test/run-make/hotplug_codegen_backend/some_crate.rs index 7d01978dcee..26ffce01b2e 100644 --- a/src/test/run-make/hotplug_codegen_backend/some_crate.rs +++ b/src/test/run-make/hotplug_codegen_backend/some_crate.rs @@ -1,3 +1,13 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + fn main() { ::std::process::exit(1); } diff --git a/src/test/run-make/hotplug_codegen_backend/the_backend.rs b/src/test/run-make/hotplug_codegen_backend/the_backend.rs index 8200658b1f1..fc06737e0e9 100644 --- a/src/test/run-make/hotplug_codegen_backend/the_backend.rs +++ b/src/test/run-make/hotplug_codegen_backend/the_backend.rs @@ -1,3 +1,13 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + #![feature(rustc_private)] extern crate syntax; @@ -36,7 +46,7 @@ impl TransCrate for TheBackend { _rx: mpsc::Receiver<Box<Any + Send>> ) -> Box<Any> { use rustc::hir::def_id::LOCAL_CRATE; - + Box::new(tcx.crate_name(LOCAL_CRATE) as Symbol) } |
