2022-07-18 02:39:37 -05:00
|
|
|
error: used import from `std` instead of `core`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:14:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::hash::Hasher;
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:17:11
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use ::std::hash::Hash;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
2024-03-07 10:19:29 -06:00
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:23:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::fmt::{Debug, Result};
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06: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`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:35:15
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let ptr = std::ptr::null::<u32>();
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:37:21
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let ptr_mut = ::std::ptr::null_mut::<usize>();
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:41:16
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let cell = std::cell::Cell::new(8u32);
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:43:27
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | let cell_absolute = ::std::cell::Cell::new(8u32);
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
2022-07-18 02:39:37 -05:00
|
|
|
|
2024-06-06 19:37:05 -05:00
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:48:9
|
|
|
|
|
|
|
|
|
LL | use std::error::Error;
|
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
error: used import from `std` instead of `core`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:52:9
|
2022-07-28 12:08:22 -05:00
|
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
LL | use std::iter::Iterator;
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:59:9
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2022-07-28 12:08:22 -05:00
|
|
|
LL | use std::vec;
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:61:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use std::vec::Vec;
|
2023-09-12 11:13:53 -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`
|
2024-03-07 10:19:29 -06:00
|
|
|
--> tests/ui/std_instead_of_core.rs:67:9
|
2022-07-18 02:39:37 -05:00
|
|
|
|
|
|
|
|
LL | use alloc::slice::from_ref;
|
2023-09-12 11:13:53 -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
|
|
|
|
2024-07-26 10:57:00 -05:00
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:82:9
|
|
|
|
|
|
|
|
|
LL | std::intrinsics::copy(a, b, 1);
|
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
|
|
|
|
|
|
|
error: used import from `std` instead of `core`
|
|
|
|
--> tests/ui/std_instead_of_core.rs:91:17
|
|
|
|
|
|
|
|
|
LL | fn msrv_1_77(_: std::net::IpAddr) {}
|
|
|
|
| ^^^ help: consider importing the item from `core`: `core`
|
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
2022-07-18 02:39:37 -05:00
|
|
|
|