Skip to content

Commit

Permalink
format_code_in_doc_comments = true
Browse files Browse the repository at this point in the history
Summary: D52632085

Reviewed By: zertosh

Differential Revision: D52640376

fbshipit-source-id: da918401a991b1f15dd84e1e9066cca1457afd28
  • Loading branch information
stepancheg authored and facebook-github-bot committed Jan 10, 2024
1 parent 75ecc60 commit 99f7bdd
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 12 deletions.
5 changes: 4 additions & 1 deletion common/test-allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ const DEFAULT_SIZE: usize = 0x20000000000; // 128 GiB, try to avoid any rlimits
/// # use test_allocator::GLOBAL_SLAB_TOP;
/// # unsafe {
/// GLOBAL.skip_to_offset(0x100000).unwrap();
/// assert_eq!(GLOBAL.allocate(4, 4) as usize, GLOBAL_SLAB_TOP - 0x100000 - 4);
/// assert_eq!(
/// GLOBAL.allocate(4, 4) as usize,
/// GLOBAL_SLAB_TOP - 0x100000 - 4
/// );
/// # }
/// ```
pub const GLOBAL_SLAB_TOP: usize = DEFAULT_PAGE_ADDRESS + DEFAULT_SIZE;
Expand Down
1 change: 0 additions & 1 deletion detcore-model/src/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ impl From<Signal> for SigWrapper {
/// change this design by going to either extreme. (1) removing implicit O's and changing the
/// count mechanism to allow repetition of entire sequences "(O*B)^3" instead of "B^3". Or (2),
/// including implicit O's in all event types, and not recording them explicitly.
///
#[derive(PartialEq, Debug, Eq, Copy, Clone, Hash, Serialize, Deserialize)]
pub enum Op {
/// A single retired conditional branch, corresponding to one increment of the RCB counter.
Expand Down
1 change: 0 additions & 1 deletion detcore-model/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ pub type Microseconds = u64;
/// without a tick occurring. For example, retired branches are a safe bet (any
/// non-trivial amount of work will execute a branch), but system calls are not: a
/// spinning thread can burn cycles forever without executing a syscall.
///
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DetTime {
/// The syscalls issued by this thread.
Expand Down
2 changes: 0 additions & 2 deletions detcore/src/ivar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ impl<T: Debug + Clone> Ivar<T> {
///
/// This is, in general, nondeterministic, because it may be racing with a put operation.
/// Use with care.
///
pub fn try_read(&self) -> Option<T> {
let shared = self.inner.lock().expect("Ivar try_read could not lock.");
shared.contents.clone()
Expand All @@ -163,7 +162,6 @@ impl<T: Debug + Clone> Ivar<T> {
///
/// (1) symmetry with put,
/// (2) taking self by reference instead of consuming it
///
pub async fn get(&self) -> T {
let v: Ivar<T> = self.clone();
v.await
Expand Down
2 changes: 0 additions & 2 deletions detcore/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ impl<T: RecordOrReplay> Detcore<T> {
/// # Arguments
///
/// * `precise_branch`: if true, there were no non-branch instructions since the last recorded branch instruction.
///
async fn update_logical_time_rcbs<G: Guest<Self>>(
&self,
guest: &mut G,
Expand Down Expand Up @@ -393,7 +392,6 @@ impl<T: RecordOrReplay> Detcore<T> {
/// Effects
/// - ends timeslice (mutating thread stats, end_of_timeslice)
/// - priority change / yield RPC
///
async fn end_timeslice<G: Guest<Self>>(&self, guest: &mut G) {
let thread_state = guest.thread_state();
let dettid = thread_state.dettid;
Expand Down
1 change: 0 additions & 1 deletion detcore/src/tool_global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,6 @@ pub struct TraceSchedEventResponse {
/// Arguments:
/// - tag_end_rip: read the current guest registers to fill in the `end_rip` on the event with the
/// current instruction pointer.
///
pub async fn trace_schedevent<G, T>(guest: &mut G, ev: SchedEvent, tag_end_rip: bool)
where
G: Guest<Detcore<T>>,
Expand Down
1 change: 0 additions & 1 deletion detcore/src/tool_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ impl<T> ThreadState<T> {
/// * `ty` - fd type (regular file, socket, pipe, etc..)
///
/// * `stat` - stat returned from fstat
///
pub fn add_fd(
&self,
fd: RawFd,
Expand Down
1 change: 0 additions & 1 deletion hermit-cli/src/bin/hermit/analyze/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ use tracing::metadata::LevelFilter;
///
/// The critical events are identified to the user by printing their stack traces, optionally into a
/// separate report file.
///
#[derive(Debug, Parser, Clone)]
pub struct AnalyzeOpts {
/// Target: Analyze runs that have collected stdout output matching this regular expression.
Expand Down
2 changes: 0 additions & 2 deletions hermit-cli/src/bin/hermit/schedule_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ where
/// critical branch in thread B which will (fortunately) be `j`. We will return the critical
/// schedule in the form that passes and coordinates into the schedule to indicate where a single
/// flipped pair of branches can cause the test to fail
///
#[allow(unused)]
fn sub_event_search<F>(
tester: &mut F,
Expand Down Expand Up @@ -555,7 +554,6 @@ fn sched_event_with_new_count(original: &SchedEvent, new_count: u32) -> SchedEve
/// Original Branches => AAAAAAAABBBBBBBBB
/// Synthetic Branches => AAAABBBBBBBAAAABB
/// <A4><- B7-><A4>B2
///
fn create_schedule_with_critical_pair(
prefix: &[SchedEvent],
postfix: &[SchedEvent],
Expand Down

0 comments on commit 99f7bdd

Please sign in to comment.