Skip to content

Commit c5749cb

Browse files
committed
Normalize EII dylib test coverage
1 parent 849a980 commit c5749cb

31 files changed

Lines changed: 55 additions & 6 deletions

tests/ui/eii/default/auxiliary/decl_with_default.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ no-prefer-dynamic
2+
//@[dylib] compile-flags: --crate-type=dylib -Cprefer-dynamic
23
#![crate_type = "rlib"]
34
#![feature(extern_item_impls)]
45

tests/ui/eii/default/auxiliary/decl_with_default_panics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ no-prefer-dynamic
2+
//@[dylib] compile-flags: --crate-type=dylib -Cprefer-dynamic
13
//@ needs-unwind
24
//@ exec-env:RUST_BACKTRACE=1
35
#![crate_type = "rlib"]

tests/ui/eii/default/auxiliary/impl1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ no-prefer-dynamic
2+
//@[dylib-impl] compile-flags: --crate-type=dylib -Cprefer-dynamic
23
//@ aux-build: decl_with_default.rs
34
#![crate_type = "rlib"]
45
#![feature(extern_item_impls)]
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default 10

tests/ui/eii/default/call_default.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: rlib dylib
2+
//@[dylib] needs-crate-type: dylib
13
//@ aux-build: decl_with_default.rs
24
//@ run-pass
35
//@ check-run-results

tests/ui/eii/default/call_default_panics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: rlib dylib
2+
//@[dylib] needs-crate-type: dylib
13
//@ aux-build: decl_with_default_panics.rs
24
//@ edition: 2021
35
//@ run-pass
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
110

tests/ui/eii/default/call_impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ revisions: rlib dylib-impl
2+
//@[dylib-impl] needs-crate-type: dylib
13
//@ aux-build: decl_with_default.rs
24
//@ aux-build: impl1.rs
35
//@ run-pass

0 commit comments

Comments
 (0)