Skip to content

ManagedOption refactor + forget_into_handle #4045

ManagedOption refactor + forget_into_handle

ManagedOption refactor + forget_into_handle #4045

GitHub Actions / clippy failed Nov 18, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (22)

framework/base/src/types/managed/basic/big_float.rs|40 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/big_float.rs:40:26
|
40 | let handle = core::mem::replace(
| __________________________^
41 | | &mut self.handle,
42 | | core::mem::MaybeUninit::uninit().assume_init(),
43 | | );
| |^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
= note: #[deny(clippy::mem_replace_with_uninit)] on by default
framework/base/src/types/managed/basic/big_float.rs|42 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/big_float.rs:42:17
|
42 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
= note: #[deny(clippy::uninit_assumed_init)] on by default
framework/base/src/types/managed/basic/big_int.rs|43 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/big_int.rs:43:26
|
43 | let handle = core::mem::replace(
| __________________________^
44 | | &mut self.handle,
45 | | core::mem::MaybeUninit::uninit().assume_init(),
46 | | );
| |
^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/big_int.rs|45 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/big_int.rs:45:17
|
45 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/basic/elliptic_curve.rs|48 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/elliptic_curve.rs:48:26
|
48 | let handle = core::mem::replace(
| __________________________^
49 | | &mut self.handle,
50 | | core::mem::MaybeUninit::uninit().assume_init(),
51 | | );
| |^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/elliptic_curve.rs|50 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/elliptic_curve.rs:50:17
|
50 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/basic/managed_buffer.rs|42 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/managed_buffer.rs:42:26
|
42 | let handle = core::mem::replace(
| __________________________^
43 | | &mut self.handle,
44 | | core::mem::MaybeUninit::uninit().assume_init(),
45 | | );
| |
^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/managed_buffer.rs|44 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/managed_buffer.rs:44:17
|
44 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/basic/managed_map.rs|28 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/managed_map.rs:28:26
|
28 | let handle = core::mem::replace(
| __________________________^
29 | | &mut self.handle,
30 | | core::mem::MaybeUninit::uninit().assume_init(),
31 | | );
| |^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/managed_map.rs|30 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/managed_map.rs:30:17
|
30 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/managed_type_trait.rs|17 col 5| warning: unsafe function's docs miss # Safety section
--> framework/base/src/types/managed/managed_type_trait.rs:17:5
|
17 | unsafe fn forget_into_handle(self) -> Self::OwnHandle;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: #[warn(clippy::missing_safety_doc)] on by default
framework/base/src/types/managed/basic/big_float.rs|40 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/big_float.rs:40:26
|
40 | let handle = core::mem::replace(
| __________________________^
41 | | &mut self.handle,
42 | | core::mem::MaybeUninit::uninit().assume_init(),
43 | | );
| |
^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
= note: #[deny(clippy::mem_replace_with_uninit)] on by default
framework/base/src/types/managed/basic/big_float.rs|42 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/big_float.rs:42:17
|
42 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
= note: #[deny(clippy::uninit_assumed_init)] on by default
framework/base/src/types/managed/basic/big_int.rs|43 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/big_int.rs:43:26
|
43 | let handle = core::mem::replace(
| __________________________^
44 | | &mut self.handle,
45 | | core::mem::MaybeUninit::uninit().assume_init(),
46 | | );
| |^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/big_int.rs|45 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/big_int.rs:45:17
|
45 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/basic/elliptic_curve.rs|48 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/elliptic_curve.rs:48:26
|
48 | let handle = core::mem::replace(
| __________________________^
49 | | &mut self.handle,
50 | | core::mem::MaybeUninit::uninit().assume_init(),
51 | | );
| |
^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/elliptic_curve.rs|50 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/elliptic_curve.rs:50:17
|
50 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/basic/managed_buffer.rs|42 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/managed_buffer.rs:42:26
|
42 | let handle = core::mem::replace(
| __________________________^
43 | | &mut self.handle,
44 | | core::mem::MaybeUninit::uninit().assume_init(),
45 | | );
| |^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/managed_buffer.rs|44 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/managed_buffer.rs:44:17
|
44 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/basic/managed_map.rs|28 col 26| error: replacing with mem::MaybeUninit::uninit().assume_init()
--> framework/base/src/types/managed/basic/managed_map.rs:28:26
|
28 | let handle = core::mem::replace(
| __________________________^
29 | | &mut self.handle,
30 | | core::mem::MaybeUninit::uninit().assume_init(),
31 | | );
| |
^ help: consider using: core::ptr::read(&mut self.handle)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
framework/base/src/types/managed/basic/managed_map.rs|30 col 17| error: this call for this type may be undefined behavior
--> framework/base/src/types/managed/basic/managed_map.rs:30:17
|
30 | core::mem::MaybeUninit::uninit().assume_init(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
framework/base/src/types/managed/managed_type_trait.rs|17 col 5| warning: unsafe function's docs miss # Safety section
--> framework/base/src/types/managed/managed_type_trait.rs:17:5
|
17 | unsafe fn forget_into_handle(self) -> Self::OwnHandle;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: #[warn(clippy::missing_safety_doc)] on by default

Filtered Findings (0)

Annotations

Check failure on line 40 in framework/base/src/types/managed/basic/big_float.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_float.rs#L40

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_float.rs:40:26
   |
40 |               let handle = core::mem::replace(
   |  __________________________^
41 | |                 &mut self.handle,
42 | |                 core::mem::MaybeUninit::uninit().assume_init(),
43 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
   = note: `#[deny(clippy::mem_replace_with_uninit)]` on by default
Raw output
framework/base/src/types/managed/basic/big_float.rs:40:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_float.rs:40:26
   |
40 |               let handle = core::mem::replace(
   |  __________________________^
41 | |                 &mut self.handle,
42 | |                 core::mem::MaybeUninit::uninit().assume_init(),
43 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
   = note: `#[deny(clippy::mem_replace_with_uninit)]` on by default


__END__

Check failure on line 42 in framework/base/src/types/managed/basic/big_float.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_float.rs#L42

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_float.rs:42:17
   |
42 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
   = note: `#[deny(clippy::uninit_assumed_init)]` on by default
Raw output
framework/base/src/types/managed/basic/big_float.rs:42:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_float.rs:42:17
   |
42 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
   = note: `#[deny(clippy::uninit_assumed_init)]` on by default


__END__

Check failure on line 43 in framework/base/src/types/managed/basic/big_int.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_int.rs#L43

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_int.rs:43:26
   |
43 |               let handle = core::mem::replace(
   |  __________________________^
44 | |                 &mut self.handle,
45 | |                 core::mem::MaybeUninit::uninit().assume_init(),
46 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/big_int.rs:43:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_int.rs:43:26
   |
43 |               let handle = core::mem::replace(
   |  __________________________^
44 | |                 &mut self.handle,
45 | |                 core::mem::MaybeUninit::uninit().assume_init(),
46 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 45 in framework/base/src/types/managed/basic/big_int.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_int.rs#L45

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_int.rs:45:17
   |
45 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/big_int.rs:45:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_int.rs:45:17
   |
45 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check failure on line 48 in framework/base/src/types/managed/basic/elliptic_curve.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/elliptic_curve.rs#L48

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:48:26
   |
48 |               let handle = core::mem::replace(
   |  __________________________^
49 | |                 &mut self.handle,
50 | |                 core::mem::MaybeUninit::uninit().assume_init(),
51 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/elliptic_curve.rs:48:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:48:26
   |
48 |               let handle = core::mem::replace(
   |  __________________________^
49 | |                 &mut self.handle,
50 | |                 core::mem::MaybeUninit::uninit().assume_init(),
51 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 50 in framework/base/src/types/managed/basic/elliptic_curve.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/elliptic_curve.rs#L50

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:50:17
   |
50 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/elliptic_curve.rs:50:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:50:17
   |
50 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check failure on line 42 in framework/base/src/types/managed/basic/managed_buffer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_buffer.rs#L42

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_buffer.rs:42:26
   |
42 |               let handle = core::mem::replace(
   |  __________________________^
43 | |                 &mut self.handle,
44 | |                 core::mem::MaybeUninit::uninit().assume_init(),
45 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/managed_buffer.rs:42:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_buffer.rs:42:26
   |
42 |               let handle = core::mem::replace(
   |  __________________________^
43 | |                 &mut self.handle,
44 | |                 core::mem::MaybeUninit::uninit().assume_init(),
45 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 44 in framework/base/src/types/managed/basic/managed_buffer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_buffer.rs#L44

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_buffer.rs:44:17
   |
44 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/managed_buffer.rs:44:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_buffer.rs:44:17
   |
44 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check failure on line 28 in framework/base/src/types/managed/basic/managed_map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_map.rs#L28

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_map.rs:28:26
   |
28 |               let handle = core::mem::replace(
   |  __________________________^
29 | |                 &mut self.handle,
30 | |                 core::mem::MaybeUninit::uninit().assume_init(),
31 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/managed_map.rs:28:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_map.rs:28:26
   |
28 |               let handle = core::mem::replace(
   |  __________________________^
29 | |                 &mut self.handle,
30 | |                 core::mem::MaybeUninit::uninit().assume_init(),
31 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 30 in framework/base/src/types/managed/basic/managed_map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_map.rs#L30

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_map.rs:30:17
   |
30 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/managed_map.rs:30:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_map.rs:30:17
   |
30 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check warning on line 17 in framework/base/src/types/managed/managed_type_trait.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/managed_type_trait.rs#L17

warning: unsafe function's docs miss `# Safety` section
  --> framework/base/src/types/managed/managed_type_trait.rs:17:5
   |
17 |     unsafe fn forget_into_handle(self) -> Self::OwnHandle;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: `#[warn(clippy::missing_safety_doc)]` on by default
Raw output
framework/base/src/types/managed/managed_type_trait.rs:17:5:w:warning: unsafe function's docs miss `# Safety` section
  --> framework/base/src/types/managed/managed_type_trait.rs:17:5
   |
17 |     unsafe fn forget_into_handle(self) -> Self::OwnHandle;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: `#[warn(clippy::missing_safety_doc)]` on by default


__END__

Check failure on line 40 in framework/base/src/types/managed/basic/big_float.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_float.rs#L40

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_float.rs:40:26
   |
40 |               let handle = core::mem::replace(
   |  __________________________^
41 | |                 &mut self.handle,
42 | |                 core::mem::MaybeUninit::uninit().assume_init(),
43 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
   = note: `#[deny(clippy::mem_replace_with_uninit)]` on by default
Raw output
framework/base/src/types/managed/basic/big_float.rs:40:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_float.rs:40:26
   |
40 |               let handle = core::mem::replace(
   |  __________________________^
41 | |                 &mut self.handle,
42 | |                 core::mem::MaybeUninit::uninit().assume_init(),
43 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
   = note: `#[deny(clippy::mem_replace_with_uninit)]` on by default


__END__

Check failure on line 42 in framework/base/src/types/managed/basic/big_float.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_float.rs#L42

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_float.rs:42:17
   |
42 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
   = note: `#[deny(clippy::uninit_assumed_init)]` on by default
Raw output
framework/base/src/types/managed/basic/big_float.rs:42:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_float.rs:42:17
   |
42 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
   = note: `#[deny(clippy::uninit_assumed_init)]` on by default


__END__

Check failure on line 43 in framework/base/src/types/managed/basic/big_int.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_int.rs#L43

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_int.rs:43:26
   |
43 |               let handle = core::mem::replace(
   |  __________________________^
44 | |                 &mut self.handle,
45 | |                 core::mem::MaybeUninit::uninit().assume_init(),
46 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/big_int.rs:43:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/big_int.rs:43:26
   |
43 |               let handle = core::mem::replace(
   |  __________________________^
44 | |                 &mut self.handle,
45 | |                 core::mem::MaybeUninit::uninit().assume_init(),
46 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 45 in framework/base/src/types/managed/basic/big_int.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/big_int.rs#L45

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_int.rs:45:17
   |
45 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/big_int.rs:45:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/big_int.rs:45:17
   |
45 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check failure on line 48 in framework/base/src/types/managed/basic/elliptic_curve.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/elliptic_curve.rs#L48

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:48:26
   |
48 |               let handle = core::mem::replace(
   |  __________________________^
49 | |                 &mut self.handle,
50 | |                 core::mem::MaybeUninit::uninit().assume_init(),
51 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/elliptic_curve.rs:48:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:48:26
   |
48 |               let handle = core::mem::replace(
   |  __________________________^
49 | |                 &mut self.handle,
50 | |                 core::mem::MaybeUninit::uninit().assume_init(),
51 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 50 in framework/base/src/types/managed/basic/elliptic_curve.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/elliptic_curve.rs#L50

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:50:17
   |
50 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/elliptic_curve.rs:50:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/elliptic_curve.rs:50:17
   |
50 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check failure on line 42 in framework/base/src/types/managed/basic/managed_buffer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_buffer.rs#L42

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_buffer.rs:42:26
   |
42 |               let handle = core::mem::replace(
   |  __________________________^
43 | |                 &mut self.handle,
44 | |                 core::mem::MaybeUninit::uninit().assume_init(),
45 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/managed_buffer.rs:42:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_buffer.rs:42:26
   |
42 |               let handle = core::mem::replace(
   |  __________________________^
43 | |                 &mut self.handle,
44 | |                 core::mem::MaybeUninit::uninit().assume_init(),
45 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 44 in framework/base/src/types/managed/basic/managed_buffer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_buffer.rs#L44

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_buffer.rs:44:17
   |
44 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/managed_buffer.rs:44:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_buffer.rs:44:17
   |
44 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check failure on line 28 in framework/base/src/types/managed/basic/managed_map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_map.rs#L28

error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_map.rs:28:26
   |
28 |               let handle = core::mem::replace(
   |  __________________________^
29 | |                 &mut self.handle,
30 | |                 core::mem::MaybeUninit::uninit().assume_init(),
31 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit
Raw output
framework/base/src/types/managed/basic/managed_map.rs:28:26:e:error: replacing with `mem::MaybeUninit::uninit().assume_init()`
  --> framework/base/src/types/managed/basic/managed_map.rs:28:26
   |
28 |               let handle = core::mem::replace(
   |  __________________________^
29 | |                 &mut self.handle,
30 | |                 core::mem::MaybeUninit::uninit().assume_init(),
31 | |             );
   | |_____________^ help: consider using: `core::ptr::read(&mut self.handle)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_uninit


__END__

Check failure on line 30 in framework/base/src/types/managed/basic/managed_map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/basic/managed_map.rs#L30

error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_map.rs:30:17
   |
30 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
Raw output
framework/base/src/types/managed/basic/managed_map.rs:30:17:e:error: this call for this type may be undefined behavior
  --> framework/base/src/types/managed/basic/managed_map.rs:30:17
   |
30 |                 core::mem::MaybeUninit::uninit().assume_init(),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init


__END__

Check warning on line 17 in framework/base/src/types/managed/managed_type_trait.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] framework/base/src/types/managed/managed_type_trait.rs#L17

warning: unsafe function's docs miss `# Safety` section
  --> framework/base/src/types/managed/managed_type_trait.rs:17:5
   |
17 |     unsafe fn forget_into_handle(self) -> Self::OwnHandle;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: `#[warn(clippy::missing_safety_doc)]` on by default
Raw output
framework/base/src/types/managed/managed_type_trait.rs:17:5:w:warning: unsafe function's docs miss `# Safety` section
  --> framework/base/src/types/managed/managed_type_trait.rs:17:5
   |
17 |     unsafe fn forget_into_handle(self) -> Self::OwnHandle;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
   = note: `#[warn(clippy::missing_safety_doc)]` on by default


__END__