Translator tests: the per-thread count's doc sits on its static
The doc comment above the thread_local! macro was an unused doc comment, which clippy refuses under -D warnings in every configuration (lint job m3-max-85529). It moves inside the macro, onto the static it describes. The runtime-sources pin moves with the file.
This commit is contained in:
1 parent
c20024991d
commit
7c65d9875e
2 files changed
+6
-6
No files matched your search
@@ -1 +1 @@
|
||||
48b7912f4dddee80bc4194dde8013d44e17cb6924d2e166efa68792c3a760327
|
||||
dfe0edba01ac382597f8b3b77f0c4ce960400597e5746cc52176f2a534850dbc
|
||||
@@ -322,13 +322,13 @@ fn note_fingerprint_derived() {
|
||||
#[cfg(not(test))]
|
||||
fn note_fingerprint_derived() {}
|
||||
|
||||
/// The profile fingerprints derived on this thread, which `tests::profile_fingerprint_derived`'s
|
||||
/// count reads: a device's compiles must add none to what its own making derived. Per thread,
|
||||
/// because a test harness that runs tests as threads of one process runs others beside it, and
|
||||
/// their devices derive fingerprints of their own; the device's making and its compiles run on
|
||||
/// the test's thread.
|
||||
#[cfg(test)]
|
||||
thread_local! {
|
||||
/// The profile fingerprints derived on this thread, which `tests::profile_fingerprint_derived`'s
|
||||
/// count reads: a device's compiles must add none to what its own making derived. Per thread,
|
||||
/// because a test harness that runs tests as threads of one process runs others beside it,
|
||||
/// and their devices derive fingerprints of their own; the device's making and its compiles
|
||||
/// run on the test's thread.
|
||||
static FINGERPRINTS_DERIVED: std::cell::Cell<u64> = const { std::cell::Cell::new(0) };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user