This commit is contained in:
Niko Matsakis 2024-07-18 07:50:22 -04:00
parent 812923ab0c
commit c545f8a8c3
4 changed files with 4 additions and 4 deletions

View file

@ -16,9 +16,9 @@ mod macro_if;
mod maybe_backdate;
mod maybe_clone;
mod setup_accumulator_impl;
mod setup_fn;
mod setup_input_struct;
mod setup_interned_struct;
mod setup_method_body;
mod setup_tracked_fn;
mod setup_tracked_struct;
mod unexpected_cycle_recovery;

View file

@ -1,6 +1,6 @@
/// Macro for setting up a function that must intern its arguments.
#[macro_export]
macro_rules! setup_fn {
macro_rules! setup_tracked_fn {
(
// Attributes on the function
attrs: [$(#[$attr:meta]),*],

View file

@ -110,7 +110,7 @@ impl Macro {
Ok(crate::debug::dump_tokens(
fn_name,
quote![salsa::plumbing::setup_fn! {
quote![salsa::plumbing::setup_tracked_fn! {
attrs: [#(#attrs),*],
vis: #vis,
fn_name: #fn_name,

View file

@ -112,10 +112,10 @@ pub mod plumbing {
pub use salsa_macro_rules::maybe_clone;
pub use salsa_macro_rules::maybe_cloned_ty;
pub use salsa_macro_rules::setup_accumulator_impl;
pub use salsa_macro_rules::setup_fn;
pub use salsa_macro_rules::setup_input_struct;
pub use salsa_macro_rules::setup_interned_struct;
pub use salsa_macro_rules::setup_method_body;
pub use salsa_macro_rules::setup_tracked_fn;
pub use salsa_macro_rules::setup_tracked_struct;
pub use salsa_macro_rules::unexpected_cycle_recovery;