2022-07-18 09:39:37 +02:00
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 15:30:49 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:14:9
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | use std::hash::Hasher;
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::std-instead-of-core` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_core)]`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 15:30:49 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:17:11
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | use ::std::hash::Hash;
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
2024-03-03 17:17:58 +01:00
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:20:9
|
|
|
|
|
|
|
|
|
LL | use std::env;
|
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
|
|
|
|
2022-07-18 09:39:37 +02:00
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 15:30:49 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:23:9
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{Debug, Result};
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 15:30:49 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:28:9
|
|
|
|
|
|
|
|
|
LL | use std::{
|
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:35:9
|
|
|
|
|
|
|
|
|
LL | use std::{io::Write, fmt::Display};
|
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:39:15
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | let ptr = std::ptr::null::<u32>();
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:41:21
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:45:16
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | let cell = std::cell::Cell::new(8u32);
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:47:27
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
2022-10-06 09:44:38 +02:00
|
|
|
error: used import from `std` instead of `core`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:56:9
|
2022-07-28 19:08:22 +02:00
|
|
|
|
|
2022-10-06 09:44:38 +02:00
|
|
|
LL | use std::iter::Iterator;
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-10-06 09:44:38 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `alloc`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:63:9
|
2022-10-06 09:44:38 +02:00
|
|
|
|
|
2022-07-28 19:08:22 +02:00
|
|
|
LL | use std::vec;
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `alloc`: `alloc`
|
2022-07-28 19:08:22 +02:00
|
|
|
|
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::std-instead-of-alloc` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::std_instead_of_alloc)]`
|
2022-07-28 19:08:22 +02:00
|
|
|
|
|
|
|
error: used import from `std` instead of `alloc`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:65:9
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | use std::vec::Vec;
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^ help: consider importing the item from `alloc`: `alloc`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
error: used import from `alloc` instead of `core`
|
2024-03-03 17:17:58 +01:00
|
|
|
--> tests/ui/std_instead_of_core.rs:71:9
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
|
|
|
LL | use alloc::slice::from_ref;
|
2023-09-03 14:34:40 +02:00
|
|
|
| ^^^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::alloc-instead-of-core` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::alloc_instead_of_core)]`
|
2022-07-18 09:39:37 +02:00
|
|
|
|
2024-03-03 17:17:58 +01:00
|
|
|
error: aborting due to 14 previous errors
|
2022-07-18 09:39:37 +02:00
|
|
|
|