aboutsummaryrefslogtreecommitdiff
path: root/macros/src/syntax.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/syntax.rs')
-rw-r--r--macros/src/syntax.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/macros/src/syntax.rs b/macros/src/syntax.rs
index 11b92c1b..09b2ab3d 100644
--- a/macros/src/syntax.rs
+++ b/macros/src/syntax.rs
@@ -1,7 +1,6 @@
#[allow(unused_extern_crates)]
extern crate proc_macro;
-use core::ops;
use proc_macro::TokenStream;
use indexmap::{IndexMap, IndexSet};
@@ -23,26 +22,6 @@ pub type Map<T> = IndexMap<Ident, T>;
/// An order set
pub type Set<T> = IndexSet<T>;
-/// Immutable pointer
-pub struct P<T> {
- ptr: Box<T>,
-}
-
-impl<T> P<T> {
- /// Boxes `x` making the value immutable
- pub fn new(x: T) -> P<T> {
- P { ptr: Box::new(x) }
- }
-}
-
-impl<T> ops::Deref for P<T> {
- type Target = T;
-
- fn deref(&self) -> &T {
- &self.ptr
- }
-}
-
/// Execution context
#[derive(Clone, Copy)]
pub enum Context<'a> {