Skip to content

Omit unused object_boxed from vtable in old no-std rustc#416

Merged
dtolnay merged 1 commit intomasterfrom
oldnostd
Apr 14, 2025
Merged

Omit unused object_boxed from vtable in old no-std rustc#416
dtolnay merged 1 commit intomasterfrom
oldnostd

Conversation

@dtolnay
Copy link
Copy Markdown
Owner

@dtolnay dtolnay commented Apr 14, 2025

In this configuration, StdError refers to a separate trait that is private to anyhow, so the From impls are statically unusable downstream.

anyhow/src/lib.rs

Lines 281 to 282 in 213a9c2

#[cfg(all(not(feature = "std"), anyhow_no_core_error))]
trait StdError: Debug + Display {

@dtolnay dtolnay merged commit 29f2edd into master Apr 14, 2025
27 checks passed
@dtolnay dtolnay deleted the oldnostd branch April 14, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant