File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -53,3 +53,7 @@ internal = ["clippy_lints/internal", "tempfile"]
5353[package .metadata .rust-analyzer ]
5454# This package uses #[feature(rustc_private)]
5555rustc_private = true
56+
57+ [[test ]]
58+ name = " compile-test"
59+ harness = false
Original file line number Diff line number Diff line change @@ -121,13 +121,14 @@ fn run_ui_cargo() {
121121 ui_test:: run_tests_generic ( config, |path| path. ends_with ( "Cargo.toml" ) ) . unwrap ( ) ;
122122}
123123
124- #[ test]
125- fn compile_test ( ) {
124+ fn main ( ) {
126125 set_var ( "CLIPPY_DISABLE_DOCS_LINKS" , "true" ) ;
127126 run_ui ( ) ;
128127 run_ui_toml ( ) ;
129128 run_ui_cargo ( ) ;
130129 run_internal_tests ( ) ;
130+ rustfix_coverage_known_exceptions_accuracy ( ) ;
131+ ui_cargo_toml_metadata ( ) ;
131132}
132133
133134const RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS : & [ & str ] = & [
@@ -199,7 +200,6 @@ fn check_rustfix_coverage() {
199200 }
200201}
201202
202- #[ test]
203203fn rustfix_coverage_known_exceptions_accuracy ( ) {
204204 for filename in RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS {
205205 let rs_path = Path :: new ( "tests/ui" ) . join ( filename) ;
@@ -210,7 +210,6 @@ fn rustfix_coverage_known_exceptions_accuracy() {
210210 }
211211}
212212
213- #[ test]
214213fn ui_cargo_toml_metadata ( ) {
215214 let ui_cargo_path = Path :: new ( "tests/ui-cargo" ) ;
216215 let cargo_common_metadata_path = ui_cargo_path. join ( "cargo_common_metadata" ) ;
You can’t perform that action at this time.
0 commit comments