dump bugged fix
This commit is contained in:
parent
74cba639e9
commit
a2e4ef294c
4 changed files with 32 additions and 14 deletions
|
|
@ -17,7 +17,7 @@ fn std_instead_of_core() {
|
|||
use ::core::hash::Hash;
|
||||
//~^ ERROR: used import from `std` instead of `core`
|
||||
// Don't lint on `env` macro
|
||||
use std::env;
|
||||
use core::env;
|
||||
|
||||
// Multiple imports
|
||||
use core::fmt::{Debug, Result};
|
||||
|
|
@ -27,10 +27,14 @@ fn std_instead_of_core() {
|
|||
#[rustfmt::skip]
|
||||
use core::{
|
||||
//~^ ERROR: used import from `std` instead of `core`
|
||||
fmt::Write,
|
||||
fmt::Write as _,
|
||||
ptr::read_unaligned,
|
||||
};
|
||||
|
||||
// Multiline mixed imports
|
||||
use core::{io::Write, fmt::Display};
|
||||
//~^ ERROR: used import from `std` instead of `core`
|
||||
|
||||
// Function calls
|
||||
let ptr = core::ptr::null::<u32>();
|
||||
//~^ ERROR: used import from `std` instead of `core`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue