Skip to content

Commit 01e4da0

Browse files
committed
prevent merge conflicts
1 parent ec6d98e commit 01e4da0

File tree

5 files changed

+6
-37
lines changed

5 files changed

+6
-37
lines changed

library/core/src/alloc/layout.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
// collections, resulting in having to optimize down excess IR multiple times.
55
// Your performance intuition is useless. Run perf.
66

7-
use safety::requires;
8-
use crate::cmp;
97
use crate::error::Error;
10-
use crate::fmt;
11-
use crate::mem;
128
use crate::ptr::{Alignment, NonNull};
13-
14-
#[cfg(kani)]
15-
use crate::kani;
9+
use crate::{cmp, fmt, mem};
1610

1711
// While this function is used in one place and its implementation
1812
// could be inlined, the previous attempts to do so made rustc

library/core/src/char/methods.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ use crate::str::from_utf8_unchecked_mut;
55
use crate::unicode::printable::is_printable;
66
use crate::unicode::{self, conversions};
77

8-
#[cfg(kani)]
9-
use crate::kani;
10-
11-
use super::*;
12-
138
impl char {
149
/// The lowest valid code point a `char` can have, `'\0'`.
1510
///

library/core/src/intrinsics.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,8 @@
6363
)]
6464
#![allow(missing_docs)]
6565

66-
use safety::requires;
67-
use crate::marker::DiscriminantKind;
68-
use crate::marker::Tuple;
69-
use crate::ptr;
70-
use crate::ub_checks;
71-
72-
#[cfg(kani)]
73-
use crate::kani;
66+
use crate::marker::{DiscriminantKind, Tuple};
67+
use crate::{ptr, ub_checks};
7468

7569
pub mod mir;
7670
pub mod simd;

library/core/src/mem/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,8 @@
55
66
#![stable(feature = "rust1", since = "1.0.0")]
77

8-
use crate::clone;
9-
use crate::cmp;
10-
use crate::fmt;
11-
use crate::hash;
12-
use crate::intrinsics;
138
use crate::marker::DiscriminantKind;
14-
use crate::ptr;
15-
16-
#[cfg(kani)]
17-
use crate::kani;
9+
use crate::{clone, cmp, fmt, hash, intrinsics, ptr};
1810

1911
mod manually_drop;
2012
#[stable(feature = "manually_drop", since = "1.20.0")]

library/core/src/ptr/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -409,15 +409,9 @@
409409
#![allow(clippy::not_unsafe_ptr_arg_deref)]
410410

411411
use crate::cmp::Ordering;
412-
use crate::fmt;
413-
use crate::hash;
414-
use crate::intrinsics;
415412
use crate::marker::FnPtr;
416-
use crate::ub_checks;
417-
418-
use crate::mem::{self, align_of, size_of, MaybeUninit};
419-
#[cfg(kani)]
420-
use crate::kani;
413+
use crate::mem::{self, MaybeUninit};
414+
use crate::{fmt, hash, intrinsics, ub_checks};
421415

422416
mod alignment;
423417
#[unstable(feature = "ptr_alignment_type", issue = "102070")]

0 commit comments

Comments
 (0)