aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros/src/trans.rs2
-rw-r--r--tests/cfail/resource-not-send-sync.rs (renamed from tests/cfail/resource-not-send.rs)3
2 files changed, 2 insertions, 3 deletions
diff --git a/macros/src/trans.rs b/macros/src/trans.rs
index 77eada41..9bf1e2a9 100644
--- a/macros/src/trans.rs
+++ b/macros/src/trans.rs
@@ -440,8 +440,6 @@ fn resources(app: &App, ownerships: &Ownerships, root: &mut Vec<Tokens>) {
#[allow(non_camel_case_types)]
pub struct #name { _0: PhantomData<*const ()> }
- unsafe impl Sync for #name {}
-
#[allow(unsafe_code)]
impl #name {
pub unsafe fn new() -> Self {
diff --git a/tests/cfail/resource-not-send.rs b/tests/cfail/resource-not-send-sync.rs
index c89c3d31..775c78ae 100644
--- a/tests/cfail/resource-not-send.rs
+++ b/tests/cfail/resource-not-send-sync.rs
@@ -41,8 +41,9 @@ fn is_send<T>(_: &T) where T: Send {}
fn is_sync<T>(_: &T) where T: Sync {}
fn exti0(_t: &mut Threshold, r: EXTI0::Resources) {
- // OK
+ // ERROR resource proxies can't be shared between tasks
is_sync(&r.SHARED);
+ //~^ error the trait bound `*const (): core::marker::Sync` is not satisfied
// ERROR resource proxies are not `Send`able across tasks
is_send(&r.SHARED);
g Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/content-layer (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-10-31Fix cli command typo (#12342)Gravatar liruifengv 2-1/+6
2024-10-31[ci] formatGravatar situ2001 1-1/+1
2024-10-31fix(cli): reset `NODE_ENV` to ensure install command run in dev mode (#12338)Gravatar situ2001 2-1/+12
2024-10-30fix(i18n): default locale in server islands (#12341)Gravatar Emanuele Stoppa 9-5/+61