Skip to content
Myr

Revert "Show turbofish optional"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit 8b191477c3f383ec1e83abe77373ee2c0c0a1b90.

authored by David Tolnay · committed by David Tolnay · parent 4e776b8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/error.rs+1 added-1 removed
575 unmodified lines
576 if TypeId::of::<E>() == target {577 // Caller is looking for an E pointer and e is ErrorImpl<E>, take a578 // pointer to its E field.579 let unerased = e.cast::<ErrorImpl<E>>().deref();580 Some(Ref::new(&unerased._object).cast())580 Some(Ref::new(&unerased._object).cast::<()>())581 } else {582 None583 }584}
267 unmodified lines