Skip to content

Commit 8daeee5

Browse files
committed
Auto merge of #5204 - flip1995:license, r=Manishearth
Update License r? @Manishearth I'm not sure if the Copyright claim was left out on purpose in the LICENSE-* files. I added them, because the official templates have them. changelog: none
2 parents 5fbec44 + fb989d3 commit 8daeee5

File tree

7 files changed

+12
-26
lines changed

7 files changed

+12
-26
lines changed

LICENSE-APACHE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2014-2020 The Rust Project Developers
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

LICENSE-MIT

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
MIT License
2+
3+
Copyright (c) 2014-2020 The Rust Project Developers
4+
15
Permission is hereby granted, free of charge, to any
26
person obtaining a copy of this software and associated
37
documentation files (the "Software"), to deal in the

README.md

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

183183
## License
184184

185-
Copyright 2014-2019 The Rust Project Developers
185+
Copyright 2014-2020 The Rust Project Developers
186186

187187
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
188188
[https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)> or the MIT license

rustc_tools_util/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This gives the following output in clippy:
5353

5454
## License
5555

56-
Copyright 2014-2019 The Rust Project Developers
56+
Copyright 2014-2020 The Rust Project Developers
5757

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

tests/ui/mem_replace.fixed

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2019 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
// run-rustfix
112
#![allow(unused_imports)]
123
#![warn(

tests/ui/mem_replace.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// Copyright 2014-2019 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
// run-rustfix
112
#![allow(unused_imports)]
123
#![warn(

tests/ui/mem_replace.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
error: replacing an `Option` with `None`
2-
--> $DIR/mem_replace.rs:23:13
2+
--> $DIR/mem_replace.rs:14:13
33
|
44
LL | let _ = mem::replace(&mut an_option, None);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
66
|
77
= note: `-D clippy::mem-replace-option-with-none` implied by `-D warnings`
88

99
error: replacing an `Option` with `None`
10-
--> $DIR/mem_replace.rs:25:13
10+
--> $DIR/mem_replace.rs:16:13
1111
|
1212
LL | let _ = mem::replace(an_option, None);
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
1414

1515
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
16-
--> $DIR/mem_replace.rs:30:13
16+
--> $DIR/mem_replace.rs:21:13
1717
|
1818
LL | let _ = std::mem::replace(&mut s, String::default());
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::mem::take(&mut s)`
2020
|
2121
= note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
2222

2323
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
24-
--> $DIR/mem_replace.rs:32:13
24+
--> $DIR/mem_replace.rs:23:13
2525
|
2626
LL | let _ = std::mem::replace(s, String::default());
2727
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::mem::take(s)`
2828

2929
error: replacing a value of type `T` with `T::default()` is better expressed using `std::mem::take`
30-
--> $DIR/mem_replace.rs:33:13
30+
--> $DIR/mem_replace.rs:24:13
3131
|
3232
LL | let _ = std::mem::replace(s, Default::default());
3333
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::mem::take(s)`

0 commit comments

Comments
 (0)