Skip to content

Commit 8f4c941

Browse files
committed
[workerd-cxx] fix nightly tests
not entirely sure why they fail for us but not for upstream
1 parent 57f8e6c commit 8f4c941

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/ui/missing_unsafe.stderr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
error[E0133]: call to unsafe function `f` is unsafe and requires unsafe function or block
22
--> tests/ui/missing_unsafe.rs:4:12
33
|
4+
1 | #[cxx::bridge]
5+
| -------------- items do not inherit unsafety from separate enclosing items
6+
...
47
4 | fn f(x: i32);
5-
| ^ - items do not inherit unsafety from separate enclosing items
6-
| |
7-
| call to unsafe function
8+
| ^ call to unsafe function
89
|
910
= note: consult the function's documentation for information on how to avoid undefined behavior

tests/ui/ptr_unsupported.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: C++ does not allow pointer to reference as a type
2-
--> tests/ui/ptr_unsupported.rs:6:38
2+
--> tests/ui/ptr_unsupported.rs:6:42
33
|
44
6 | fn get_ptr_to_reference<'a>() -> *mut &'a C;
55
| ^^^^^^^^^^

0 commit comments

Comments
 (0)