Upstream change: transform -> map.
Fix now-invalid visibility modifiers.
Remove -Z debug-info to compile (mozilla/rust#8513).