Skip to content

Commit

Permalink
Bring back './x'. Missed it, sorry!
Browse files Browse the repository at this point in the history
  • Loading branch information
malezjaa committed Dec 24, 2024
1 parent 62353f8 commit 980ca14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compiler/rustc_borrowck/src/diagnostics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,8 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
fn_call_span,
fluent::borrowck_moved_a_fn_once_in_call,
);
err.span_note(span, fluent::borrowck_moved_a_fn_once_in_call_call);
err.span_note(span.clone(), fluent::borrowck_moved_a_fn_once_in_call_call);
err.span_note(span, "FnOnce closures can only be called once");
} else {
err.subdiagnostic(CaptureReasonNote::FnOnceMoveInCall { var_span });
}
Expand Down
2 changes: 1 addition & 1 deletion src/etc/pre-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ROOT_DIR="$(git rev-parse --show-toplevel)"
echo "Running pre-push script $ROOT_DIR/x test tidy"

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

0 comments on commit 980ca14

Please sign in to comment.