Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #98505

Closed
wants to merge 28 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fd76552
std: use an event flag based thread parker on SOLID
joboet May 18, 2022
3b6ae15
std: fix deadlock in `Parker`
joboet May 19, 2022
b9660de
std: solve priority issue for Parker
joboet Jun 4, 2022
caff723
std: relax memory orderings in `Parker`
joboet Jun 7, 2022
c238582
On partial uninit error point at where we need init
estebank Jun 21, 2022
a944456
Tweak wording and spans
estebank Jun 21, 2022
328522e
Review comments: wording
estebank Jun 22, 2022
0e69340
Add test for `for` loop maybe initializing binding
estebank Jun 22, 2022
6eadf6e
Avoid misleading message/label in `match-cfg-fake-edges.rs` test
estebank Jun 22, 2022
cc4f804
Move help popup into a pocket menu as well
GuillaumeGomez Jun 20, 2022
3eb9e1a
Add/update GUI tests for help pocket menu
GuillaumeGomez Jun 20, 2022
e4b2b41
Merge all popover hide functions into one
GuillaumeGomez Jun 22, 2022
8495c64
Fix label on uninit binding field assignment
estebank Jun 22, 2022
6dd32f2
Wording tweak
estebank Jun 23, 2022
20cea3e
Fix printing impl trait under binders
compiler-errors Jun 22, 2022
e80cced
Use write! instead of p! to avoid having to use weird scoping
compiler-errors Jun 22, 2022
9169905
x.py: Support systems with only `python3` not `python`
dtolnay Jun 25, 2022
7475867
[rustc_parse] Forbid lets in certain places
c410-f3r Jun 25, 2022
557793c
Bump RLS to latest master on rust-lang/rls
Mark-Simulacrum Jun 25, 2022
50a46b9
Fix backtrace UI test when panic=abort is used
antoyo Jun 25, 2022
0b8f8ef
Rollup merge of #97140 - joboet:solid_parker, r=m-ou-se
matthiaskrgr Jun 25, 2022
abf170e
Rollup merge of #97295 - c410-f3r:yet-another-let-chain, r=compiler-e…
matthiaskrgr Jun 25, 2022
db07f57
Rollup merge of #98297 - GuillaumeGomez:help-pocket-menu, r=notriddle
matthiaskrgr Jun 25, 2022
0585b4a
Rollup merge of #98360 - estebank:uninit-binding, r=oli-obk
matthiaskrgr Jun 25, 2022
c22cc40
Rollup merge of #98371 - compiler-errors:better-opaque-printing, r=ol…
matthiaskrgr Jun 25, 2022
b8bfe35
Rollup merge of #98474 - dtolnay:python3, r=Mark-Simulacrum
matthiaskrgr Jun 25, 2022
0c0e4c8
Rollup merge of #98488 - Mark-Simulacrum:bump-rls, r=pietroalbini
matthiaskrgr Jun 25, 2022
2761d5f
Rollup merge of #98491 - antoyo:fix/ui-test-backtrace-panic-abort, r=…
matthiaskrgr Jun 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions x.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
#!/usr/bin/env python
#!/usr/bin/env bash

# Modern Linux and macOS systems commonly only have a thing called `python3` and
# not `python`, while Windows commonly does not have `python3`, so we cannot
# directly use python in the shebang and have it consistently work. Instead we
# embed some bash to look for a python to run the rest of the script.
#
# On Windows, `py -3` sometimes works. We need to try it first because `python3`
# sometimes tries to launch the app store on Windows.
'''':
for PYTHON in "py -3" python3 python python2; do
if command -v $PYTHON >/dev/null; then
exec $PYTHON "$0" "$@"
break
fi
done
echo "$0: error: did not find python installed" >&2
exit 1
'''
# The rest of this file is Python.
#
# This file is only a "symlink" to bootstrap.py, all logic should go there.
import os
import sys
# If this is python2, check if python3 is available and re-execute with that
# interpreter.
#
# `./x.py` would not normally benefit from this because the bash above tries
# python3 before 2, but this matters if someone ran `python x.py` and their
# system's `python` is python2.
if sys.version_info.major < 3:
try:
# On Windows, `py -3` sometimes works.
# Try this first, because 'python3' sometimes tries to launch the app
# store on Windows
os.execvp("py", ["py", "-3"] + sys.argv)
except OSError:
try: