Skip to content

Commit e4291e7

Browse files
committed
add just script and fix comment
1 parent 2898efd commit e4291e7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Check (without default features)
6161
run: cargo check --workspace --no-default-features
6262
- name: Check (loom)
63-
run: RUSTFLAGs="--cfg loom" cargo check --workspace
63+
run: RUSTFLAGS="--cfg loom" cargo check --workspace
6464

6565
miri:
6666
name: Miri

justfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ test:
44
miri:
55
cargo +nightly miri test --no-fail-fast --all-features
66

7-
all: test miri
7+
loom:
8+
RUSTFLAGS="--cfg loom" cargo check --workspace
9+
10+
all: test miri

src/table.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ impl Table {
192192
/// # Safety
193193
///
194194
/// See [`Page::get_raw`][].
195-
// TODO: This should not return a `MutPtr<T>` directly, but loom's `MutPtr` does not expose
196-
// pointer casts.
195+
// TODO: This could return an `&UnsafeCell<T>` directly, but loom's `UnsafeCell` is not `repr(C)`
197196
pub(crate) fn get_raw<T: Slot>(&self, id: Id) -> &UnsafeCell<MaybeUninit<T>> {
198197
let (page, slot) = split_id(id);
199198
let page_ref = self.page::<T>(page);

0 commit comments

Comments
 (0)