Uh oh!
There was an error while loading. Please reload this page.
Make x.py compatible with python 3.8. - #70392
Conversation
Python 3.8 removes the time.clock() function, use time.perf_counter() instead.
rust-highfive
commented
Mar 25, 2020
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Mark-Simulacrum
commented
Mar 25, 2020
Can you confirm this works with Python 2 as well? (Seems so, based on the PR builders). If so, r=me |
brain0
commented
Mar 25, 2020
Sorry, I cannot test this with python2. On my system, |
Mark-Simulacrum
commented
Mar 25, 2020
@bors r+ Okay, I've done some more checking and it seems like this is correct. Thanks. |
bors
commented
Mar 25, 2020
📌 Commit a9484d4 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#69700 (Rename LayoutDetails to just Layout.) - rust-lang#70392 (Make x.py compatible with python 3.8.) - rust-lang#70406 (Clean up E0458 explanation) - rust-lang#70407 (Avoid tagging as I-nominated on toolstate breakage) - rust-lang#70409 (gitignore: allow target to be a symlink) Failed merges: - rust-lang#70375 (avoid catching InterpError) r? @ghost
Python 3.8 removes the
time.clock()function, usetime.perf_counter()instead.