Skip to content

Commit 0cca9c8

Browse files
committed
persist-client: ignore warning about #[track_caller]
`#[track_caller]` has no effect on async functions currently, and the compiler warns about that. However, fixing this is in progress ([0]). Rather than removing the annotations from async functions, we instead ignore the compiler warning, so we don't forget to add the annotations again once [0] is implemented. [0]: rust-lang/rust#87417
1 parent f492f39 commit 0cca9c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/persist-client/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
7979
#![doc = include_str!("../README.md")]
8080
#![warn(missing_docs, missing_debug_implementations)]
81+
// #[track_caller] is currently a no-op on async functions, but that hopefully won't be the case
82+
// forever. So we already annotate those functions now and ignore the compiler warning until
83+
// https://github.com/rust-lang/rust/issues/87417 pans out.
84+
#![allow(ungated_async_fn_track_caller)]
8185

8286
use std::fmt::Debug;
8387
use std::marker::PhantomData;

0 commit comments

Comments
 (0)