about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorCharles Lew <crlf0710@gmail.com>2021-04-26 01:09:35 +0800
committerCharles Lew <crlf0710@gmail.com>2021-04-29 08:35:08 +0800
commitd261df4a72e60e8baa0f21b67eba8f7b91cc2135 (patch)
tree4547e05f08c17033fdc8da3d03415010f213d82c /compiler/rustc_interface/src
parent727d101561f9b1e81c6282943292d990288ca479 (diff)
downloadrust-d261df4a72e60e8baa0f21b67eba8f7b91cc2135.tar.gz
rust-d261df4a72e60e8baa0f21b67eba8f7b91cc2135.zip
Implement RFC 1260 with feature_name `imported_main`.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/queries.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/queries.rs b/compiler/rustc_interface/src/queries.rs
index 01853eab530..bc94fb67ac3 100644
--- a/compiler/rustc_interface/src/queries.rs
+++ b/compiler/rustc_interface/src/queries.rs
@@ -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() {