Chinese leader visits magnet maker as trade war with US heats up