diff options
| author | Luca Versari <veluca@google.com> | 2024-06-24 17:17:18 +0200 | 
|---|---|---|
| committer | Luca Versari <veluca93@gmail.com> | 2024-08-28 09:54:23 +0200 | 
| commit | 7eb4cfeaced28d49952e4ef54f8fe02258125854 (patch) | |
| tree | 3ce2201b99e4a8a38f9f131fada5132be4327e7d /compiler/rustc_middle/src/query/mod.rs | |
| parent | 748c54848dc2964b7e133f945cabe5bc64079947 (diff) | |
| download | rust-7eb4cfeaced28d49952e4ef54f8fe02258125854.tar.gz rust-7eb4cfeaced28d49952e4ef54f8fe02258125854.zip | |
Implement RFC 3525.
Diffstat (limited to 'compiler/rustc_middle/src/query/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index c785b235f61..6434bd0d7bf 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -47,7 +47,7 @@ use {rustc_ast as ast, rustc_attr as attr, rustc_hir as hir}; use crate::infer::canonical::{self, Canonical}; use crate::lint::LintExpectation; use crate::metadata::ModChild; -use crate::middle::codegen_fn_attrs::CodegenFnAttrs; +use crate::middle::codegen_fn_attrs::{CodegenFnAttrs, TargetFeature}; use crate::middle::debugger_visualizer::DebuggerVisualizerFile; use crate::middle::exported_symbols::{ExportedSymbol, SymbolExportInfo}; use crate::middle::lib_features::LibFeatures; @@ -1245,6 +1245,11 @@ rustc_queries! { feedable } + query struct_target_features(def_id: DefId) -> &'tcx [TargetFeature] { + separate_provide_extern + desc { |tcx| "computing target features for struct `{}`", tcx.def_path_str(def_id) } + } + query asm_target_features(def_id: DefId) -> &'tcx FxIndexSet<Symbol> { desc { |tcx| "computing target features for inline asm of `{}`", tcx.def_path_str(def_id) } } | 
