about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_typeck/check/demand.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/check/demand.rs b/src/librustc_typeck/check/demand.rs
index 980aefa710f..aa36bec6e1e 100644
--- a/src/librustc_typeck/check/demand.rs
+++ b/src/librustc_typeck/check/demand.rs
@@ -770,12 +770,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                 (&ty::Int(exp), &ty::Uint(found)) => {
                     let is_fallible = match (exp.bit_width(), found.bit_width()) {
                         (Some(exp), Some(found)) if found < exp => false,
-                        (None, Some(found)) if found <= 16 => false,
-                        _ => true
+                        (None, Some(8)) => false,
+                        _ => true,
                     };
                     suggest_to_change_suffix_or_into(err, is_fallible);
                     true
-                },
+                }
                 (&ty::Uint(_), &ty::Int(_)) => {
                     suggest_to_change_suffix_or_into(err, true);
                     true