diff options
| author | Luv-Ray <zhuoxun.yang777@outlook.com> | 2024-09-19 09:39:28 +0800 |
|---|---|---|
| committer | Luv-Ray <zhuoxun.yang777@outlook.com> | 2024-09-19 09:39:28 +0800 |
| commit | b7c5656713158e826189db21eeea051347548e07 (patch) | |
| tree | 79959f337e65a2b9d8814baefac0640289724a77 /compiler/rustc_codegen_gcc | |
| parent | a5cf8bbd4e1c8edeae08778c85c6f806dd00e853 (diff) | |
| download | rust-b7c5656713158e826189db21eeea051347548e07.tar.gz rust-b7c5656713158e826189db21eeea051347548e07.zip | |
replace some deprecated functions
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/builder.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/context.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/builder.rs b/compiler/rustc_codegen_gcc/src/builder.rs index 9282d8699eb..c7a4314d4f1 100644 --- a/compiler/rustc_codegen_gcc/src/builder.rs +++ b/compiler/rustc_codegen_gcc/src/builder.rs @@ -500,6 +500,7 @@ impl<'a, 'gcc, 'tcx> Deref for Builder<'a, 'gcc, 'tcx> { impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> { type Value = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Value; + type Metadata = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Metadata; type Function = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Function; type BasicBlock = <CodegenCx<'gcc, 'tcx> as BackendTypes>::BasicBlock; type Type = <CodegenCx<'gcc, 'tcx> as BackendTypes>::Type; diff --git a/compiler/rustc_codegen_gcc/src/context.rs b/compiler/rustc_codegen_gcc/src/context.rs index 8e1a5b61285..4b96c67a38d 100644 --- a/compiler/rustc_codegen_gcc/src/context.rs +++ b/compiler/rustc_codegen_gcc/src/context.rs @@ -414,6 +414,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> { impl<'gcc, 'tcx> BackendTypes for CodegenCx<'gcc, 'tcx> { type Value = RValue<'gcc>; + type Metadata = RValue<'gcc>; type Function = RValue<'gcc>; type BasicBlock = Block<'gcc>; |
