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;
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::std-instead-of-core` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_core)]`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:12:11
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use ::std::hash::Hash;
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:18:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{Debug, Result};
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:22:15
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let ptr = std::ptr::null::<u32>();
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:24:21
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:28:16
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let cell = std::cell::Cell::new(8u32);
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:30:27
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
error: used import from `std` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:39:9
|
2022-07-28 12:08:22 -05:00
|
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
LL | use std::iter::Iterator;
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `alloc`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:46:9
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2022-07-28 12:08:22 -05:00
|
|
|
LL | use std::vec;
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `alloc`: `alloc`
|
2022-07-28 12:08:22 -05:00
|
|
|
|
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
|
2022-07-28 12:08:22 -05:00
|
|
|
|
|
|
|
error: used import from `std` instead of `alloc`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:48:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::vec::Vec;
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^ help: consider importing the item from `alloc`: `alloc`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
error: used import from `alloc` instead of `core`
|
2023-09-03 07:34:40 -05:00
|
|
|
--> $DIR/std_instead_of_core.rs:54:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use alloc::slice::from_ref;
|
2023-09-03 07:34:40 -05:00
|
|
|
| ^^^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
2023-09-03 07:34:40 -05:00
|
|
|
error: aborting due to 11 previous errors
|
2022-07-18 02:39:37 -05:00
|
|
|
|