diff options
| author | bors <bors@rust-lang.org> | 2021-04-30 06:59:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-04-30 06:59:37 +0000 |
| commit | bcd696d722c04a0f8c34d884aa4ed2322f55cdd8 (patch) | |
| tree | 82e40b44740bbb8be5e15042af512b455d66742d /compiler/rustc_interface/src | |
| parent | a45f0d724ed7116ed475fb0d628bc118418e7cbf (diff) | |
| parent | d261df4a72e60e8baa0f21b67eba8f7b91cc2135 (diff) | |
| download | rust-bcd696d722c04a0f8c34d884aa4ed2322f55cdd8.tar.gz rust-bcd696d722c04a0f8c34d884aa4ed2322f55cdd8.zip | |
Auto merge of #84401 - crlf0710:impl_main_by_path, r=petrochenkov
Implement RFC 1260 with feature_name `imported_main`. This is the second extraction part of #84062 plus additional adjustments. This (mostly) implements RFC 1260. However there's still one test case failure in the extern crate case. Maybe `LocalDefId` doesn't work here? I'm not sure. cc https://github.com/rust-lang/rust/issues/28937 r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/queries.rs | 2 |
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() { |
