diff options
author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-17 11:13:56 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 11:13:56 +0530 |
commit | e7176dbfd846a6f54407d85f328882ed6ff598f5 (patch) | |
tree | 862a31dd3df8b993051a4828c521a4cb4f6535ab /compiler/rustc_middle/src/error.rs | |
parent | 5b58471c4c1d4dd4a87c5deccb3678c8357a0f40 (diff) | |
parent | c3efa51947c3b14652d1e85dd3bb406522c8af22 (diff) | |
download | rust-e7176dbfd846a6f54407d85f328882ed6ff598f5.tar.gz |
Rollup merge of #111648 - Nilstrieb:language-items, r=WaffleLapkin
Remove `LangItems::require`
It's just a short wrapper used by `tcx.require_lang_item`. Deleting it gives us a negative diff.
Diffstat (limited to 'compiler/rustc_middle/src/error.rs')
-rw-r--r-- | compiler/rustc_middle/src/error.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/error.rs b/compiler/rustc_middle/src/error.rs index dc4aa18640f..046186d274c 100644 --- a/compiler/rustc_middle/src/error.rs +++ b/compiler/rustc_middle/src/error.rs @@ -1,5 +1,5 @@ use rustc_macros::Diagnostic; -use rustc_span::Span; +use rustc_span::{Span, Symbol}; use crate::ty::Ty; @@ -74,6 +74,14 @@ pub(crate) struct StrictCoherenceNeedsNegativeCoherence { } #[derive(Diagnostic)] +#[diag(middle_requires_lang_item)] +pub(crate) struct RequiresLangItem { + #[primary_span] + pub span: Option<Span>, + pub name: Symbol, +} + +#[derive(Diagnostic)] #[diag(middle_const_not_used_in_type_alias)] pub(super) struct ConstNotUsedTraitAlias { pub ct: String, |