diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-03-13 15:20:11 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-03-13 15:20:11 +0800 |
| commit | 7bde17630561c8df94676cb6950b27c648de0e54 (patch) | |
| tree | 36f02f05011b3474033443ffd46313083c1da9f7 /tests/codegen/function-return.rs | |
| parent | d4c5e752c51e61f9a34188d214d15647d7653dca (diff) | |
| parent | 8536f201ffdb2c24925d7f9e87996d7dca93428b (diff) | |
| download | rust-7bde17630561c8df94676cb6950b27c648de0e54.tar.gz rust-7bde17630561c8df94676cb6950b27c648de0e54.zip | |
Merge from rustc
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() { |
