diff options
| author | Jeremy Stucki <dev@jeremystucki.ch> | 2022-12-20 22:34:42 +0100 |
|---|---|---|
| committer | Jeremy Stucki <dev@jeremystucki.ch> | 2022-12-20 22:34:42 +0100 |
| commit | 2c9d9bf381e0643ccb0a777d19473ab939ebf6ae (patch) | |
| tree | c3a9b6fbf9cea79a8f79739f40785736b9dae50b /compiler/rustc_codegen_gcc | |
| parent | 42d100aad02031121ae2390c0dc5197131e93740 (diff) | |
| download | rust-2c9d9bf381e0643ccb0a777d19473ab939ebf6ae.tar.gz rust-2c9d9bf381e0643ccb0a777d19473ab939ebf6ae.zip | |
Add missing anonymous lifetime
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/common.rs b/compiler/rustc_codegen_gcc/src/common.rs index d7df1347121..0afc56b4494 100644 --- a/compiler/rustc_codegen_gcc/src/common.rs +++ b/compiler/rustc_codegen_gcc/src/common.rs @@ -44,7 +44,7 @@ pub fn bytes_in_context<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, bytes: &[u8]) -> context.new_array_constructor(None, typ, &elements) } -pub fn type_is_pointer(typ: Type) -> bool { +pub fn type_is_pointer(typ: Type<'_>) -> bool { typ.get_pointee().is_some() } |
