Skip to content

Commit c1911ba

Browse files
committed
Auto merge of #58714 - Centril:rollup, r=Centril
Rollup of 5 pull requests Successful merges: - #58370 (Relax some Hash bounds on HashMap<K, V, S> and HashSet<T, S>) - #58421 (Relax some Ord bounds on BinaryHeap<T>) - #58686 (replace deprecated rustfmt_skip with rustfmt::skip) - #58697 (Use ? in some macros) - #58704 (Remove some unnecessary 'extern crate') Failed merges: r? @ghost
2 parents eb1df8c + 6806d0c commit c1911ba

File tree

24 files changed

+634
-669
lines changed

24 files changed

+634
-669
lines changed

src/bootstrap/bin/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
88
#![deny(warnings)]
99

10-
extern crate bootstrap;
11-
1210
use std::env;
1311

1412
use bootstrap::{Config, Build};

src/bootstrap/bin/rustc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
1818
#![deny(warnings)]
1919

20-
extern crate bootstrap;
21-
2220
use std::env;
2321
use std::ffi::OsString;
2422
use std::io;

src/bootstrap/bin/rustdoc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
55
#![deny(warnings)]
66

7-
extern crate bootstrap;
8-
97
use std::env;
108
use std::process::Command;
119
use std::path::PathBuf;

src/bootstrap/bin/sccache-plus-cl.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate cc;
2-
31
use std::env;
42
use std::process::{self, Command};
53

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ pub enum Kind {
326326
impl<'a> Builder<'a> {
327327
fn get_step_descriptions(kind: Kind) -> Vec<StepDescription> {
328328
macro_rules! describe {
329-
($($rule:ty),+ $(,)*) => {{
329+
($($rule:ty),+ $(,)?) => {{
330330
vec![$(StepDescription::from::<$rule>()),+]
331331
}};
332332
}

src/bootstrap/lib.rs

-12
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,11 @@ extern crate build_helper;
114114
extern crate serde_derive;
115115
#[macro_use]
116116
extern crate lazy_static;
117-
extern crate serde_json;
118-
extern crate cmake;
119-
extern crate filetime;
120-
extern crate cc;
121-
extern crate getopts;
122-
extern crate num_cpus;
123-
extern crate toml;
124-
extern crate time;
125-
extern crate petgraph;
126117

127118
#[cfg(test)]
128119
#[macro_use]
129120
extern crate pretty_assertions;
130121

131-
#[cfg(unix)]
132-
extern crate libc;
133-
134122
use std::cell::{RefCell, Cell};
135123
use std::collections::{HashSet, HashMap};
136124
use std::env;

src/liballoc/benches/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![feature(repr_simd)]
22
#![feature(test)]
33

4-
extern crate rand;
5-
extern crate rand_xorshift;
64
extern crate test;
75

86
mod btree;

src/liballoc/boxed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ impl<T: Clone> Clone for Box<T> {
326326
/// let x = Box::new(5);
327327
/// let y = x.clone();
328328
/// ```
329-
#[rustfmt_skip]
329+
#[rustfmt::skip]
330330
#[inline]
331331
fn clone(&self) -> Box<T> {
332332
box { (**self).clone() }

0 commit comments

Comments
 (0)