rust/tests/ui/std_instead_of_core.stderr
2023-08-22 17:18:11 +02:00

102 lines
2.9 KiB
Plaintext

error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:9:9
|
LL | use std::hash::Hasher;
| ^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
= note: `-D clippy::std-instead-of-core` implied by `-D warnings`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:12:9
|
LL | use ::std::hash::Hash;
| ^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:18:20
|
LL | use std::fmt::{Debug, Result};
| ^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:18:27
|
LL | use std::fmt::{Debug, Result};
| ^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:23:15
|
LL | let ptr = std::ptr::null::<u32>();
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:25:19
|
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:29:16
|
LL | let cell = std::cell::Cell::new(8u32);
| ^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:31:25
|
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
| ^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `core`
--> $DIR/std_instead_of_core.rs:40:9
|
LL | use std::iter::Iterator;
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
error: used import from `std` instead of `alloc`
--> $DIR/std_instead_of_core.rs:47:9
|
LL | use std::vec;
| ^^^^^^^^
|
= help: consider importing the item from `alloc`
= note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
error: used import from `std` instead of `alloc`
--> $DIR/std_instead_of_core.rs:49:9
|
LL | use std::vec::Vec;
| ^^^^^^^^^^^^^
|
= help: consider importing the item from `alloc`
error: used import from `alloc` instead of `core`
--> $DIR/std_instead_of_core.rs:55:9
|
LL | use alloc::slice::from_ref;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider importing the item from `core`
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
error: aborting due to 12 previous errors