namespace Rust {
-/**
- * Determines whether any cfg predicate is false and hence item with attributes
- * should be stripped. Note that attributes must be expanded before calling.
- */
-bool
-CfgStrip::fails_cfg (const AST::AttrVec &attrs) const
-{
- auto &session = Session::get_instance ();
-
- for (const auto &attr : attrs)
- {
- if (attr.get_path () == Values::Attributes::CFG
- && !attr.check_cfg_predicate (session))
- return true;
- else if (!expansion_cfg.should_test
- && attr.get_path () == Values::Attributes::TEST)
- return true;
- }
- return false;
-}
-
/**
* Determines whether any cfg predicate is false and hence item with attributes
* should be stripped. Will expand attributes as well.