Skip to content

Commit 5545582

Browse files
committed
Avoid feature name 'checked_duration_since' in a Tidy test
1 parent 843fba3 commit 5545582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/tidy/src/features/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use super::*;
22

33
#[test]
44
fn test_find_attr_val() {
5-
let s = r#"#[unstable(feature = "checked_duration_since", issue = "58402")]"#;
6-
assert_eq!(find_attr_val(s, "feature"), Some("checked_duration_since"));
5+
let s = r#"#[unstable(feature = "tidy_test_never_used_anywhere_else", issue = "58402")]"#;
6+
assert_eq!(find_attr_val(s, "feature"), Some("tidy_test_never_used_anywhere_else"));
77
assert_eq!(find_attr_val(s, "issue"), Some("58402"));
88
assert_eq!(find_attr_val(s, "since"), None);
99
}

0 commit comments

Comments
 (0)