Skip to content

Commit 36f715c

Browse files
authored
Fix copyright check for expected tests (rust-lang#3170)
This PR modifies the pattern used to exclude files from the copyright check for `expected` files. This ensures we check the copyright in files under `tests/expected/` while it skips the check for `expected` and `*.expected` files. It also adds/modifies copyright headers for some files that weren't being checked until now. Resolves rust-lang#3141
1 parent 9e34364 commit 36f715c

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

scripts/ci/copyright-exclude

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Cargo.lock
1010
LICENSE-APACHE
1111
LICENSE-MIT
1212
editorconfig
13-
expected
13+
expected$
1414
gitattributes
1515
gitignore
1616
gitmodules

tests/expected/coroutines/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright Kani Contributors
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
#![feature(coroutines, coroutine_trait)]

tests/expected/coroutines/pin/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright Kani Contributors
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
// Test contains a call to a coroutine via a Pin

tests/expected/function-contract/modifies/refcell_fixme.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Kani Contributors
2+
// SPDX-License-Identifier: Apache-2.0 OR MIT
13
use std::cell::RefCell;
24
use std::ops::Deref;
35

tests/expected/offset-wraps-around/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright Kani Contributors
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
// Check that a high offset causes a "wrapping around" behavior in CBMC.

tests/expected/slice_c_str/c_str_fixme.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Kani Contributors
2+
// SPDX-License-Identifier: Apache-2.0 OR MIT
13
#![feature(rustc_private)]
24
#![feature(c_str_literals)]
35
//! FIXME: <https://github.com/rust-lang/rust/issues/113333>

0 commit comments

Comments
 (0)