better debug name for interned query arguments (#837)

* feat: Improve debug name for interned query arguments

* Change name again
This commit is contained in:
Micha Reiser 2025-04-30 19:20:49 +02:00 committed by GitHub
parent 42f15835c0
commit ad3dff6cb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -139,7 +139,7 @@ macro_rules! setup_tracked_fn {
file: file!(),
line: line!(),
};
const DEBUG_NAME: &'static str = "Configuration";
const DEBUG_NAME: &'static str = concat!(stringify!($fn_name), "::interned_arguments");
type Fields<$db_lt> = ($($input_ty),*);

View file

@ -141,10 +141,10 @@ fn revalidate_no_changes() {
[
"salsa_event(DidSetCancellationFlag)",
"salsa_event(DidValidateMemoizedValue { database_key: read_value(Id(403)) })",
"salsa_event(DidReinternValue { key: Configuration(Id(800)), revision: R2 })",
"salsa_event(DidReinternValue { key: query_d::interned_arguments(Id(800)), revision: R2 })",
"salsa_event(DidValidateMemoizedValue { database_key: query_d(Id(800)) })",
"salsa_event(DidValidateMemoizedValue { database_key: query_b(Id(0)) })",
"salsa_event(DidReinternValue { key: Configuration(Id(800)), revision: R2 })",
"salsa_event(DidReinternValue { key: query_d::interned_arguments(Id(800)), revision: R2 })",
"salsa_event(DidValidateMemoizedValue { database_key: query_a(Id(0)) })",
"salsa_event(DidValidateMemoizedValue { database_key: query_b(Id(0)) })",
]"#]]);
@ -171,7 +171,7 @@ fn revalidate_with_change_after_output_read() {
[
"salsa_event(DidSetCancellationFlag)",
"salsa_event(DidValidateMemoizedValue { database_key: read_value(Id(403)) })",
"salsa_event(DidReinternValue { key: Configuration(Id(800)), revision: R2 })",
"salsa_event(DidReinternValue { key: query_d::interned_arguments(Id(800)), revision: R2 })",
"salsa_event(WillExecute { database_key: query_d(Id(800)) })",
"salsa_event(WillExecute { database_key: query_a(Id(0)) })",
"salsa_event(DidValidateMemoizedValue { database_key: read_value(Id(400)) })",

View file

@ -64,7 +64,7 @@ fn test_leaked_inputs_ignored() {
[
"WillCheckCancellation",
"WillExecute { database_key: function(Id(0)) }",
"DidInternValue { key: Configuration(Id(800)), revision: R1 }",
"DidInternValue { key: counter_field::interned_arguments(Id(800)), revision: R1 }",
"WillCheckCancellation",
"WillExecute { database_key: counter_field(Id(800)) }",
]"#]]);
@ -83,7 +83,7 @@ fn test_leaked_inputs_ignored() {
[
"DidSetCancellationFlag",
"WillCheckCancellation",
"DidReinternValue { key: Configuration(Id(800)), revision: R2 }",
"DidReinternValue { key: counter_field::interned_arguments(Id(800)), revision: R2 }",
"WillCheckCancellation",
"WillExecute { database_key: counter_field(Id(800)) }",
"WillExecute { database_key: function(Id(0)) }",