diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/rust.py | 170 | ||||
-rw-r--r-- | meta/recipes-devtools/rust/files/rust-oe-selftest.patch | 69 |
2 files changed, 122 insertions, 117 deletions
diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py index aa5814eccf..09487e3e23 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py | |||
@@ -67,10 +67,21 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): | |||
67 | # then runs tidy checks. | 67 | # then runs tidy checks. |
68 | exclude_list = [ | 68 | exclude_list = [ |
69 | 'compiler/rustc', | 69 | 'compiler/rustc', |
70 | 'compiler/rustc_errors/src/markdown/tests/term.rs', | ||
71 | 'compiler/rustc_expand', | ||
70 | 'compiler/rustc_interface/src/tests.rs', | 72 | 'compiler/rustc_interface/src/tests.rs', |
73 | 'compiler/rustc_span', | ||
71 | 'library/panic_abort', | 74 | 'library/panic_abort', |
72 | 'library/panic_unwind', | 75 | 'library/panic_unwind', |
76 | 'library/std/src/io/buffered/tests.rs', | ||
77 | 'library/std/src/io/stdio/tests.rs', | ||
78 | 'library/std/src/sync/mpsc/sync_tests.rs', | ||
79 | 'library/std/src/sync/mpsc/tests.rs', | ||
80 | 'library/std/src/sync/mutex/tests.rs', | ||
81 | 'library/std/src/sync/rwlock/tests.rs', | ||
82 | 'library/std/src/thread/tests.rs', | ||
73 | 'library/test/src/stats/tests.rs', | 83 | 'library/test/src/stats/tests.rs', |
84 | 'src/bootstrap', | ||
74 | 'src/bootstrap/builder/tests.rs', | 85 | 'src/bootstrap/builder/tests.rs', |
75 | 'src/doc/rustc', | 86 | 'src/doc/rustc', |
76 | 'src/doc/rustdoc', | 87 | 'src/doc/rustdoc', |
@@ -78,39 +89,100 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): | |||
78 | 'src/librustdoc', | 89 | 'src/librustdoc', |
79 | 'src/rustdoc-json-types', | 90 | 'src/rustdoc-json-types', |
80 | 'src/tools/compiletest/src/common.rs', | 91 | 'src/tools/compiletest/src/common.rs', |
92 | 'src/tools/jsondoclint', | ||
81 | 'src/tools/lint-docs', | 93 | 'src/tools/lint-docs', |
94 | 'src/tools/replace-version-placeholder', | ||
82 | 'src/tools/rust-analyzer', | 95 | 'src/tools/rust-analyzer', |
83 | 'src/tools/rustdoc-themes', | 96 | 'src/tools/rustdoc-themes', |
97 | 'src/tools/rust-installer', | ||
98 | 'src/tools/suggest-tests', | ||
84 | 'src/tools/tidy', | 99 | 'src/tools/tidy', |
100 | 'src/tools/tidy/src/', | ||
85 | 'tests/assembly/asm/aarch64-outline-atomics.rs', | 101 | 'tests/assembly/asm/aarch64-outline-atomics.rs', |
102 | 'tests/codegen/abi-efiapi.rs', | ||
86 | 'tests/codegen/abi-main-signature-32bit-c-int.rs', | 103 | 'tests/codegen/abi-main-signature-32bit-c-int.rs', |
87 | 'tests/codegen/abi-repr-ext.rs', | 104 | 'tests/codegen/abi-repr-ext.rs', |
105 | 'tests/codegen/abi-sysv64.rs', | ||
88 | 'tests/codegen/abi-x86-interrupt.rs', | 106 | 'tests/codegen/abi-x86-interrupt.rs', |
107 | 'tests/codegen/adjustments.rs', | ||
108 | 'tests/codegen/align-byval.rs', | ||
109 | 'tests/codegen/align-fn.rs', | ||
110 | 'tests/codegen/ascii-char.rs', | ||
111 | 'tests/codegen/asm-powerpc-clobbers.rs', | ||
112 | 'tests/codegen/async-fn-debug-awaitee-field.rs', | ||
113 | 'tests/codegen/binary-search-index-no-bound-check.rs', | ||
114 | 'tests/codegen/bool-cmp.rs', | ||
89 | 'tests/codegen/branch-protection.rs', | 115 | 'tests/codegen/branch-protection.rs', |
116 | 'tests/codegen/call-metadata.rs', | ||
90 | 'tests/codegen/catch-unwind.rs', | 117 | 'tests/codegen/catch-unwind.rs', |
91 | 'tests/codegen/cf-protection.rs', | 118 | 'tests/codegen/cf-protection.rs', |
119 | 'tests/codegen/coercions.rs', | ||
120 | 'tests/codegen/cold-call-declare-and-call.rs', | ||
121 | 'tests/codegen/common_prim_int_ptr.rs', | ||
122 | 'tests/codegen/const_scalar_pair.rs', | ||
123 | 'tests/codegen/consts.rs', | ||
124 | 'tests/codegen/debug-accessibility/public-enum.rs', | ||
125 | 'tests/codegen/debug-accessibility/tuple-fields.rs', | ||
126 | 'tests/codegen/debug-alignment.rs', | ||
127 | 'tests/codegen/debug-column.rs', | ||
128 | 'tests/codegen/debuginfo-generic-closure-env-names.rs', | ||
129 | 'tests/codegen/debuginfo-inline-callsite-location.rs', | ||
130 | 'tests/codegen/debug-limited.rs', | ||
131 | 'tests/codegen/default-requires-uwtable.rs', | ||
132 | 'tests/codegen/drop.rs', | ||
133 | 'tests/codegen/dst-vtable-align-nonzero.rs', | ||
134 | 'tests/codegen/enable-lto-unit-splitting.rs', | ||
92 | 'tests/codegen/enum-bounds-check-derived-idx.rs', | 135 | 'tests/codegen/enum-bounds-check-derived-idx.rs', |
136 | 'tests/codegen/enum/enum-bounds-check.rs', | ||
137 | 'tests/codegen/enum/enum-debug-tagged.rs', | ||
138 | 'tests/codegen/enum/enum-u128.rs', | ||
139 | 'tests/codegen/export-no-mangle.rs', | ||
140 | 'tests/codegen/fastcall-inreg.rs', | ||
141 | 'tests/codegen/float_math.rs', | ||
142 | 'tests/codegen/fn-impl-trait-self.rs', | ||
93 | 'tests/codegen/force-unwind-tables.rs', | 143 | 'tests/codegen/force-unwind-tables.rs', |
144 | 'tests/codegen/frame-pointer.rs', | ||
145 | 'tests/codegen/i128-x86-align.rs', | ||
146 | 'tests/codegen/inherit_overflow.rs', | ||
147 | 'tests/codegen/inline-function-args-debug-info.rs', | ||
94 | 'tests/codegen/intrinsic-no-unnamed-attr.rs', | 148 | 'tests/codegen/intrinsic-no-unnamed-attr.rs', |
149 | 'tests/codegen/intrinsics/mask.rs', | ||
150 | 'tests/codegen/intrinsics/transmute-niched.rs', | ||
151 | 'tests/codegen/issues', | ||
95 | 'tests/codegen/issues/issue-103840.rs', | 152 | 'tests/codegen/issues/issue-103840.rs', |
153 | 'tests/codegen/issues/issue-122805.rs', | ||
96 | 'tests/codegen/issues/issue-47278.rs', | 154 | 'tests/codegen/issues/issue-47278.rs', |
155 | 'tests/codegen/issues/issue-73258.rs', | ||
97 | 'tests/codegen/issues/issue-73827-bounds-check-index-in-subexpr.rs', | 156 | 'tests/codegen/issues/issue-73827-bounds-check-index-in-subexpr.rs', |
157 | 'tests/codegen/issues/issue-75546.rs', | ||
158 | 'tests/codegen/issues/issue-77812.rs', | ||
159 | 'tests/codegen/issues/issue-98156-const-arg-temp-lifetime.rs', | ||
98 | 'tests/codegen/lifetime_start_end.rs', | 160 | 'tests/codegen/lifetime_start_end.rs', |
161 | 'tests/codegen/llvm-ident.rs', | ||
99 | 'tests/codegen/local-generics-in-exe-internalized.rs', | 162 | 'tests/codegen/local-generics-in-exe-internalized.rs', |
163 | 'tests/codegen/macos/x86_64-macosx-deployment-target.rs', | ||
164 | 'tests/codegen/mainsubprogram.rs', | ||
100 | 'tests/codegen/match-unoptimized.rs', | 165 | 'tests/codegen/match-unoptimized.rs', |
166 | 'tests/codegen/meta-filecheck/check-prefix.rs', | ||
167 | 'tests/codegen/meta-filecheck/filecheck-flags.rs', | ||
168 | 'tests/codegen/move-operands.rs', | ||
101 | 'tests/codegen/noalias-rwlockreadguard.rs', | 169 | 'tests/codegen/noalias-rwlockreadguard.rs', |
170 | 'tests/codegen/non-terminate/infinite-loop-1.rs', | ||
102 | 'tests/codegen/non-terminate/nonempty-infinite-loop.rs', | 171 | 'tests/codegen/non-terminate/nonempty-infinite-loop.rs', |
103 | 'tests/codegen/noreturn-uninhabited.rs', | 172 | 'tests/codegen/noreturn-uninhabited.rs', |
104 | 'tests/codegen/repr-transparent-aggregates-3.rs', | 173 | 'tests/codegen/repr-transparent-aggregates-3.rs', |
174 | 'tests/codegen/repr/transparent-mips64.rs', | ||
105 | 'tests/codegen/riscv-abi/call-llvm-intrinsics.rs', | 175 | 'tests/codegen/riscv-abi/call-llvm-intrinsics.rs', |
106 | 'tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs', | ||
107 | 'tests/codegen/riscv-abi/riscv64-lp64d-abi.rs', | 176 | 'tests/codegen/riscv-abi/riscv64-lp64d-abi.rs', |
177 | 'tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs', | ||
108 | 'tests/codegen/sse42-implies-crc32.rs', | 178 | 'tests/codegen/sse42-implies-crc32.rs', |
109 | 'tests/codegen/thread-local.rs', | 179 | 'tests/codegen/thread-local.rs', |
110 | 'tests/codegen/uninit-consts.rs', | 180 | 'tests/codegen/uninit-consts.rs', |
181 | 'tests/mir-opt/', | ||
111 | 'tests/pretty/raw-str-nonexpr.rs', | 182 | 'tests/pretty/raw-str-nonexpr.rs', |
112 | 'tests/run-make', | 183 | 'tests/run-make', |
113 | 'tests/run-make-fulldeps', | 184 | 'tests/run-make-fulldeps', |
185 | 'tests/run-pass-valgrind', | ||
114 | 'tests/rustdoc', | 186 | 'tests/rustdoc', |
115 | 'tests/rustdoc-json', | 187 | 'tests/rustdoc-json', |
116 | 'tests/rustdoc-js-std', | 188 | 'tests/rustdoc-js-std', |
@@ -133,111 +205,33 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): | |||
133 | 'tests/rustdoc-ui/test-no_std.rs', | 205 | 'tests/rustdoc-ui/test-no_std.rs', |
134 | 'tests/rustdoc-ui/test-type.rs', | 206 | 'tests/rustdoc-ui/test-type.rs', |
135 | 'tests/rustdoc/unit-return.rs', | 207 | 'tests/rustdoc/unit-return.rs', |
208 | 'tests/ui/abi/extern', | ||
136 | 'tests/ui/abi/stack-probes-lto.rs', | 209 | 'tests/ui/abi/stack-probes-lto.rs', |
137 | 'tests/ui/abi/stack-probes.rs', | 210 | 'tests/ui/abi/stack-probes.rs', |
211 | 'tests/ui/allocator', | ||
212 | 'tests/ui/array-slice-vec', | ||
138 | 'tests/ui/array-slice-vec/subslice-patterns-const-eval-match.rs', | 213 | 'tests/ui/array-slice-vec/subslice-patterns-const-eval-match.rs', |
139 | 'tests/ui/asm/x86_64/sym.rs', | 214 | 'tests/ui/asm/x86_64/sym.rs', |
215 | 'tests/ui/associated-consts', | ||
140 | 'tests/ui/associated-type-bounds/fn-apit.rs', | 216 | 'tests/ui/associated-type-bounds/fn-apit.rs', |
141 | 'tests/ui/associated-type-bounds/fn-dyn-apit.rs', | 217 | 'tests/ui/associated-type-bounds/fn-dyn-apit.rs', |
142 | 'tests/ui/associated-type-bounds/fn-wrap-apit.rs', | 218 | 'tests/ui/associated-type-bounds/fn-wrap-apit.rs', |
219 | 'tests/ui/associated-types', | ||
220 | 'tests/ui/codegen/mismatched-data-layouts.rs', | ||
143 | 'tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs', | 221 | 'tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs', |
144 | 'tests/ui/drop/dynamic-drop.rs', | 222 | 'tests/ui/drop/dynamic-drop.rs', |
145 | 'tests/ui/empty_global_asm.rs', | 223 | 'tests/ui/empty_global_asm.rs', |
224 | 'tests/ui-fulldeps/', | ||
146 | 'tests/ui/functions-closures/fn-help-with-err.rs', | 225 | 'tests/ui/functions-closures/fn-help-with-err.rs', |
147 | 'tests/ui/linkage-attr/issue-10755.rs', | 226 | 'tests/ui/linkage-attr/issue-10755.rs', |
148 | 'tests/ui/macros/restricted-shadowing-legacy.rs', | 227 | 'tests/ui/macros/restricted-shadowing-legacy.rs', |
228 | 'tests/ui/numbers-arithmetic/u128.rs', | ||
149 | 'tests/ui/process/nofile-limit.rs', | 229 | 'tests/ui/process/nofile-limit.rs', |
150 | 'tests/ui/process/process-panic-after-fork.rs', | 230 | 'tests/ui/process/process-panic-after-fork.rs', |
151 | 'tests/ui/process/process-sigpipe.rs', | 231 | 'tests/ui/process/process-sigpipe.rs', |
152 | 'tests/ui/simd/target-feature-mixup.rs', | 232 | 'tests/ui/simd/target-feature-mixup.rs', |
153 | 'tests/ui/structs-enums/multiple-reprs.rs', | 233 | 'tests/ui/structs-enums/multiple-reprs.rs', |
154 | 'src/tools/jsondoclint', | 234 | 'tidyselftest' |
155 | 'src/tools/replace-version-placeholder', | ||
156 | 'tests/codegen/abi-efiapi.rs', | ||
157 | 'tests/codegen/abi-sysv64.rs', | ||
158 | 'tests/codegen/align-byval.rs', | ||
159 | 'tests/codegen/align-fn.rs', | ||
160 | 'tests/codegen/asm-powerpc-clobbers.rs', | ||
161 | 'tests/codegen/async-fn-debug-awaitee-field.rs', | ||
162 | 'tests/codegen/binary-search-index-no-bound-check.rs', | ||
163 | 'tests/codegen/call-metadata.rs', | ||
164 | 'tests/codegen/debug-column.rs', | ||
165 | 'tests/codegen/debug-limited.rs', | ||
166 | 'tests/codegen/debuginfo-generic-closure-env-names.rs', | ||
167 | 'tests/codegen/drop.rs', | ||
168 | 'tests/codegen/dst-vtable-align-nonzero.rs', | ||
169 | 'tests/codegen/enable-lto-unit-splitting.rs', | ||
170 | 'tests/codegen/enum/enum-u128.rs', | ||
171 | 'tests/codegen/fn-impl-trait-self.rs', | ||
172 | 'tests/codegen/inherit_overflow.rs', | ||
173 | 'tests/codegen/inline-function-args-debug-info.rs', | ||
174 | 'tests/codegen/intrinsics/mask.rs', | ||
175 | 'tests/codegen/intrinsics/transmute-niched.rs', | ||
176 | 'tests/codegen/issues/issue-73258.rs', | ||
177 | 'tests/codegen/issues/issue-75546.rs', | ||
178 | 'tests/codegen/issues/issue-77812.rs', | ||
179 | 'tests/codegen/issues/issue-98156-const-arg-temp-lifetime.rs', | ||
180 | 'tests/codegen/llvm-ident.rs', | ||
181 | 'tests/codegen/mainsubprogram.rs', | ||
182 | 'tests/codegen/move-operands.rs', | ||
183 | 'tests/codegen/repr/transparent-mips64.rs', | ||
184 | 'tests/mir-opt/', | ||
185 | 'tests/rustdoc-json', | ||
186 | 'tests/rustdoc-ui/doc-test-rustdoc-feature.rs', | ||
187 | 'tests/rustdoc-ui/no-run-flag.rs', | ||
188 | 'tests/ui-fulldeps/', | ||
189 | 'tests/ui/numbers-arithmetic/u128.rs' | ||
190 | 'tests/run-pass-valgrind', | ||
191 | 'tests/ui/codegen/mismatched-data-layouts.rs', | ||
192 | 'tests/codegen/i128-x86-align.rs', | ||
193 | 'src/tools/suggest-tests', | ||
194 | 'src/tools/rust-installer', | ||
195 | 'src/bootstrap', | ||
196 | 'src/tools/tidy/src/', | ||
197 | 'library/std/src/thread/tests.rs', | ||
198 | 'compiler/rustc_errors/src/markdown/tests/term.rs', | ||
199 | 'compiler/rustc_interface/src/tests.rs', | ||
200 | 'library/std/src/io/buffered/tests.rs', | ||
201 | 'library/std/src/io/stdio/tests.rs', | ||
202 | 'library/std/src/sync/mpsc/sync_tests.rs', | ||
203 | 'library/std/src/sync/mpsc/tests.rs', | ||
204 | 'library/std/src/sync/mutex/tests.rs', | ||
205 | 'library/std/src/sync/rwlock/tests.rs', | ||
206 | 'library/std/src/thread/tests.rs', | ||
207 | 'library/test/src/stats/tests.rs', | ||
208 | 'tidyselftest', | ||
209 | 'compiler/rustc_span', | ||
210 | 'compiler/rustc_expand', | ||
211 | 'tests/ui/array-slice-vec', | ||
212 | 'tests/ui/associated-consts', | ||
213 | 'tests/ui/associated-types', | ||
214 | 'tests/ui/allocator', | ||
215 | 'tests/ui/abi/extern', | ||
216 | 'tests/codegen/non-terminate/infinite-loop-1.rs', | ||
217 | 'tests/codegen/coercions.rs', | ||
218 | 'tests/codegen/const_scalar_pair.rs', | ||
219 | 'tests/codegen/cold-call-declare-and-call.rs', | ||
220 | 'tests/codegen/issues', | ||
221 | 'tests/codegen/bool-cmp.rs', | ||
222 | 'tests/codegen/ascii-char.rs', | ||
223 | 'tests/codegen/frame-pointer.rs', | ||
224 | 'tests/codegen/common_prim_int_ptr.rs', | ||
225 | 'tests/codegen/default-requires-uwtable.rs', | ||
226 | 'tests/codegen/debug-accessibility/public-enum.rs', | ||
227 | 'tests/codegen/meta-filecheck/filecheck-flags.rs', | ||
228 | 'tests/codegen/float_math.rs', | ||
229 | 'tests/codegen/debug-accessibility/tuple-fields.rs', | ||
230 | 'tests/codegen/consts.rs', | ||
231 | 'tests/codegen/enum/enum-bounds-check.rs', | ||
232 | 'tests/codegen/debug-alignment.rs', | ||
233 | 'tests/codegen/export-no-mangle.rs', | ||
234 | 'tests/codegen/fastcall-inreg.rs', | ||
235 | 'tests/codegen/debuginfo-inline-callsite-location.rs', | ||
236 | 'tests/codegen/enum/enum-debug-tagged.rs', | ||
237 | 'tests/codegen/adjustments.rs', | ||
238 | 'tests/codegen/macos/x86_64-macosx-deployment-target.rs', | ||
239 | 'tests/codegen/frame-pointer.rs', | ||
240 | 'tests/codegen/meta-filecheck/check-prefix.rs' | ||
241 | ] | 235 | ] |
242 | 236 | ||
243 | exclude_fail_tests = " ".join([" --exclude " + item for item in exclude_list]) | 237 | exclude_fail_tests = " ".join([" --exclude " + item for item in exclude_list]) |
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index a69c1e5237..01c3634d9f 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch | |||
@@ -8,7 +8,7 @@ Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | |||
8 | diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs | 8 | diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs |
9 | --- a/compiler/rustc_errors/src/markdown/tests/term.rs | 9 | --- a/compiler/rustc_errors/src/markdown/tests/term.rs |
10 | +++ b/compiler/rustc_errors/src/markdown/tests/term.rs | 10 | +++ b/compiler/rustc_errors/src/markdown/tests/term.rs |
11 | @@ -60,6 +60,7 @@ | 11 | @@ -61,6 +61,7 @@ fn test_wrapping_write() { |
12 | } | 12 | } |
13 | 13 | ||
14 | #[test] | 14 | #[test] |
@@ -19,31 +19,30 @@ diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_e | |||
19 | diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs | 19 | diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs |
20 | --- a/compiler/rustc_interface/src/tests.rs | 20 | --- a/compiler/rustc_interface/src/tests.rs |
21 | +++ b/compiler/rustc_interface/src/tests.rs | 21 | +++ b/compiler/rustc_interface/src/tests.rs |
22 | @@ -116,6 +116,7 @@ | 22 | @@ -137,6 +137,7 @@ fn assert_non_crate_hash_different(x: &Options, y: &Options) { |
23 | 23 | ||
24 | // When the user supplies --test we should implicitly supply --cfg test | 24 | // When the user supplies --test we should implicitly supply --cfg test |
25 | #[test] | 25 | #[test] |
26 | +#[ignore] | 26 | +#[ignore] |
27 | fn test_switch_implies_cfg_test() { | 27 | fn test_switch_implies_cfg_test() { |
28 | rustc_span::create_default_session_globals_then(|| { | 28 | sess_and_cfg(&["--test"], |_sess, cfg| { |
29 | let matches = optgroups().parse(&["--test".to_string()]).unwrap(); | 29 | assert!(cfg.contains(&(sym::test, None))); |
30 | @@ -127,6 +128,7 @@ | 30 | @@ -145,6 +146,7 @@ fn test_switch_implies_cfg_test() { |
31 | 31 | ||
32 | // When the user supplies --test and --cfg test, don't implicitly add another --cfg test | 32 | // When the user supplies --test and --cfg test, don't implicitly add another --cfg test |
33 | #[test] | 33 | #[test] |
34 | +#[ignore] | 34 | +#[ignore] |
35 | fn test_switch_implies_cfg_test_unless_cfg_test() { | 35 | fn test_switch_implies_cfg_test_unless_cfg_test() { |
36 | rustc_span::create_default_session_globals_then(|| { | 36 | sess_and_cfg(&["--test", "--cfg=test"], |_sess, cfg| { |
37 | let matches = optgroups().parse(&["--test".to_string(), "--cfg=test".to_string()]).unwrap(); | 37 | let mut test_items = cfg.iter().filter(|&&(name, _)| name == sym::test); |
38 | @@ -139,6 +141,7 @@ | 38 | @@ -154,6 +156,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() { |
39 | } | 39 | } |
40 | 40 | ||
41 | #[test] | 41 | #[test] |
42 | +#[ignore] | 42 | +#[ignore] |
43 | fn test_can_print_warnings() { | 43 | fn test_can_print_warnings() { |
44 | rustc_span::create_default_session_globals_then(|| { | 44 | sess_and_cfg(&["-Awarnings"], |sess, _cfg| { |
45 | let matches = optgroups().parse(&["-Awarnings".to_string()]).unwrap(); | 45 | assert!(!sess.dcx().can_emit_warnings()); |
46 | |||
47 | diff --git a/library/test/src/stats/tests.rs b/library/test/src/stats/tests.rs | 46 | diff --git a/library/test/src/stats/tests.rs b/library/test/src/stats/tests.rs |
48 | --- a/library/test/src/stats/tests.rs | 47 | --- a/library/test/src/stats/tests.rs |
49 | +++ b/library/test/src/stats/tests.rs | 48 | +++ b/library/test/src/stats/tests.rs |
@@ -59,7 +58,7 @@ diff --git a/library/std/src/io/buffered/tests.rs b/library/std/src/io/buffered/ | |||
59 | index 35a5291a347..5f2858d2505 100644 | 58 | index 35a5291a347..5f2858d2505 100644 |
60 | --- a/library/std/src/io/buffered/tests.rs | 59 | --- a/library/std/src/io/buffered/tests.rs |
61 | +++ b/library/std/src/io/buffered/tests.rs | 60 | +++ b/library/std/src/io/buffered/tests.rs |
62 | @@ -485,6 +485,7 @@ fn flush(&mut self) -> io::Result<()> { | 61 | @@ -488,6 +488,7 @@ fn flush(&mut self) -> io::Result<()> { |
63 | } | 62 | } |
64 | 63 | ||
65 | #[test] | 64 | #[test] |
@@ -187,7 +186,7 @@ index 1786a3c09ff..9dcead7092b 100644 | |||
187 | fn test_mutex_arc_poison() { | 186 | fn test_mutex_arc_poison() { |
188 | let arc = Arc::new(Mutex::new(1)); | 187 | let arc = Arc::new(Mutex::new(1)); |
189 | assert!(!arc.is_poisoned()); | 188 | assert!(!arc.is_poisoned()); |
190 | @@ -205,6 +209,7 @@ fn test_mutex_arc_nested() { | 189 | @@ -220,6 +220,7 @@ fn test_mutex_arc_nested() { |
191 | } | 190 | } |
192 | 191 | ||
193 | #[test] | 192 | #[test] |
@@ -199,7 +198,7 @@ diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/rwlock/ | |||
199 | index 1a9d3d3f12f..0a9cfc48806 100644 | 198 | index 1a9d3d3f12f..0a9cfc48806 100644 |
200 | --- a/library/std/src/sync/rwlock/tests.rs | 199 | --- a/library/std/src/sync/rwlock/tests.rs |
201 | +++ b/library/std/src/sync/rwlock/tests.rs | 200 | +++ b/library/std/src/sync/rwlock/tests.rs |
202 | @@ -44,6 +44,7 @@ fn frob() { | 201 | @@ -47,6 +47,7 @@ fn frob() { |
203 | } | 202 | } |
204 | 203 | ||
205 | #[test] | 204 | #[test] |
@@ -207,7 +206,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
207 | fn test_rw_arc_poison_wr() { | 206 | fn test_rw_arc_poison_wr() { |
208 | let arc = Arc::new(RwLock::new(1)); | 207 | let arc = Arc::new(RwLock::new(1)); |
209 | let arc2 = arc.clone(); | 208 | let arc2 = arc.clone(); |
210 | @@ -56,6 +57,7 @@ fn test_rw_arc_poison_wr() { | 209 | @@ -72,6 +73,7 @@ fn test_rw_arc_poison_mapped_w_r() { |
211 | } | 210 | } |
212 | 211 | ||
213 | #[test] | 212 | #[test] |
@@ -215,7 +214,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
215 | fn test_rw_arc_poison_ww() { | 214 | fn test_rw_arc_poison_ww() { |
216 | let arc = Arc::new(RwLock::new(1)); | 215 | let arc = Arc::new(RwLock::new(1)); |
217 | assert!(!arc.is_poisoned()); | 216 | assert!(!arc.is_poisoned()); |
218 | @@ -70,6 +72,7 @@ fn test_rw_arc_poison_ww() { | 217 | @@ -100,6 +102,7 @@ fn test_rw_arc_poison_mapped_w_w() { |
219 | } | 218 | } |
220 | 219 | ||
221 | #[test] | 220 | #[test] |
@@ -223,7 +222,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
223 | fn test_rw_arc_no_poison_rr() { | 222 | fn test_rw_arc_no_poison_rr() { |
224 | let arc = Arc::new(RwLock::new(1)); | 223 | let arc = Arc::new(RwLock::new(1)); |
225 | let arc2 = arc.clone(); | 224 | let arc2 = arc.clone(); |
226 | @@ -127,6 +127,7 @@ | 225 | @@ -127,6 +130,7 @@ fn test_rw_arc_no_poison_mapped_r_r() { |
227 | } | 226 | } |
228 | 227 | ||
229 | #[test] | 228 | #[test] |
@@ -231,7 +230,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
231 | fn test_rw_arc_no_poison_rw() { | 230 | fn test_rw_arc_no_poison_rw() { |
232 | let arc = Arc::new(RwLock::new(1)); | 231 | let arc = Arc::new(RwLock::new(1)); |
233 | let arc2 = arc.clone(); | 232 | let arc2 = arc.clone(); |
234 | @@ -133,6 +137,7 @@ fn test_rw_arc() { | 233 | @@ -192,6 +196,7 @@ fn test_rw_arc() { |
235 | } | 234 | } |
236 | 235 | ||
237 | #[test] | 236 | #[test] |
@@ -239,7 +238,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
239 | fn test_rw_arc_access_in_unwind() { | 238 | fn test_rw_arc_access_in_unwind() { |
240 | let arc = Arc::new(RwLock::new(1)); | 239 | let arc = Arc::new(RwLock::new(1)); |
241 | let arc2 = arc.clone(); | 240 | let arc2 = arc.clone(); |
242 | @@ -206,6 +211,7 @@ fn drop(&mut self) { | 241 | @@ -275,6 +280,7 @@ fn drop(&mut self) { |
243 | } | 242 | } |
244 | 243 | ||
245 | #[test] | 244 | #[test] |
@@ -247,7 +246,7 @@ index 1a9d3d3f12f..0a9cfc48806 100644 | |||
247 | fn test_into_inner_poison() { | 246 | fn test_into_inner_poison() { |
248 | let m = Arc::new(RwLock::new(NonCopy(10))); | 247 | let m = Arc::new(RwLock::new(NonCopy(10))); |
249 | let m2 = m.clone(); | 248 | let m2 = m.clone(); |
250 | @@ -230,6 +236,7 @@ fn test_get_mut() { | 249 | @@ -299,6 +305,7 @@ fn test_get_mut() { |
251 | } | 250 | } |
252 | 251 | ||
253 | #[test] | 252 | #[test] |
@@ -279,7 +278,7 @@ diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs | |||
279 | index 5d6b9e94ee9..a5aacb2eb87 100644 | 278 | index 5d6b9e94ee9..a5aacb2eb87 100644 |
280 | --- a/library/std/src/thread/tests.rs | 279 | --- a/library/std/src/thread/tests.rs |
281 | +++ b/library/std/src/thread/tests.rs | 280 | +++ b/library/std/src/thread/tests.rs |
282 | @@ -115,6 +115,7 @@ fn test_is_finished() { | 281 | @@ -116,6 +116,7 @@ fn test_is_finished() { |
283 | } | 282 | } |
284 | 283 | ||
285 | #[test] | 284 | #[test] |
@@ -287,7 +286,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644 | |||
287 | fn test_join_panic() { | 286 | fn test_join_panic() { |
288 | match thread::spawn(move || panic!()).join() { | 287 | match thread::spawn(move || panic!()).join() { |
289 | result::Result::Err(_) => (), | 288 | result::Result::Err(_) => (), |
290 | @@ -217,6 +218,7 @@ fn test_simple_newsched_spawn() { | 289 | @@ -218,6 +219,7 @@ fn test_simple_newsched_spawn() { |
291 | } | 290 | } |
292 | 291 | ||
293 | #[test] | 292 | #[test] |
@@ -295,7 +294,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644 | |||
295 | fn test_try_panic_message_string_literal() { | 294 | fn test_try_panic_message_string_literal() { |
296 | match thread::spawn(move || { | 295 | match thread::spawn(move || { |
297 | panic!("static string"); | 296 | panic!("static string"); |
298 | @@ -233,6 +235,7 @@ fn test_try_panic_message_string_literal() { | 297 | @@ -234,6 +236,7 @@ fn test_try_panic_message_string_literal() { |
299 | } | 298 | } |
300 | 299 | ||
301 | #[test] | 300 | #[test] |
@@ -303,7 +302,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644 | |||
303 | fn test_try_panic_any_message_owned_str() { | 302 | fn test_try_panic_any_message_owned_str() { |
304 | match thread::spawn(move || { | 303 | match thread::spawn(move || { |
305 | panic_any("owned string".to_string()); | 304 | panic_any("owned string".to_string()); |
306 | @@ -249,6 +252,7 @@ fn test_try_panic_any_message_owned_str() { | 305 | @@ -250,6 +253,7 @@ fn test_try_panic_any_message_owned_str() { |
307 | } | 306 | } |
308 | 307 | ||
309 | #[test] | 308 | #[test] |
@@ -311,7 +310,7 @@ index 5d6b9e94ee9..a5aacb2eb87 100644 | |||
311 | fn test_try_panic_any_message_any() { | 310 | fn test_try_panic_any_message_any() { |
312 | match thread::spawn(move || { | 311 | match thread::spawn(move || { |
313 | panic_any(Box::new(413u16) as Box<dyn Any + Send>); | 312 | panic_any(Box::new(413u16) as Box<dyn Any + Send>); |
314 | @@ -267,6 +271,7 @@ fn test_try_panic_any_message_any() { | 313 | @@ -268,6 +272,7 @@ fn test_try_panic_any_message_any() { |
315 | } | 314 | } |
316 | 315 | ||
317 | #[test] | 316 | #[test] |
@@ -363,10 +362,10 @@ diff --git a/library/std/src/sync/mutex/tests.rs b/library/std/src/sync/mutex/te | |||
363 | fn panic_while_mapping_unlocked_poison() { | 362 | fn panic_while_mapping_unlocked_poison() { |
364 | let lock = Mutex::new(()); | 363 | let lock = Mutex::new(()); |
365 | 364 | ||
366 | diff --git a/ | 365 | diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/rwlock/tests.rs |
367 | --- a/library/std/src/sync/rwlock/tests.rs | 366 | --- a/library/std/src/sync/rwlock/tests.rs |
368 | +++ b/library/std/src/sync/rwlock/tests.rs | 367 | +++ b/library/std/src/sync/rwlock/tests.rs |
369 | @@ -60,6 +60,7 @@ | 368 | @@ -59,6 +59,7 @@ fn test_rw_arc_poison_wr() { |
370 | } | 369 | } |
371 | 370 | ||
372 | #[test] | 371 | #[test] |
@@ -374,7 +373,7 @@ diff --git a/ | |||
374 | fn test_rw_arc_poison_mapped_w_r() { | 373 | fn test_rw_arc_poison_mapped_w_r() { |
375 | let arc = Arc::new(RwLock::new(1)); | 374 | let arc = Arc::new(RwLock::new(1)); |
376 | let arc2 = arc.clone(); | 375 | let arc2 = arc.clone(); |
377 | @@ -88,6 +89,7 @@ | 376 | @@ -86,6 +87,7 @@ fn test_rw_arc_poison_ww() { |
378 | } | 377 | } |
379 | 378 | ||
380 | #[test] | 379 | #[test] |
@@ -382,7 +381,7 @@ diff --git a/ | |||
382 | fn test_rw_arc_poison_mapped_w_w() { | 381 | fn test_rw_arc_poison_mapped_w_w() { |
383 | let arc = Arc::new(RwLock::new(1)); | 382 | let arc = Arc::new(RwLock::new(1)); |
384 | let arc2 = arc.clone(); | 383 | let arc2 = arc.clone(); |
385 | @@ -438,6 +440,7 @@ | 384 | @@ -431,6 +433,7 @@ fn panic_while_mapping_read_unlocked_no_poison() { |
386 | } | 385 | } |
387 | 386 | ||
388 | #[test] | 387 | #[test] |
@@ -390,3 +389,15 @@ diff --git a/ | |||
390 | fn panic_while_mapping_write_unlocked_poison() { | 389 | fn panic_while_mapping_write_unlocked_poison() { |
391 | let lock = RwLock::new(()); | 390 | let lock = RwLock::new(()); |
392 | 391 | ||
392 | diff --git a/library/core/benches/num/int_log/mod.rs b/library/core/benches/num/int_log/mod.rs | ||
393 | index 3807cd5d76c..018c5c04456 100644 | ||
394 | --- a/library/core/benches/num/int_log/mod.rs | ||
395 | +++ b/library/core/benches/num/int_log/mod.rs | ||
396 | @@ -98,6 +98,7 @@ fn $random_small(bench: &mut Bencher) { | ||
397 | } | ||
398 | |||
399 | #[bench] | ||
400 | + #[ignore] | ||
401 | fn $geometric(bench: &mut Bencher) { | ||
402 | let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65]; | ||
403 | let base_and_numbers: Vec<($t, Vec<$t>)> = bases | ||