-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
add a Backtrace::disabled function #74490
Conversation
r? @dtolnay (rust_highfive has picked a reviewer for you, use r? to override) |
@mystor has raised an alternative approach based on consts impl Backtrace {
const DISABLED: Backtrace;
} |
|
Co-authored-by: David Tolnay <dtolnay@gmail.com>
I think making this |
@bors r+ rollup |
📌 Commit 50347b8 has been approved by |
…arth Rollup of 8 pull requests Successful merges: - rust-lang#74141 (libstd/libcore: fix various typos) - rust-lang#74490 (add a Backtrace::disabled function) - rust-lang#74548 (one more Path::with_extension example, to demonstrate behavior) - rust-lang#74587 (Prefer constant over function) - rust-lang#74606 (Remove Linux workarounds for missing CLOEXEC support) - rust-lang#74637 (Make str point to primitive page) - rust-lang#74654 (require type defaults to be after const generic parameters) - rust-lang#74659 (Improve codegen for unchecked float casts on wasm) Failed merges: r? @ghost
Based upon @dtolnay's suggestion here: dtolnay/anyhow#97 (comment)