aboutsummaryrefslogtreecommitdiff
path: root/macros/src/syntax.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-02 14:34:05 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:31:01 +0100
commit582c602912592ec7ebea3096aefa02aea99c2143 (patch)
tree96b14a130788960ee06d7e80adec43a167b4844b /macros/src/syntax.rs
parent7614b96fe45240dafe91ae549e712b560e2d4c10 (diff)
downloadrtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.gz
rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.zst
rtic-582c602912592ec7ebea3096aefa02aea99c2143.zip
Old xtask test pass
Diffstat (limited to '')
-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> {