diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-03-14 16:08:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-14 16:08:03 +0800 |
| commit | 3d9bf08289176c2185aee3a7a864e165f1717af4 (patch) | |
| tree | 478858b36091b857f8213f72f15ae300e41d963d /tests/codegen/function-return.rs | |
| parent | a863f2c6b22a6bc7b9a85d7e7ff0534ab0e10a05 (diff) | |
| parent | 7bde17630561c8df94676cb6950b27c648de0e54 (diff) | |
| download | rust-3d9bf08289176c2185aee3a7a864e165f1717af4.tar.gz rust-3d9bf08289176c2185aee3a7a864e165f1717af4.zip | |
Merge pull request #2283 from jieyouxu/sync
Rustc pull
Diffstat (limited to 'tests/codegen/function-return.rs')
| -rw-r--r-- | tests/codegen/function-return.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/codegen/function-return.rs b/tests/codegen/function-return.rs index 2b9de4e1478..4127f516038 100644 --- a/tests/codegen/function-return.rs +++ b/tests/codegen/function-return.rs @@ -1,6 +1,7 @@ // Test that the `fn_ret_thunk_extern` function attribute is (not) emitted when // the `-Zfunction-return={keep,thunk-extern}` flag is (not) set. +//@ add-core-stubs //@ revisions: unset keep thunk-extern keep-thunk-extern thunk-extern-keep //@ needs-llvm-components: x86 //@ compile-flags: --target x86_64-unknown-linux-gnu @@ -13,8 +14,8 @@ #![feature(no_core, lang_items)] #![no_core] -#[lang = "sized"] -trait Sized {} +extern crate minicore; +use minicore::*; #[no_mangle] pub fn foo() { |
