-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Remove fn backtrace
and replace with usages of provider API
#99431
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
(rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup=never |
📌 Commit 10bb380599e28e796bfad141ea555e9ecf418543 has been approved by It is now in the queue for this repository. |
@bors r+ |
📌 Commit 10bb380599e28e796bfad141ea555e9ecf418543 has been approved by It is now in the queue for this repository. |
⌛ Testing commit 10bb380599e28e796bfad141ea555e9ecf418543 with merge b7dcd855e7a5f67c9b032f0688300e3227bb61f4... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
Probably caused by anyhow's autodetection of the backtrace feature this PR removed. The intention is that changes to the api would cause anyhow to not use backtrace, but there is a bug there I think. https://github.com/dtolnay/anyhow/blob/master/build.rs |
I don't understand what is going wrong here. The log output from this failure doesn't show anything other than that cc @dtolnay I guess I'm gonna try to figure out exactly what step the CI failed on to see if that helps me with getting a repro... edit: it looks like it only failed on windows, I'm going to assume that is relevant. |
Finished benchmarking commit (ebe571cf3c33a5e18ad1a047c97f24c41f51bea8): comparison url. Instruction count
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Footnotes |
@Mark-Simulacrum how do we feel about these results? Results are mixed and only seem to impact incremental builds. Do you think this should be split further or can we go ahead and merge the bump together with this PR? |
I think I would recommend splitting to a separate PR. The results are pretty likely to be noise, but a separate PR will also isolate from any unexpected problems (e.g., from non-Linux platforms) and doesn't seem to hard. I'm happy to r+ that PR quickly :) If the results were completely neutral then we could go ahead here, but as-is there doesn't seem to be much motivation to bundle things. |
bump rustc-perf commit split off from rust-lang#99431 needed to access bugfix from rust-lang/rustc-perf#1366
re-approving now that the @bors r=joshtriplett |
☀️ Test successful - checks-actions |
Finished benchmarking commit (9538d2d): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Stabilize backtrace This PR stabilizes the std::backtrace module. As of rust-lang#99431, the std::Error::backtrace item has been removed, and so the rest of the backtrace feature is set to be stabilized. Previous discussion can be found in rust-lang#72981, rust-lang#3156. Stabilized API summary: ```rust pub mod std { pub mod backtrace { pub struct Backtrace { } pub enum BacktraceStatus { Unsupported, Disabled, Captured, } impl fmt::Debug for Backtrace {} impl Backtrace { pub fn capture() -> Backtrace; pub fn force_capture() -> Backtrace; pub const fn disabled() -> Backtrace; pub fn status(&self) -> BacktraceStatus; } impl fmt::Display for Backtrace {} } } ``` `@yaahc`
Summary: It includes this fix which was backported to 1.62.1. rust-lang/rust#98950 `2022-08-06` is what will become 1.64.0. Changes are caused by: - Split TypeVisitable from TypeFoldable: rust-lang/rust#98206 - Remove `fn backtrace` and replace with usages of provider API: rust-lang/rust#99431 Reviewed By: stepancheg Differential Revision: D39277984 fbshipit-source-id: 5afc6c2b9e5ee3074ea0ede995868aef12cebf14
Summary: It includes this fix which was backported to 1.62.1. rust-lang/rust#98950 `2022-08-06` is what will become 1.64.0. Changes are caused by: - Split TypeVisitable from TypeFoldable: rust-lang/rust#98206 - Remove `fn backtrace` and replace with usages of provider API: rust-lang/rust#99431 Reviewed By: stepancheg Differential Revision: D39277984 fbshipit-source-id: 5afc6c2b9e5ee3074ea0ede995868aef12cebf14
This PR is part of moving error into core and has been split to facilitate review.