mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(ast): add comment about alternatives to AstBuilder::copy (#3905)
Expand on comment added in #3891.
This commit is contained in:
parent
fafe67c817
commit
6f260871d7
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue