Allow warnings to migrate to rustc-1.40.0 am: 7a6bcadee4 am: 9a726a08d1 am: 38c3e288c6

Change-Id: I39a53f60e3e1601e509f2ed384b47d16773a8ea6