diff options
| author | bors <bors@rust-lang.org> | 2024-06-15 06:38:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-15 06:38:21 +0000 |
| commit | 8217b412a235407243f2516ebc859e7b3af8345a (patch) | |
| tree | 06752272c05fe81ace96cc7613c4888936b7473a /compiler/rustc_codegen_llvm/src | |
| parent | 9239d3eb2b08bfdff30c86cdd9ce32687e488f5d (diff) | |
| parent | 93ff86ed7c38b68644964d80155cff5e04bd5f42 (diff) | |
| download | rust-8217b412a235407243f2516ebc859e7b3af8345a.tar.gz rust-8217b412a235407243f2516ebc859e7b3af8345a.zip | |
Auto merge of #126491 - compiler-errors:is_lang_item, r=oli-obk
Add `TyCtxt::is_lang_item`, use it in the compiler ```rust pub fn is_lang_item(self, def_id: DefId, lang_item: LangItem) -> bool; ``` Easier than having to use `Some(def_id) == tcx.lang_items().iterator_trait()` or something. Also makes it easier to turn into `TraitSolverLangItem` in the future. Hope it's not too bad for perf. r? `@lcnr` or `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
