Skip to content

Commit

Permalink
unify_types shows up as dead code for some alt! invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Payne authored and Geal committed May 19, 2018
1 parent 6000cce commit ff4cadc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ macro_rules! alt (

// Compile-time hack to ensure that res's E type is not under-specified.
// This all has no effect at runtime.
#[allow(dead_code)]
fn unify_types<T>(_: &T, _: &T) {}
if let Err(Err::Error(ref e2)) = out {
unify_types(&e, e2);
Expand Down

0 comments on commit ff4cadc

Please sign in to comment.