From a2effde47cb62c725e09a0e14d5944d41b6087d8 Mon Sep 17 00:00:00 2001 From: lincot Date: Fri, 20 Dec 2024 18:13:24 +0300 Subject: [PATCH] add a file-level comment to the `string-push` codegen test --- tests/codegen/string-push.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/codegen/string-push.rs b/tests/codegen/string-push.rs index 72ecc6d04c5e1..cf5f6bb1aa399 100644 --- a/tests/codegen/string-push.rs +++ b/tests/codegen/string-push.rs @@ -1,3 +1,5 @@ +//! Check that `String::push` is optimized enough not to call `memcpy`. + //@ compile-flags: -O #![crate_type = "lib"]