Skip to content

Commit d1d75a9

Browse files
committed
Keep comment slashes in codegen tests
…to prevent changed source locations.
1 parent 9c91e67 commit d1d75a9

Some content is hidden

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

54 files changed

+59
-0
lines changed

src/test/codegen-units/item-collection/drop_in_place_intrinsic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23
// compile-flags:-Zinline-in-all-cgus
34

src/test/codegen-units/item-collection/function-as-argument.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23

34
#![deny(dead_code)]

src/test/codegen-units/item-collection/generic-drop-glue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23
// compile-flags:-Zinline-in-all-cgus
34

src/test/codegen-units/item-collection/instantiation-through-vtable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager -Zinline-in-all-cgus -Zmir-opt-level=0
23

34
#![deny(dead_code)]

src/test/codegen-units/item-collection/non-generic-closures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// ignoring this test until MIR codegen has taken over completely
44
// ignore-test
55

6+
//
67
// compile-flags:-Zprint-mono-items=eager
78

89
#![deny(dead_code)]

src/test/codegen-units/item-collection/non-generic-drop-glue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23
// compile-flags:-Zinline-in-all-cgus
34

src/test/codegen-units/item-collection/trait-method-as-argument.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23

34
#![deny(dead_code)]

src/test/codegen-units/item-collection/transitive-drop-glue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23
// compile-flags:-Zinline-in-all-cgus
34

src/test/codegen-units/item-collection/tuple-drop-glue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags:-Zprint-mono-items=eager
23
// compile-flags:-Zinline-in-all-cgus
34

src/test/codegen-units/partitioning/extern-drop-glue.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//
2+
13
// We specify -C incremental here because we want to test the partitioning for
24
// incremental compilation
35
// We specify opt-level=0 because `drop_in_place` is `Internal` when optimizing

src/test/codegen-units/partitioning/extern-generic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// We specify -C incremental here because we want to test the partitioning for
23
// incremental compilation
34
// compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/extern-generic -Zshare-generics=y

src/test/codegen-units/partitioning/inlining-from-extern-crate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// We specify -C incremental here because we want to test the partitioning for
23
// incremental compilation
34
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/inlining-from-extern-crate

src/test/codegen-units/partitioning/local-drop-glue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// We specify -C incremental here because we want to test the partitioning for
23
// incremental compilation
34
// We specify opt-level=0 because `drop_in_place` is `Internal` when optimizing

src/test/codegen-units/partitioning/local-inlining-but-not-all.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// We specify -C incremental here because we want to test the partitioning for
23
// incremental compilation
34
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-inlining-but-not-all

src/test/codegen-units/partitioning/local-inlining.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// We specify -C incremental here because we want to test the partitioning for
23
// incremental compilation
34
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-inlining

src/test/codegen-units/partitioning/local-transitive-inlining.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// We specify -C incremental here because we want to test the partitioning for
23
// incremental compilation
34
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/local-transitive-inlining

src/test/codegen-units/partitioning/methods-are-with-self-type.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// much sense at the moment.
44
// ignore-test
55

6+
//
67
// We specify -C incremental here because we want to test the partitioning for
78
// incremental compilation
89
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/methods-are-with-self-type

src/test/codegen-units/partitioning/shared-generics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// no-prefer-dynamic
23
// NOTE: We always compile this test with -Copt-level=0 because higher opt-levels
34
// prevent drop-glue from participating in share-generics.

src/test/codegen-units/partitioning/vtable-through-const.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//
2+
13
// We specify -C incremental here because we want to test the partitioning for
24
// incremental compilation
35
// compile-flags:-Zprint-mono-items=lazy -Cincremental=tmp/partitioning-tests/vtable-through-const

src/test/codegen/align-enum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/align-struct.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/async-fn-debug-msvc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// - The generator types and variants are marked artificial
44
// - Captured vars from the source are not marked artificial
55
//
6+
//
67
// compile-flags: -C debuginfo=2 --edition=2018
78
// only-msvc
89

src/test/codegen/async-fn-debug.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// - The generator types and variants are marked artificial
44
// - Captured vars from the source are not marked artificial
55
//
6+
//
67
// compile-flags: -C debuginfo=2 --edition=2018
78
// ignore-msvc
89

src/test/codegen/c-variadic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// ignore-wasm32-bare compiled with panic=abort by default
22
// compile-flags: -C no-prepopulate-passes
3+
//
34

45
#![crate_type = "lib"]
56
#![feature(c_variadic)]

src/test/codegen/consts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/debug-compile-unit-path.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// compile-flags: -g --remap-path-prefix={{cwd}}=/cwd/ --remap-path-prefix={{src-base}}=/base/
22
//
3+
//
34
// Ensure that we remap the compile unit directory and that we set it to the compilers current
45
// working directory and not something else.
56
#![crate_type="rlib"]

src/test/codegen/enum-debug-clike.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This tests that debug info for "c-like" enums is properly emitted.
22
// This is ignored for the fallback mode on MSVC due to problems with PDB.
33

