diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-03-03 07:00:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 07:00:48 +0000 |
| commit | 015e81d08f4320fd9bbaed390405cbea4e3b21a1 (patch) | |
| tree | de4c406ac035a22c6e874bd6563ab463d75df678 /tests/codegen/function-return.rs | |
| parent | c6a7251c22094f7fc4247c6cc379eb33f3f8c2af (diff) | |
| parent | 24c480e350a1307e3b8a4b53a5bdf708b94905d1 (diff) | |
| download | rust-015e81d08f4320fd9bbaed390405cbea4e3b21a1.tar.gz rust-015e81d08f4320fd9bbaed390405cbea4e3b21a1.zip | |
Merge pull request #19269 from lnicola/sync-from-rust
minor: sync from downstream
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() { |
