about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-07-02 09:36:52 -0700
committerGitHub <noreply@github.com>2016-07-02 09:36:52 -0700
commite85adffd6402acce79887e1b911ff33841c6133a (patch)
treefd0240798a92e6f437bf539fe03b646b8094ed0f /src/rustllvm/RustWrapper.cpp
parent7a262d303489fcbd8410b4e4cecc563b06799e16 (diff)
parentfe7207f6afed3b4727d5228d573803c165a80477 (diff)
downloadrust-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