Support vec![const { ... }; n] syntax by EFanZh · Pull Request #133412 · rust-lang/rust (original) (raw)

We do intent that consts can still be implemented as many copies of the same thing for codegen. So whatever we do with const allocation should support that.

But it may be good to put a comment in the source here explaining that this is the standard library doing privileged reasoning, and not a stable guarantee.