refactor(ast): add comment about alternatives to AstBuilder::copy (#3905)

Expand on comment added in #3891.
This commit is contained in:
overlookmotel 2024-06-25 18:45:06 +00:00
parent fafe67c817
commit 6f260871d7

View file

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