2022-07-18 02:39:37 -05:00
|
|
|
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`
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::std-instead-of-core` implied by `-D warnings`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> $DIR/std_instead_of_core.rs:11:9
|
|
|
|
|
|
|
|
|
LL | use ::std::hash::Hash;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:16:20
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{Debug, Result};
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:16:27
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{Debug, Result};
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:19:15
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let ptr = std::ptr::null::<u32>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:20:19
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:23:16
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let cell = std::cell::Cell::new(8u32);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:24:25
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
|
|
|
|
2022-09-27 13:21:14 -05:00
|
|
|
error: used import from `std` instead of `core`
|
2022-07-28 12:08:22 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:32:9
|
|
|
|
|
|
2022-09-27 13:21:14 -05:00
|
|
|
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:38:9
|
|
|
|
|
|
2022-07-28 12:08:22 -05:00
|
|
|
LL | use std::vec;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `alloc`
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
|
2022-07-28 12:08:22 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `alloc`
|
2022-09-27 13:21:14 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:39:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::vec::Vec;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `alloc`
|
|
|
|
|
|
|
|
error: used import from `alloc` instead of `core`
|
2022-09-27 13:21:14 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:44:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use alloc::slice::from_ref;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider importing the item from `core`
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
2022-09-27 13:21:14 -05:00
|
|
|
error: aborting due to 12 previous errors
|
2022-07-18 02:39:37 -05:00
|
|
|
|