Upgrade to the 2018 edition

I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
This commit is contained in:
jD91mZM2
2019-07-28 18:13:31 +02:00
parent 72c2f59f17
commit c7d499d4f2
113 changed files with 377 additions and 376 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
//! Helper functions for pseudorandom number generation using LCG, see https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/drand48.html
use platform::types::*;
use crate::platform::types::*;
/* The default element buffer for the linear congruential generator's
* sequence. Implemented using a c_ushort array for consistency between
+14 -14
View File
@@ -7,20 +7,20 @@ use rand::prng::XorShiftRng;
use rand::rngs::JitterRng;
use rand::{Rng, SeedableRng};
use c_str::CStr;
use fs::File;
use header::errno::*;
use header::fcntl::*;
use header::limits;
use header::string::*;
use header::time::constants::CLOCK_MONOTONIC;
use header::time::timespec;
use header::unistd::{sysconf, _SC_PAGESIZE};
use header::wchar::*;
use header::{ctype, errno, unistd};
use platform;
use platform::types::*;
use platform::{Pal, Sys};
use crate::c_str::CStr;
use crate::fs::File;
use crate::header::errno::*;
use crate::header::fcntl::*;
use crate::header::limits;
use crate::header::string::*;
use crate::header::time::constants::CLOCK_MONOTONIC;
use crate::header::time::timespec;
use crate::header::unistd::{sysconf, _SC_PAGESIZE};
use crate::header::wchar::*;
use crate::header::{ctype, errno, unistd};
use crate::platform;
use crate::platform::types::*;
use crate::platform::{Pal, Sys};
mod lcg48;
mod sort;
+1 -1
View File
@@ -1,4 +1,4 @@
use platform::types::*;
use crate::platform::types::*;
pub fn introsort(
base: *mut c_char,