Update imports in lexical module

This commit is contained in:
David Tolnay 2020-06-05 20:07:52 -07:00
parent f13f24048b
commit 8262a63e8e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
7 changed files with 15 additions and 15 deletions

View File

@ -7,10 +7,10 @@ use super::bignum::*;
use super::digit::*;
use super::exponent::*;
use super::float::*;
use super::lib::{cmp, mem};
use super::math::*;
use super::num::*;
use super::rounding::*;
use crate::lib::{cmp, mem};
// MANTISSA

View File

@ -6,9 +6,9 @@
//! found here:
//! https://golang.org/src/strconv/atof.go
use crate::float::*;
use crate::num::*;
use crate::rounding::*;
use super::float::*;
use super::num::*;
use super::rounding::*;
pub(crate) trait FloatErrors {
/// Get the full error scale.

View File

@ -4,11 +4,11 @@
//! buffers, so for a `vec![0, 1, 2, 3]`, `3` is the most significant limb,
//! and `0` is the least significant limb.
use crate::large_powers;
use crate::lib::{cmp, iter, mem, ptr};
use crate::num::*;
use crate::slice::*;
use crate::small_powers::*;
use super::large_powers;
use super::lib::{cmp, iter, mem, ptr};
use super::num::*;
use super::slice::*;
use super::small_powers::*;
// ALIASES
// -------
@ -69,7 +69,7 @@ pub(crate) type LimbVecType = arrayvec::ArrayVec<[Limb; 128]>;
pub(crate) type LimbVecType = arrayvec::ArrayVec<[Limb; 64]>;
#[cfg(not(no_alloc))]
pub(crate) type LimbVecType = crate::lib::Vec<Limb>;
pub(crate) type LimbVecType = super::lib::Vec<Limb>;
/// Cast to limb type.
#[inline(always)]

View File

@ -1,6 +1,6 @@
//! Utilities for Rust numbers.
use crate::lib::ops;
use super::lib::ops;
/// Precalculated values of radix**i for i in range [0, arr.len()-1].
/// Each value can be **exactly** represented as that type.

View File

@ -1,9 +1,9 @@
//! Defines rounding schemes for floating-point numbers.
use super::float::ExtendedFloat;
use super::lib::mem;
use super::num::*;
use super::shift::*;
use crate::lib::mem;
// MASKS

View File

@ -1,7 +1,7 @@
//! Bit-shift helpers.
use super::float::ExtendedFloat;
use crate::lib::mem;
use super::lib::mem;
// Shift extended-precision float right `shift` bytes.
#[inline]

View File

@ -1,6 +1,6 @@
//! Traits to accept generic slices.
use crate::lib::ops;
use super::lib::ops;
// RSLICE INDEX
@ -141,7 +141,7 @@ impl<A: arrayvec::Array> Slice<A::Item> for arrayvec::ArrayVec<A> {
}
#[cfg(not(no_alloc))]
impl<T> Slice<T> for crate::lib::Vec<T> {
impl<T> Slice<T> for super::lib::Vec<T> {
#[inline]
fn as_slice(&self) -> &[T] {
self