mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Avoid feature name 'checked_duration_since' in a Tidy test
This commit is contained in:
parent
843fba3ed1
commit
5545582a6f
@ -2,8 +2,8 @@ use super::*;
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_find_attr_val() {
|
fn test_find_attr_val() {
|
||||||
let s = r#"#[unstable(feature = "checked_duration_since", issue = "58402")]"#;
|
let s = r#"#[unstable(feature = "tidy_test_never_used_anywhere_else", issue = "58402")]"#;
|
||||||
assert_eq!(find_attr_val(s, "feature"), Some("checked_duration_since"));
|
assert_eq!(find_attr_val(s, "feature"), Some("tidy_test_never_used_anywhere_else"));
|
||||||
assert_eq!(find_attr_val(s, "issue"), Some("58402"));
|
assert_eq!(find_attr_val(s, "issue"), Some("58402"));
|
||||||
assert_eq!(find_attr_val(s, "since"), None);
|
assert_eq!(find_attr_val(s, "since"), None);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user