about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeremy Stucki <dev@jeremystucki.ch>2022-12-20 22:34:42 +0100
committerJeremy Stucki <dev@jeremystucki.ch>2022-12-20 22:34:42 +0100
commit2d09c9bc948031e2ee8661915513a000bdc594ac (patch)
tree03daa007befce0b8f8c082441f34b5d880694cec
parentb4e9ba5cf3dc785ea1cbb8ff871194729ccb826b (diff)
downloadrust-2d09c9bc948031e2ee8661915513a000bdc594ac.tar.gz
rust-2d09c9bc948031e2ee8661915513a000bdc594ac.zip
Add missing anonymous lifetime
-rw-r--r--src/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index d7df1347121..0afc56b4494 100644
--- a/src/common.rs
+++ b/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()
 }