diff options
| author | bors <bors@rust-lang.org> | 2023-08-29 19:24:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-29 19:24:47 +0000 |
| commit | 83995f320c13c05a70b460ac1cf5d9d87b497f1e (patch) | |
| tree | e37956c3fdc946a63603bb8760169f76be994490 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | b2515fa741eea89b82a2c94048f934bbcbd3bd48 (diff) | |
| parent | a644f3716325a18c971d940c97b0c56bb5215ca4 (diff) | |
| download | rust-83995f320c13c05a70b460ac1cf5d9d87b497f1e.tar.gz rust-83995f320c13c05a70b460ac1cf5d9d87b497f1e.zip | |
Auto merge of #115354 - matthiaskrgr:rollup-4cotcxz, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #111580 (Don't ICE on layout computation failure) - #114923 (doc: update lld-flavor ref) - #115174 (tests: add test for #67992) - #115187 (Add new interface to smir) - #115300 (Tweaks and improvements on SMIR around generics_of and predicates_of) - #115340 (some more is_zst that should be is_1zst) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index b7d8b9b45bf..41602321ded 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -7,6 +7,7 @@ use rustc_errors::{ IntoDiagnosticArg, }; use rustc_macros::Diagnostic; +use rustc_middle::ty::layout::LayoutError; use rustc_middle::ty::Ty; use rustc_span::{Span, Symbol}; use rustc_type_ir::FloatTy; @@ -1031,6 +1032,15 @@ pub struct TargetFeatureSafeTrait { } #[derive(Diagnostic)] +#[diag(codegen_ssa_failed_to_get_layout)] +pub struct FailedToGetLayout<'tcx> { + #[primary_span] + pub span: Span, + pub ty: Ty<'tcx>, + pub err: LayoutError<'tcx>, +} + +#[derive(Diagnostic)] #[diag(codegen_ssa_error_creating_remark_dir)] pub struct ErrorCreatingRemarkDir { pub error: std::io::Error, |
