diff options
Diffstat (limited to 'src/librustc_trans/trans/base.rs')
| -rw-r--r-- | src/librustc_trans/trans/base.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librustc_trans/trans/base.rs b/src/librustc_trans/trans/base.rs index 83779ffbe16..f1d839e916d 100644 --- a/src/librustc_trans/trans/base.rs +++ b/src/librustc_trans/trans/base.rs @@ -103,9 +103,11 @@ use syntax::visit::Visitor; use syntax::visit; use syntax::{ast, ast_util, ast_map}; -thread_local!(static TASK_LOCAL_INSN_KEY: RefCell<Option<Vec<&'static str>>> = { - RefCell::new(None) -}) +thread_local! { + static TASK_LOCAL_INSN_KEY: RefCell<Option<Vec<&'static str>>> = { + RefCell::new(None) + } +} pub fn with_insn_ctxt<F>(blk: F) where F: FnOnce(&[&'static str]), |
