diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-03-22 19:49:25 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-03-24 18:04:10 +0100 |
| commit | 9021a3f988ca134f52ca8b7d6a06952d46a38722 (patch) | |
| tree | 7800ca22fdf25f0457409c97afa17adffc43a9cb /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 5e8e1b515a9ef1cd38ee0c71f032415906a7f42d (diff) | |
| download | rust-9021a3f988ca134f52ca8b7d6a06952d46a38722.tar.gz rust-9021a3f988ca134f52ca8b7d6a06952d46a38722.zip | |
rustc: Completely forbid borrows of unsafe statics
Summary: It was possible to borrow unsafe static items in static initializers. This patch implements a small `Visitor` that walks static initializer's expressions and checks borrows aliasability. Fixes #13005 Test Plan: make check Differential Revision: http://phabricator.octayn.net/D2
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
