See https://github.com/scala/scala/pull/2821/files#L0L599.