diff options
| author | bors <bors@rust-lang.org> | 2016-07-02 09:36:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-02 09:36:52 -0700 |
| commit | e85adffd6402acce79887e1b911ff33841c6133a (patch) | |
| tree | fd0240798a92e6f437bf539fe03b646b8094ed0f /src/rustllvm/RustWrapper.cpp | |
| parent | 7a262d303489fcbd8410b4e4cecc563b06799e16 (diff) | |
| parent | fe7207f6afed3b4727d5228d573803c165a80477 (diff) | |
| download | rust-e85adffd6402acce79887e1b911ff33841c6133a.tar.gz rust-e85adffd6402acce79887e1b911ff33841c6133a.zip | |
Auto merge of #34443 - eddyb:sized-matters, r=arielb1
Disallow constants and statics from having unsized types. This is a `[breaking-change]` which fixes #34390 by banning unsized `const` and `static`, e.g.: ```rust const A: [i32] = *(&[0, 1, 2] as &[i32]); static B: str = *"foo"; ``` This was not intentionally allowed, and other than for `static` since some versions ago, it ICE'd. If you've been taking advantage of this with `static`, you should be able to just use references instead.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
