From 0298c3ca108e44c11dcfda221f3edeb608645ccf Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Thu, 12 Sep 2013 21:10:51 -0400 Subject: [PATCH] rustdoc_ng: add licenses and issue numbers to appease tidy --- src/rustdoc_ng/clean.rs | 10 ++++++++++ src/rustdoc_ng/core.rs | 10 ++++++++++ src/rustdoc_ng/doctree.rs | 10 ++++++++++ src/rustdoc_ng/fold.rs | 10 ++++++++++ src/rustdoc_ng/lib.rs | 10 ++++++++++ src/rustdoc_ng/main.rs | 12 +++++++++++- src/rustdoc_ng/passes.rs | 10 ++++++++++ src/rustdoc_ng/plugins.rs | 10 ++++++++++ src/rustdoc_ng/visit_ast.rs | 10 ++++++++++ 9 files changed, 91 insertions(+), 1 deletion(-) diff --git a/src/rustdoc_ng/clean.rs b/src/rustdoc_ng/clean.rs index aae3be7001ac..1bfb8e283939 100644 --- a/src/rustdoc_ng/clean.rs +++ b/src/rustdoc_ng/clean.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 module contains the "cleaned" pieces of the AST, and the functions //! that clean them. diff --git a/src/rustdoc_ng/core.rs b/src/rustdoc_ng/core.rs index 0a948bd73eb0..9fb5e8c04c10 100644 --- a/src/rustdoc_ng/core.rs +++ b/src/rustdoc_ng/core.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 rustc; use rustc::{driver, middle}; diff --git a/src/rustdoc_ng/doctree.rs b/src/rustdoc_ng/doctree.rs index 3b553608c1a4..67722b1e1777 100644 --- a/src/rustdoc_ng/doctree.rs +++ b/src/rustdoc_ng/doctree.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 module is used to store stuff from Rust's AST in a more convenient //! manner (and with prettier names) before cleaning. diff --git a/src/rustdoc_ng/fold.rs b/src/rustdoc_ng/fold.rs index e3ce6e80ae40..7b72429e3757 100644 --- a/src/rustdoc_ng/fold.rs +++ b/src/rustdoc_ng/fold.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 clean::*; use std::iter::Extendable; diff --git a/src/rustdoc_ng/lib.rs b/src/rustdoc_ng/lib.rs index 6d34fae60900..75453aa129cc 100644 --- a/src/rustdoc_ng/lib.rs +++ b/src/rustdoc_ng/lib.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 = "rustdoc_ng", vers = "0.1.0", uuid = "8c6e4598-1596-4aa5-a24c-b811914bbbc6")]; diff --git a/src/rustdoc_ng/main.rs b/src/rustdoc_ng/main.rs index 47b370529170..aad64041a63e 100644 --- a/src/rustdoc_ng/main.rs +++ b/src/rustdoc_ng/main.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 = "rustdoc_ng", vers = "0.1.0", uuid = "8c6e4598-1596-4aa5-a24c-b811914bbbc6")]; @@ -77,7 +87,7 @@ fn main() { let (crate, res) = pm.run_plugins(crate); let plugins_json = ~res.move_iter().filter_map(|opt| opt).collect(); - // FIXME: yuck, Rust -> str -> JSON round trip! No way to .encode + // FIXME #8335: yuck, Rust -> str -> JSON round trip! No way to .encode // straight to the Rust JSON representation. let crate_json_str = do std::io::with_str_writer |w| { crate.encode(&mut extra::json::Encoder(w)); diff --git a/src/rustdoc_ng/passes.rs b/src/rustdoc_ng/passes.rs index 30fa0f56a431..da6128a7610b 100644 --- a/src/rustdoc_ng/passes.rs +++ b/src/rustdoc_ng/passes.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 clean; use syntax::ast; diff --git a/src/rustdoc_ng/plugins.rs b/src/rustdoc_ng/plugins.rs index db243c9e21c1..4bad87088a12 100644 --- a/src/rustdoc_ng/plugins.rs +++ b/src/rustdoc_ng/plugins.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 clean; use extra; diff --git a/src/rustdoc_ng/visit_ast.rs b/src/rustdoc_ng/visit_ast.rs index 4ece4a1f0399..14be80f0f153 100644 --- a/src/rustdoc_ng/visit_ast.rs +++ b/src/rustdoc_ng/visit_ast.rs @@ -1,3 +1,13 @@ +// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, 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 AST Visitor. Extracts useful information and massages it into a form //! usable for clean