Skip to content

Commit

Permalink
Remove copyright license headers from assertions_on_constants.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
A.A.Abroskin committed Jan 23, 2019
1 parent e0cc7a1 commit e22e74f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
9 changes: 0 additions & 9 deletions tests/ui/assertions_on_constants.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// 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() {
assert!(true);
assert!(false);
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/assertions_on_constants.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: assert!(true) will be optimized out by the compiler
--> $DIR/assertions_on_constants.rs:11:5
--> $DIR/assertions_on_constants.rs:2:5
|
LL | assert!(true);
| ^^^^^^^^^^^^^^
Expand All @@ -8,39 +8,39 @@ LL | assert!(true);
= help: remove it

error: assert!(false) should probably be replaced
--> $DIR/assertions_on_constants.rs:12:5
--> $DIR/assertions_on_constants.rs:3:5
|
LL | assert!(false);
| ^^^^^^^^^^^^^^^
|
= help: use panic!() or unreachable!()

error: assert!(true) will be optimized out by the compiler
--> $DIR/assertions_on_constants.rs:13:5
--> $DIR/assertions_on_constants.rs:4:5
|
LL | assert!(true, "true message");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: remove it

error: assert!(false) should probably be replaced
--> $DIR/assertions_on_constants.rs:14:5
--> $DIR/assertions_on_constants.rs:5:5
|
LL | assert!(false, "false message");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use panic!() or unreachable!()

error: assert!(const: true) will be optimized out by the compiler
--> $DIR/assertions_on_constants.rs:17:5
--> $DIR/assertions_on_constants.rs:8:5
|
LL | assert!(B);
| ^^^^^^^^^^^
|
= help: remove it

error: assert!(const: false) should probably be replaced
--> $DIR/assertions_on_constants.rs:20:5
--> $DIR/assertions_on_constants.rs:11:5
|
LL | assert!(C);
| ^^^^^^^^^^^
Expand Down

0 comments on commit e22e74f

Please sign in to comment.