Skip to content

Commit 33ca284

Browse files
committed
---
yaml --- r: 3180 b: refs/heads/master c: eb9969f h: refs/heads/master v: v3
1 parent 679a5d1 commit 33ca284

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 050f62983d68cc01ec3e0f81b04a7f4c45145555
2+
refs/heads/master: eb9969f54699924e4373f6c447aaeb4dd041b0dd

trunk/mk/pp.mk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ PP_INPUTS := $(wildcard $(addprefix $(S)src/lib/,*.rs */*.rs)) \
44
$(wildcard $(S)src/test/*/*.rs \
55
$(S)src/test/*/*/*.rs)
66

7+
PP_INPUTS_FILTERED = $(shell echo $(PP_INPUTS) | xargs grep -L no-reformat)
8+
79
reformat: $(SREQ1)
810
@$(call E, reformat [stage1]: $@)
9-
for i in $(PP_INPUTS); \
11+
for i in $(PP_INPUTS_FILTERED); \
1012
do $(call CFG_RUN_TARG,stage1, stage1/rustc$(X)) \
11-
--pretty normal $$i >$$i.tmp && mv $$i.tmp $$i; \
13+
--pretty normal $$i >$$i.tmp; \
14+
if cmp --silent $$i.tmp $$i; \
15+
then echo no changes to $$i; rm $$i.tmp; \
16+
else mv $$i.tmp $$i; fi \
1217
done

trunk/src/test/run-pass/block-expr-precedence.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// no-reformat
2+
13
/*
24
*
35
* When you write a block-expression thing followed by

0 commit comments

Comments
 (0)