]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_gcc/src/common.rs
Auto merge of #91929 - anuvratsingh:remove_in_band_lifetimes_compiler_rustc_traits...
[rust.git] / compiler / rustc_codegen_gcc / src / common.rs
index bda08b653f05929fc35a58d273a80fdc20c728ae..ec542e55681e5be898ab0be9f2c4671b40c7950c 100644 (file)
@@ -33,7 +33,7 @@ fn const_cstr(&self, symbol: Symbol, _null_terminated: bool) -> LValue<'gcc> {
             return value;
         }
 
-        let global = self.global_string(&*symbol.as_str());
+        let global = self.global_string(symbol.as_str());
 
         self.const_cstr_cache.borrow_mut().insert(symbol, global);
         global