-
Notifications
You must be signed in to change notification settings - Fork 13.3k
calculate step duration in a panic-safe way #140670
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
Conversation
Signed-off-by: onur-ozkan <work@onurozkan.dev>
rustbot has assigned @Mark-Simulacrum. Use |
(out, dur - deps) | ||
(out, dur.saturating_sub(deps)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this happens, it's clear something is wrong on the host system. But instead of panicking, we can rely on the invalid value which isn't critically important anyway (it's only used for logging if enabled).
@bors r+ rollup |
…llaumeGomez Rollup of 11 pull requests Successful merges: - rust-lang#140080 (mir-opt: Use one MirPatch in MatchBranchSimplification) - rust-lang#140115 (mir-opt: execute MatchBranchSimplification after GVN) - rust-lang#140357 (bypass linker configuration and cross target check on `x check`) - rust-lang#140374 (Resolve instance for SymFn in global/naked asm) - rust-lang#140559 (Removing rustc_type_ir in the rustc_infer codebase) - rust-lang#140605 (`fn check_opaque_type_parameter_valid` defer error) - rust-lang#140636 (implement `PanicTracker` to track `t` panics) - rust-lang#140661 (Make `-Zfixed-x18` into a target modifier) - rust-lang#140670 (calculate step duration in a panic-safe way) - rust-lang#140672 (Deeply normalize in the new solver in WF) - rust-lang#140676 (Update books) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#140670 - onur-ozkan:129959, r=Kobzol calculate step duration in a panic-safe way obvious/self-explanatory change. Fixes rust-lang#129959
obvious/self-explanatory change.
Fixes #129959