Using UnsafeCell which is more safe than using static mut #268
Annotations
7 warnings
lint:
tango-bench/src/lib.rs#L731
warning: struct `PlatformTimer` is never constructed
--> tango-bench/src/lib.rs:731:23
|
731 | pub(super) struct PlatformTimer;
| ^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
lint:
tango-bench/src/lib.rs#L731
warning: struct `PlatformTimer` is never constructed
--> tango-bench/src/lib.rs:731:23
|
731 | pub(super) struct PlatformTimer;
| ^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
lint:
tango-bench/src/dylib.rs#L67
warning: creating a mutable reference to mutable static is discouraged
--> tango-bench/src/dylib.rs:67:18
|
67 | unsafe { SELF_VTABLE.take() }.map(|vt| spi_handle_for_vtable(vt, mode))
| ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
= note: `#[warn(static_mut_refs)]` on by default
|
lint:
tango-bench/src/dylib.rs#L67
warning: creating a mutable reference to mutable static is discouraged
--> tango-bench/src/dylib.rs:67:18
|
67 | unsafe { SELF_VTABLE.take() }.map(|vt| spi_handle_for_vtable(vt, mode))
| ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
= note: `#[warn(static_mut_refs)]` on by default
|
test (macos-12)
A brownout will take place on November 11, 14:00 UTC - November 12, 00:00 UTC to raise awareness of the upcoming macOS-12 environment removal. For more details, see https://github.com/actions/runner-images/issues/10721
|
bench
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "benchmark.txt".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
benchmark.txt
|
1.62 KB |
|