Skip to content

Commit c0927a7

Browse files
author
Fedor Ryabinin
committed
Fix imports
1 parent 44ab559 commit c0927a7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

library/core/src/hint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
//!
55
//! Hints may be compile time or runtime.
66
7+
use safety::requires;
8+
79
#[cfg(kani)]
810
use crate::kani;
911
use crate::mem::MaybeUninit;
1012
use crate::{intrinsics, ub_checks};
1113

12-
use safety::requires;
13-
1414
/// Informs the compiler that the site which is calling this function is not
1515
/// reachable, possibly enabling further optimizations.
1616
///

library/core/src/iter/adapters/step_by.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
use safety::requires;
2+
13
use crate::intrinsics;
24
use crate::iter::{TrustedLen, TrustedRandomAccess, from_fn};
35
#[cfg(kani)]
46
use crate::kani;
57
use crate::num::NonZero;
68
use crate::ops::{Range, Try};
79

8-
use safety::requires;
9-
1010
/// An iterator for stepping iterators by a custom amount.
1111
///
1212
/// This `struct` is created by the [`step_by`] method on [`Iterator`]. See

library/core/src/ops/index_range.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
use safety::requires;
2+
13
use crate::iter::{FusedIterator, TrustedLen};
24
#[cfg(kani)]
35
use crate::kani;
46
use crate::num::NonZero;
57
use crate::ops::{NeverShortCircuit, Try};
68
use crate::ub_checks;
79

8-
use safety::requires;
9-
1010
/// Like a `Range<usize>`, but with a safety invariant that `start <= end`.
1111
///
1212
/// This means that `end - start` cannot overflow, allowing some μoptimizations.

library/std/src/sync/mpmc/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
//! Thread-local channel context.
22
33
#[cfg(kani)]
4-
#[unstable(feature = "kani", issue="none")]
4+
#[unstable(feature = "kani", issue = "none")]
55
use core::kani;
66

7+
use safety::requires;
8+
79
use super::select::Selected;
810
use super::waker::current_thread_id;
911
use crate::cell::Cell;
@@ -13,8 +15,6 @@ use crate::sync::atomic::{Atomic, AtomicPtr, AtomicUsize, Ordering};
1315
use crate::thread::{self, Thread};
1416
use crate::time::Instant;
1517

16-
use safety::requires;
17-
1818
/// Thread-local context.
1919
#[derive(Debug, Clone)]
2020
pub struct Context {

0 commit comments

Comments
 (0)