Skip to content

Commit 6f4ab94

Browse files
committedAug 16, 2017
Auto merge of #43710 - zackmdavis:field_init_shorthand_power_slam, r=Mark-Simulacrum
use field init shorthand EVERYWHERE Like #43008 (f668999), but [(lacking reasons to be more timid)](#43008 (comment)) _much more aggressive_. r? @Mark-Simulacrum
2 parents e40dc66 + 1b6c960 commit 6f4ab94

File tree

281 files changed

+1376
-1376
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+1376
-1376
lines changed
 

‎src/bootstrap/builder.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub struct ShouldRun<'a> {
193193
impl<'a> ShouldRun<'a> {
194194
fn new(builder: &'a Builder) -> ShouldRun<'a> {
195195
ShouldRun {
196-
builder: builder,
196+
builder,
197197
paths: BTreeSet::new(),
198198
is_really_default: true, // by default no additional conditions
199199
}
@@ -278,9 +278,9 @@ impl<'a> Builder<'a> {
278278
};
279279

280280
let builder = Builder {
281-
build: build,
281+
build,
282282
top_stage: build.config.stage.unwrap_or(2),
283-
kind: kind,
283+
kind,
284284
cache: Cache::new(),
285285
stack: RefCell::new(Vec::new()),
286286
};
@@ -309,9 +309,9 @@ impl<'a> Builder<'a> {
309309
};
310310

311311
let builder = Builder {
312-
build: build,
312+
build,
313313
top_stage: build.config.stage.unwrap_or(2),
314-
kind: kind,
314+
kind,
315315
cache: Cache::new(),
316316
stack: RefCell::new(Vec::new()),
317317
};

‎src/bootstrap/check.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ impl Step for CrateLibrustc {
872872
builder.ensure(CrateLibrustc {
873873
compiler,
874874
target: run.target,
875-
test_kind: test_kind,
875+
test_kind,
876876
krate: name,
877877
});
878878
};
@@ -934,8 +934,8 @@ impl Step for Crate {
934934
builder.ensure(Crate {
935935
compiler,
936936
target: run.target,
937-
mode: mode,
938-
test_kind: test_kind,
937+
mode,
938+
test_kind,
939939
krate: name,
940940
});
941941
};

0 commit comments

Comments
 (0)