Allow warnings to migrate to rustc-1.40.0 am: e792dd6e1f am: f7719f8c63 am: a5bef5bf2f

Change-Id: I83a9dff508570b23d34e222ad843a4dbf0294c7e