mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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
|
/// # SAFETY
|
||||||
/// This method is completely unsound and should not be used.
|
/// This method is completely unsound and should not be used.
|
||||||
/// We need to remove all uses of it. Please don't add any more!
|
/// 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>
|
/// <https://github.com/oxc-project/oxc/issues/3483>
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn copy<T>(self, src: &T) -> T {
|
pub fn copy<T>(self, src: &T) -> T {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue