diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-02-26 19:22:41 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-02-27 18:09:33 +0100 |
| commit | ee2f001a42a10b74e5a9fbb5bda175d350ebc3ff (patch) | |
| tree | 8c2da0fb31307de78f31ae712c32cb723c41e090 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 8784d2fa957ff7f6c9b317c53d1bc6a2b39b840a (diff) | |
| download | rust-ee2f001a42a10b74e5a9fbb5bda175d350ebc3ff.tar.gz rust-ee2f001a42a10b74e5a9fbb5bda175d350ebc3ff.zip | |
Forbid certain types for static items
- For each *mutable* static item, check that the **type**:
- cannot own any value whose type has a dtor
- cannot own any values whose type is an owned pointer
- For each *immutable* static item, check that the **value**:
- does not contain any ~ or box expressions
(including ~[1, 2, 3] sort of things)
- does not contain a struct literal or call to an enum
variant / struct constructor where
- the type of the struct/enum has a dtor
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
