|
1 | 1 | use std::{cell::RefCell, rc::Rc, sync::Arc};
|
2 | 2 |
|
3 | 3 | use num_bigint::BigInt;
|
4 |
| -use swc_allocator::nightly_only; |
5 | 4 |
|
6 | 5 | use crate::{BytePos, Span};
|
7 | 6 |
|
@@ -64,20 +63,20 @@ where
|
64 | 63 | }
|
65 | 64 | }
|
66 | 65 |
|
67 |
| -nightly_only!( |
68 |
| - impl<T> EqIgnoreSpan for swc_allocator::vec::Vec<T> |
69 |
| - where |
70 |
| - T: EqIgnoreSpan, |
71 |
| - { |
72 |
| - fn eq_ignore_span(&self, other: &Self) -> bool { |
73 |
| - self.len() == other.len() |
74 |
| - && self |
75 |
| - .iter() |
76 |
| - .zip(other.iter()) |
77 |
| - .all(|(a, b)| a.eq_ignore_span(b)) |
78 |
| - } |
79 |
| - } |
80 |
| -); |
| 66 | +// nightly_only!( |
| 67 | +// impl<T> EqIgnoreSpan for swc_allocator::vec::Vec<T> |
| 68 | +// where |
| 69 | +// T: EqIgnoreSpan, |
| 70 | +// { |
| 71 | +// fn eq_ignore_span(&self, other: &Self) -> bool { |
| 72 | +// self.len() == other.len() |
| 73 | +// && self |
| 74 | +// .iter() |
| 75 | +// .zip(other.iter()) |
| 76 | +// .all(|(a, b)| a.eq_ignore_span(b)) |
| 77 | +// } |
| 78 | +// } |
| 79 | +// ); |
81 | 80 |
|
82 | 81 | /// Derive with `#[derive(TypeEq)]`.
|
83 | 82 | pub trait TypeEq {
|
@@ -188,27 +187,27 @@ macro_rules! deref {
|
188 | 187 |
|
189 | 188 | deref!(Box, Rc, Arc);
|
190 | 189 |
|
191 |
| -swc_allocator::nightly_only!( |
192 |
| - impl<N> EqIgnoreSpan for swc_allocator::boxed::Box<N> |
193 |
| - where |
194 |
| - N: EqIgnoreSpan, |
195 |
| - { |
196 |
| - #[inline] |
197 |
| - fn eq_ignore_span(&self, other: &Self) -> bool { |
198 |
| - (**self).eq_ignore_span(&**other) |
199 |
| - } |
200 |
| - } |
201 |
| - |
202 |
| - impl<N> TypeEq for swc_allocator::boxed::Box<N> |
203 |
| - where |
204 |
| - N: TypeEq, |
205 |
| - { |
206 |
| - #[inline] |
207 |
| - fn type_eq(&self, other: &Self) -> bool { |
208 |
| - (**self).type_eq(&**other) |
209 |
| - } |
210 |
| - } |
211 |
| -); |
| 190 | +// swc_allocator::nightly_only!( |
| 191 | +// impl<N> EqIgnoreSpan for swc_allocator::boxed::Box<N> |
| 192 | +// where |
| 193 | +// N: EqIgnoreSpan, |
| 194 | +// { |
| 195 | +// #[inline] |
| 196 | +// fn eq_ignore_span(&self, other: &Self) -> bool { |
| 197 | +// (**self).eq_ignore_span(&**other) |
| 198 | +// } |
| 199 | +// } |
| 200 | + |
| 201 | +// impl<N> TypeEq for swc_allocator::boxed::Box<N> |
| 202 | +// where |
| 203 | +// N: TypeEq, |
| 204 | +// { |
| 205 | +// #[inline] |
| 206 | +// fn type_eq(&self, other: &Self) -> bool { |
| 207 | +// (**self).type_eq(&**other) |
| 208 | +// } |
| 209 | +// } |
| 210 | +// ); |
212 | 211 |
|
213 | 212 | impl<N> EqIgnoreSpan for &N
|
214 | 213 | where
|
|
0 commit comments