Skip to content

Commit fb989d3

Browse files
committed
Remove remaining license header in test file
1 parent 7a85b77 commit fb989d3

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

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)