4+
//
45
// ignore-msvc
56

67
// compile-flags: -g -C no-prepopulate-passes

src/test/codegen/enum-debug-niche-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This tests that optimized enum debug info accurately reflects the enum layout.
22
// This is ignored for the fallback mode on MSVC due to problems with PDB.
33

4+
//
45
// ignore-msvc
56

67
// compile-flags: -g -C no-prepopulate-passes

src/test/codegen/function-arguments.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -O -C no-prepopulate-passes
2+
//
23
// min-system-llvm-version: 12.0
34

45
#![crate_type = "lib"]

src/test/codegen/gdb_debug_script_load.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// ignore-windows
23
// ignore-macos
34
// ignore-wasm

src/test/codegen/generator-debug-msvc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// - The generator types and variants are marked artificial
44
// - Captured vars from the source are not marked artificial
55
//
6+
//
67
// compile-flags: -C debuginfo=2
78
// only-msvc
89

src/test/codegen/generator-debug.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// - The generator types and variants are marked artificial
44
// - Captured vars from the source are not marked artificial
55
//
6+
//
67
// compile-flags: -C debuginfo=2 --edition=2018
78
// ignore-msvc
89

src/test/codegen/inline-debuginfo.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![crate_type="rlib"]
22
// compile-flags: -Copt-level=3 -g
3+
//
34

45
#[no_mangle]
56
#[inline(always)]

src/test/codegen/instrument-mcount.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -Z instrument-mcount
23

34
#![crate_type = "lib"]

src/test/codegen/issue-44056-macos-tls-align.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// only-macos
23
// no-system-llvm
34
// compile-flags: -O

src/test/codegen/packed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -O -C no-prepopulate-passes
23

34
#![crate_type = "lib"]

src/test/codegen/remap_path_prefix/auxiliary/remap_path_prefix_aux.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//
2+
13
// compile-flags: -g --remap-path-prefix={{cwd}}=/the/aux-cwd --remap-path-prefix={{src-base}}/remap_path_prefix/auxiliary=/the/aux-src
24

35
#[inline]

src/test/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -g --remap-path-prefix={{cwd}}=/the/aux-cwd --remap-path-prefix={{src-base}}/remap_path_prefix/auxiliary=/the/aux-src
23

34
#![crate_type = "lib"]

src/test/codegen/remap_path_prefix/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ignore-windows
2+
//
23

34
// compile-flags: -g -C no-prepopulate-passes --remap-path-prefix={{cwd}}=/the/cwd --remap-path-prefix={{src-base}}=/the/src
45
// aux-build:remap_path_prefix_aux.rs

src/test/codegen/repeat-trusted-len.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -O
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/repr-transparent-aggregates-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
// min-system-llvm-version: 12.0
45
// ignore-arm

src/test/codegen/repr-transparent-aggregates-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
// min-system-llvm-version: 12.0
45
// ignore-aarch64

src/test/codegen/repr-transparent-aggregates-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
// min-system-llvm-version: 12.0
45
// only-mips64

src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -C no-prepopulate-passes
23
// only-riscv64
34
// only-linux

src/test/codegen/riscv-abi/riscv64-lp64d-abi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -C no-prepopulate-passes
23
// only-riscv64
34
// only-linux

src/test/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -C no-prepopulate-passes
23
// only-riscv64
34
// only-linux

src/test/codegen/simd-intrinsic/simd-intrinsic-generic-arithmetic-saturating.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/simd-intrinsic/simd-intrinsic-generic-bitmask.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/simd-intrinsic/simd-intrinsic-generic-gather.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//
2+
13
// compile-flags: -C no-prepopulate-passes
24

35
#![crate_type = "lib"]

src/test/codegen/simd-intrinsic/simd-intrinsic-generic-scatter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//
2+
13
// compile-flags: -C no-prepopulate-passes
24

35
#![crate_type = "lib"]

src/test/codegen/simd-intrinsic/simd-intrinsic-transmute-array.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//
12
// compile-flags: -C no-prepopulate-passes
23

34
#![crate_type = "lib"]

src/test/codegen/stores.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: -C no-prepopulate-passes
2+
//
23

34
#![crate_type = "lib"]
45

src/test/codegen/target-cpu-on-functions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// "target-cpu" attribute in LLVM.
33

44
// no-prefer-dynamic
5+
//
56
// compile-flags: -C no-prepopulate-passes -C panic=abort -C linker-plugin-lto -Cpasses=name-anon-globals
67

78
#![crate_type = "staticlib"]

src/test/codegen/tune-cpu-on-functions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// "tune-cpu" attribute in LLVM.
33

44
// no-prefer-dynamic
5+
//
56
// compile-flags: -C no-prepopulate-passes -C panic=abort -C linker-plugin-lto -Cpasses=name-anon-globals -Z tune-cpu=generic
67

78
#![crate_type = "staticlib"]

0 commit comments

Comments
 (0)