mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 11:00:05 +00:00
better debug name for interned query arguments (#837)
* feat: Improve debug name for interned query arguments * Change name again
This commit is contained in:
parent
42f15835c0
commit
ad3dff6cb3
3 changed files with 6 additions and 6 deletions
|
@ -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),*);
|
||||
|
||||
|
|
|
@ -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)) })",
|
||||
|
|
|
@ -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)) }",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue