This comment on the HIR `visit_path_segment` is supposed be on the AST `visit_path_segment`.
check_attr