Skip to content

Commit 980ca14

Browse files
committed
Bring back './x'. Missed it, sorry!
1 parent 62353f8 commit 980ca14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,8 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
10941094
fn_call_span,
10951095
fluent::borrowck_moved_a_fn_once_in_call,
10961096
);
1097-
err.span_note(span, fluent::borrowck_moved_a_fn_once_in_call_call);
1097+
err.span_note(span.clone(), fluent::borrowck_moved_a_fn_once_in_call_call);
1098+
err.span_note(span, "FnOnce closures can only be called once");
10981099
} else {
10991100
err.subdiagnostic(CaptureReasonNote::FnOnceMoveInCall { var_span });
11001101
}

src/etc/pre-push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ROOT_DIR="$(git rev-parse --show-toplevel)"
1212
echo "Running pre-push script $ROOT_DIR/x test tidy"
1313

1414
cd "$ROOT_DIR"
15-
python x.py test tidy --set build.locked-deps=true
15+
./x test tidy --set build.locked-deps=true
1616
if [ $? -ne 0 ]; then
1717
echo "You may use \`git push --no-verify\` to skip this check."
1818
exit 1

0 commit comments

Comments
 (0)