We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AstBuilder::copy
1 parent 558ed8b commit 611b029Copy full SHA for 611b029
crates/oxc_ast/src/ast_builder_impl.rs
@@ -94,17 +94,6 @@ impl<'a> AstBuilder<'a> {
94
}
95
96
97
- /// # SAFETY
98
- /// This method is completely unsound and should not be used.
99
- /// We need to remove all uses of it. Please don't add any more!
100
- /// <https://github.com/oxc-project/oxc/issues/3483>
101
- #[expect(clippy::missing_safety_doc)]
102
- #[inline]
103
- pub unsafe fn copy<T>(self, src: &T) -> T {
104
- // SAFETY: Not safe (see above)
105
- unsafe { std::mem::transmute_copy(src) }
106
- }
107
-
108
/// Moves the expression out by replacing it with an [`Expression::NullLiteral`].
109
#[inline]
110
pub fn move_expression(self, expr: &mut Expression<'a>) -> Expression<'a> {
0 commit comments