Skip to content

Commit 24cfa1e

Browse files
committed
pacify the mercilous tidy
1 parent 3ff521b commit 24cfa1e

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

Diff for: src/test/ui/update-all-references.sh

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/bin/bash
2+
#
3+
# Copyright 2015 The Rust Project Developers. See the COPYRIGHT
4+
# file at the top-level directory of this distribution and at
5+
# http://rust-lang.org/COPYRIGHT.
6+
#
7+
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8+
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9+
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10+
# option. This file may not be copied, modified, or distributed
11+
# except according to those terms.
212

313
# A script to update the references for all tests. The idea is that
414
# you do a run, which will generate files in the build directory

Diff for: src/test/ui/update-references.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/bin/bash
2+
#
3+
# Copyright 2015 The Rust Project Developers. See the COPYRIGHT
4+
# file at the top-level directory of this distribution and at
5+
# http://rust-lang.org/COPYRIGHT.
6+
#
7+
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8+
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9+
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10+
# option. This file may not be copied, modified, or distributed
11+
# except according to those terms.
212

313
# A script to update the references for particular tests. The idea is
414
# that you do a run, which will generate files in the build directory
@@ -30,7 +40,6 @@ while [[ "$1" != "" ]]; do
3040
echo updating $MYDIR/$STDOUT_NAME
3141
cp $BUILD_DIR/$STDOUT_NAME $MYDIR/$STDOUT_NAME
3242
fi
33-
3443
if [ -f $BUILD_DIR/$STDERR_NAME ] && \
3544
! (diff $BUILD_DIR/$STDERR_NAME $MYDIR/$STDERR_NAME > /dev/null); then
3645
echo updating $MYDIR/$STDERR_NAME

Diff for: src/tools/compiletest/src/runtest.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,8 @@ actual:\n\
21592159
match File::open(path).and_then(|mut f| f.read_to_string(&mut result)) {
21602160
Ok(_) => result,
21612161
Err(e) => {
2162-
self.fatal(&format!("failed to load expected output from `{}`: {}", path.display(), e))
2162+
self.fatal(&format!("failed to load expected output from `{}`: {}",
2163+
path.display(), e))
21632164
}
21642165
}
21652166
}

0 commit comments

Comments
 (0)