Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andylokandy
Copy link
Contributor

No description provided.

Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC in the previous version we have a logic to prefer error's provided Location.

exn/exn/src/impls/mod.rs

Lines 49 to 57 in 3fb0377

#[track_caller]
pub fn new(error: E) -> Self {
#[track_caller]
fn make_location(err: &(impl std::error::Error + ?Sized)) -> Location<'static> {
match std::error::request_ref::<Location>(err) {
Some(loc) => *loc,
None => *Location::caller(),
}
}

I understand that it requires unstable feature so we remove it now. But not sure if it's still valuable when avaiable on stable.

@tisonkun tisonkun merged commit 3dd4384 into fast:main Oct 27, 2025
6 checks passed
@tisonkun tisonkun changed the title chore!: reduce copy of location refactor!: reduce copy of location Oct 27, 2025
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.

2 participants