Skip to content

Commit 6f26087

Browse files
committed
refactor(ast): add comment about alternatives to AstBuilder::copy (#3905)
Expand on comment added in #3891.
1 parent fafe67c commit 6f26087

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/oxc_ast/src/ast_builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ impl<'a> AstBuilder<'a> {
7171
/// # SAFETY
7272
/// This method is completely unsound and should not be used.
7373
/// We need to remove all uses of it. Please don't add any more!
74+
/// Use `move_expression`, `move_statement`, or one of the other `move_*` methods below instead.
7475
/// <https://github.com/oxc-project/oxc/issues/3483>
7576
#[inline]
7677
pub fn copy<T>(self, src: &T) -> T {

0 commit comments

Comments
 (0)