https://github.com/magento/magento2/commit/3d13c9bd#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780
See also:
How to fix the «Can’t create directory var/generation» issue?
var/generation