diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/wasm-bindgen/src/convert/traits.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/wasm-bindgen/src/convert/traits.rs')
-rw-r--r-- | vendor/wasm-bindgen/src/convert/traits.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/wasm-bindgen/src/convert/traits.rs b/vendor/wasm-bindgen/src/convert/traits.rs index 17b72a837..fe31aab63 100644 --- a/vendor/wasm-bindgen/src/convert/traits.rs +++ b/vendor/wasm-bindgen/src/convert/traits.rs @@ -120,9 +120,11 @@ pub trait OptionFromWasmAbi: FromWasmAbi { /// An unsafe trait which represents types that are ABI-safe to pass via wasm /// arguments. /// +/// # Safety +/// /// This is an unsafe trait to implement as there's no guarantee the type is /// actually safe to transfer across the was boundary, it's up to you to -/// guarantee this so codegen works correctly. +/// guarantee this, so codegen works correctly. pub unsafe trait WasmAbi {} unsafe impl WasmAbi for u32 {} @@ -132,7 +134,7 @@ unsafe impl WasmAbi for i64 {} unsafe impl WasmAbi for f32 {} unsafe impl WasmAbi for f64 {} -/// A trait representing how to interepret the return value of a function for +/// A trait representing how to interpret the return value of a function for /// the wasm ABI. /// /// This is very similar to the `IntoWasmAbi` trait and in fact has a blanket |