Skip to content

Commit 2741dd8

Browse files
committed
ignore std/test/codegen/mem-replace-direct-memcpy.rs in the 1.64-beta.
1 parent 63bb951 commit 2741dd8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/codegen/mem-replace-direct-memcpy.rs

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// ignore-test
2+
3+
// WHY IS THIS TEST BEING IGNORED:
4+
//
5+
// This test depends on characteristics of how the stdlib was compiled,
6+
// namely that sufficient inlining occurred to ensure that the call to
7+
// `std::mem::replace` boils down to just two calls of `llvm.memcpy`.
8+
//
9+
// But the MIR inlining policy is in flux as of 1.64-beta, and the intermittent
10+
// breakage of this test that results is causing problems for people trying to
11+
// do development.
12+
113
// This test ensures that `mem::replace::<T>` only ever calls `@llvm.memcpy`
214
// with `size_of::<T>()` as the size, and never goes through any wrapper that
315
// may e.g. multiply `size_of::<T>()` with a variable "count" (which is only

0 commit comments

Comments
 (0)