diff options
| author | Marcelo DomÃnguez <dmmarcelo27@gmail.com> | 2025-05-10 00:52:47 +0000 |
|---|---|---|
| committer | Marcelo DomÃnguez <dmmarcelo27@gmail.com> | 2025-05-21 07:24:42 +0000 |
| commit | f92d84cc6e0770c0d8f3dc775bafdf7f8786db61 (patch) | |
| tree | e53ea47842d523f1ead2ca5d482e802ab18fe189 /compiler/rustc_span | |
| parent | 2041de7083c114025646220068d3943be517af4a (diff) | |
| download | rust-f92d84cc6e0770c0d8f3dc775bafdf7f8786db61.tar.gz rust-f92d84cc6e0770c0d8f3dc775bafdf7f8786db61.zip | |
Initial naive implementation using `Symbols` to represent autodiff modes (`Forward`, `Reverse`)
Since the mode is no longer part of `meta_item`, we must insert it manually (otherwise macro expansion with `#[rustc_autodiff]` won't work). This can be revised later if a more structured representation becomes necessary (using enums, annotated structs, etc). Some tests are currently failing. I'll address them next.
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index bb19b5761bb..9dff87e0a00 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -253,6 +253,7 @@ symbols! { FnMut, FnOnce, Formatter, + Forward, From, FromIterator, FromResidual, @@ -348,6 +349,7 @@ symbols! { Result, ResumeTy, Return, + Reverse, Right, Rust, RustaceansAreAwesome, |
