}
collector.collect_from_attrs(&tcx.hir.krate().attrs);
tcx.hir.krate().visit_all_item_likes(&mut collector);
+ for exported_macro in &tcx.hir.krate().exported_macros {
+ collector.collect_from_attrs(&exported_macro.attrs);
+ }
collector.lib_features
}
// FIXME(varkor): we don't properly handle lib features behind `cfg` attributes yet,
// but it happens just to affect `libc`, so we're just going to hard-code it for now.
remaining_lib_features.remove(&Symbol::intern("libc"));
- // FIXME(varkor): we have a problem gathering features on macros right now, so we're
- // going to hard-code some features here for now.
- remaining_lib_features.remove(&Symbol::intern("await_macro"));
- remaining_lib_features.remove(&Symbol::intern("unstable_macros"));
for (feature, stable) in tcx.lib_features().iter() {
if let Some(since) = stable {