| // tokio macro-generated code doesn't respect this | |
| use turbo_tasks::debug::ValueDebugFormat; | |
| use turbo_tasks_testing::{Registration, register, run}; | |
| static REGISTRATION: Registration = register!(); | |
| async fn ignored_indexes() { | |
| struct IgnoredIndexes( | |
| i32, | |
| i32, | |
| i32, | |
| ); | |
| run(®ISTRATION, || async { | |
| let input = IgnoredIndexes(-1, 2, -3); | |
| let debug = input.value_debug_format(usize::MAX).try_to_string().await?; | |
| assert!(!debug.contains("-1")); | |
| assert!(debug.contains('2')); | |
| assert!(!debug.contains("-3")); | |
| anyhow::Ok(()) | |
| }) | |
| .await | |
| .unwrap(); | |
| } | |