Implement RFC 1260 with feature_name imported_main
.
This commit is contained in:
parent
727d101561
commit
d261df4a72
38 changed files with 463 additions and 193 deletions
|
@ -307,7 +307,7 @@ impl<'tcx> Queries<'tcx> {
|
|||
_ => return,
|
||||
};
|
||||
|
||||
let attrs = &*tcx.get_attrs(def_id.to_def_id());
|
||||
let attrs = &*tcx.get_attrs(def_id);
|
||||
let attrs = attrs.iter().filter(|attr| tcx.sess.check_name(attr, sym::rustc_error));
|
||||
for attr in attrs {
|
||||
match attr.meta_item_list() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue