Skip to content

Commit dbbad5f

Browse files
Update attributes.rs
Delete commented code
1 parent e7cd8bb commit dbbad5f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

kani-compiler/src/kani_middle/attributes.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,27 +1036,6 @@ fn attr_kind(tcx: TyCtxt, attr: &Attribute) -> Option<KaniAttributeKind> {
10361036
} else {
10371037
None
10381038
}
1039-
// match &attr.kind {
1040-
// AttrKind::Normal(normal) => {
1041-
// let segments = &normal.path.segments;
1042-
// if (!segments.is_empty()) && segments[0].as_str() == "kanitool" {
1043-
// let ident_str = segments[1..]
1044-
// .iter()
1045-
// .map(|segment| segment.as_str())
1046-
// .intersperse("::")
1047-
// .collect::<String>();
1048-
// KaniAttributeKind::try_from(ident_str.as_str())
1049-
// .inspect_err(|&err| {
1050-
// debug!(?err, "attr_kind_failed");
1051-
// tcx.dcx().span_err(attr.span(), format!("unknown attribute `{ident_str}`"));
1052-
// })
1053-
// .ok()
1054-
// } else {
1055-
// None
1056-
// }
1057-
// }
1058-
// _ => None,
1059-
// }
10601039
}
10611040

10621041
/// Parse an attribute using `syn`.

0 commit comments

Comments
 (0)