Skip to content

Commit da7aebc

Browse files
committed
Auto merge of #3645 - phansch:remove_copyright_headers, r=oli-obk
Remove all copyright license headers Discussion previously happened in rust-lang/rust#43498 and here: #3642 (comment)
2 parents 5b84966 + 38d4ac7 commit da7aebc

File tree

671 files changed

+2153
-6243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

671 files changed

+2153
-6243
lines changed

.github/deploy.sh

-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
#!/bin/bash
22

3-
# Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
4-
# file at the top-level directory of this distribution and at
5-
# http://rust-lang.org/COPYRIGHT.
6-
#
7-
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8-
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9-
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10-
# option. This file may not be copied, modified, or distributed
11-
# except according to those terms.
12-
13-
143
# Automatically deploy on gh-pages
154

165
set -ex

COPYRIGHT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2014-2018 The Rust Project Developers
1+
Copyright 2014-2019 The Rust Project Developers
22

33
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
44
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ If you want to contribute to Clippy, you can find more information in [CONTRIBUT
157157

158158
## License
159159

160-
Copyright 2014-2018 The Rust Project Developers
160+
Copyright 2014-2019 The Rust Project Developers
161161

162162
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
163163
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license

build.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
fn main() {
112
// Forward the profile to the main compilation
123
println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap());

ci/base-tests.sh

-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
# file at the top-level directory of this distribution and at
3-
# http://rust-lang.org/COPYRIGHT.
4-
#
5-
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
# option. This file may not be copied, modified, or distributed
9-
# except according to those terms.
10-
11-
121
set -ex
132

143
echo "Running clippy base tests"

ci/integration-tests.sh

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
# file at the top-level directory of this distribution and at
3-
# http://rust-lang.org/COPYRIGHT.
4-
#
5-
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
# option. This file may not be copied, modified, or distributed
9-
# except according to those terms.
10-
111
set -x
122
rm ~/.cargo/bin/cargo-clippy
133
cargo install --force --path .

clippy_dev/src/lib.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
#![allow(clippy::default_hash_types)]
112

123
use itertools::Itertools;

clippy_dev/src/main.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
extern crate clap;
112
extern crate clippy_dev;
123
extern crate regex;

clippy_dummy/build.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
10-
111
extern crate term;
122

133
fn main() {
@@ -49,4 +39,4 @@ fn foo() -> Result<(), ()> {
4939

5040
t.reset().map_err(|_| ())?;
5141
Ok(())
52-
}
42+
}

clippy_dummy/src/main.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
10-
111
fn main() {
122
panic!("This shouldn't even compile")
133
}

clippy_lints/src/approx_const.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::span_lint;
112
use rustc::hir::*;
123
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};

clippy_lints/src/arithmetic.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::span_lint;
112
use rustc::hir;
123
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};

clippy_lints/src/assign_ops.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::{get_trait_def_id, implements_trait, snippet_opt, span_lint_and_then, SpanlessEq};
112
use crate::utils::{higher, sugg};
123
use if_chain::if_chain;

clippy_lints/src/attrs.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
//! checks for attributes
112
123
use crate::reexport::*;

clippy_lints/src/bit_mask.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::consts::{constant, Constant};
112
use crate::utils::sugg::Sugg;
123
use crate::utils::{span_lint, span_lint_and_then};

clippy_lints/src/blacklisted_name.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::span_lint;
112
use rustc::hir::*;
123
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};

clippy_lints/src/block_in_if_condition.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::*;
112
use matches::matches;
123
use rustc::hir::intravisit::{walk_expr, NestedVisitorMap, Visitor};

clippy_lints/src/booleans.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::{
112
get_trait_def_id, implements_trait, in_macro, match_type, paths, snippet_opt, span_lint_and_then, SpanlessEq,
123
};

clippy_lints/src/bytecount.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::{
112
contains_name, get_pat_name, match_type, paths, single_segment_path, snippet_with_applicability,
123
span_lint_and_sugg, walk_ptrs_ty,

clippy_lints/src/cargo_common_metadata.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
//! lint on missing cargo common metadata
112
123
use crate::utils::span_lint;

clippy_lints/src/collapsible_if.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
//! Checks for if expressions that contain only an if expression.
112
//!
123
//! For example, the lint would catch:

clippy_lints/src/const_static_lifetime.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::{in_macro, snippet, span_lint_and_then};
112
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
123
use rustc::{declare_tool_lint, lint_array};

clippy_lints/src/consts.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
10-
111
#![allow(clippy::float_cmp)]
122

133
use crate::utils::{clip, sext, unsext};

clippy_lints/src/copies.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::{get_parent_expr, in_macro, snippet, span_lint_and_then, span_note_and_lint};
112
use crate::utils::{SpanlessEq, SpanlessHash};
123
use rustc::hir::*;

clippy_lints/src/copy_iterator.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::{is_copy, match_path, paths, span_note_and_lint};
112
use rustc::hir::{Item, ItemKind};
123
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};

clippy_lints/src/cyclomatic_complexity.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
//! calculate cyclomatic complexity and warn about overly complex functions
112
123
use rustc::cfg::CFG;

clippy_lints/src/default_trait_access.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use if_chain::if_chain;
112
use rustc::hir::*;
123
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};

clippy_lints/src/deprecated_lints.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
10-
111
macro_rules! declare_deprecated_lint {
122
(pub $name: ident, $_reason: expr) => {
133
declare_lint!(pub $name, Allow, "deprecated lint")

clippy_lints/src/derive.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::paths;
112
use crate::utils::{is_automatically_derived, is_copy, match_path, span_lint_and_then};
123
use if_chain::if_chain;

clippy_lints/src/doc.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution.
3-
//
4-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7-
// option. This file may not be copied, modified, or distributed
8-
// except according to those terms.
9-
101
use crate::utils::span_lint;
112
use itertools::Itertools;
123
use pulldown_cmark;

0 commit comments

Comments
 (0)