diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-06-20 20:03:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 20:03:24 +0200 |
| commit | 31663db8965dd30d07ee700631a6f67c12fe0e19 (patch) | |
| tree | b131484b5b4c79b1879c9b87f32ce432fc447e23 /compiler/rustc_builtin_macros/src/autodiff.rs | |
| parent | 74cea635e1b14337acd5c06d8b21a24f01e5002e (diff) | |
| parent | b95d39d37ae99bca1e9938738ec2c0e3724eefb1 (diff) | |
| download | rust-31663db8965dd30d07ee700631a6f67c12fe0e19.tar.gz rust-31663db8965dd30d07ee700631a6f67c12fe0e19.zip | |
Rollup merge of #142767 - nnethercote:symbol-cleanups, r=petrochenkov
Some symbol and PathRoot cleanups I'm looking into unifying how we join and print paths. Here are some preliminary cleanups. r? ``@petrochenkov``
Diffstat (limited to 'compiler/rustc_builtin_macros/src/autodiff.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/autodiff.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/autodiff.rs b/compiler/rustc_builtin_macros/src/autodiff.rs index dc3bb8ab52a..df1b1eb60e1 100644 --- a/compiler/rustc_builtin_macros/src/autodiff.rs +++ b/compiler/rustc_builtin_macros/src/autodiff.rs @@ -652,8 +652,10 @@ mod llvm_enzyme { exprs = ecx.expr_call(new_decl_span, bb_call_expr, thin_vec![exprs]); } else { let q = QSelf { ty: d_ret_ty, path_span: span, position: 0 }; - let y = - ExprKind::Path(Some(P(q)), ecx.path_ident(span, Ident::from_str("default"))); + let y = ExprKind::Path( + Some(P(q)), + ecx.path_ident(span, Ident::with_dummy_span(kw::Default)), + ); let default_call_expr = ecx.expr(span, y); let default_call_expr = ecx.expr_call(new_decl_span, default_call_expr, thin_vec![]); |
