diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/codegen/internalize-closures.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/codegen/internalize-closures.rs')
-rw-r--r-- | src/test/codegen/internalize-closures.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/codegen/internalize-closures.rs b/src/test/codegen/internalize-closures.rs deleted file mode 100644 index ab3dc3fba..000000000 --- a/src/test/codegen/internalize-closures.rs +++ /dev/null @@ -1,14 +0,0 @@ -// compile-flags: -C no-prepopulate-passes -Zmir-opt-level=0 - -pub fn main() { - - // We want to make sure that closures get 'internal' linkage instead of - // 'weak_odr' when they are not shared between codegen units - // FIXME(eddyb) `legacy` mangling uses `{{closure}}`, while `v0` - // uses `{closure#0}`, switch to the latter once `legacy` is gone. - // CHECK-LABEL: ; internalize_closures::main::{{.*}}closure - // CHECK-NEXT: ; Function Attrs: - // CHECK-NEXT: define internal - let c = |x:i32| { x + 1 }; - let _ = c(1); -} |