update to be compatible to the change of do and closure in rustc master.

I update the code to compile with the current rust master.