Skip to content

Commit 6fb7c13

Browse files
committed
Remove unused lifetimes
1 parent 1379036 commit 6fb7c13

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/concurrency/data_race.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -939,11 +939,7 @@ impl VClockAlloc {
939939

940940
/// Detect racing atomic read and writes (not data races)
941941
/// on every byte of the current access range
942-
pub(super) fn race_free_with_atomic<'tcx>(
943-
&self,
944-
range: AllocRange,
945-
global: &GlobalState,
946-
) -> bool {
942+
pub(super) fn race_free_with_atomic(&self, range: AllocRange, global: &GlobalState) -> bool {
947943
if global.race_detecting() {
948944
let (_, clocks) = global.current_thread_state();
949945
let alloc_ranges = self.alloc_ranges.borrow();

src/concurrency/weak_memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl StoreBufferAlloc {
138138
/// before without data race, we can determine that the non-atomic access fully happens
139139
/// after all the prior atomic accesses so the location no longer needs to exhibit
140140
/// any weak memory behaviours until further atomic accesses.
141-
pub fn memory_accessed<'tcx>(&self, range: AllocRange, global: &GlobalState) {
141+
pub fn memory_accessed(&self, range: AllocRange, global: &GlobalState) {
142142
if !global.ongoing_action_data_race_free() {
143143
let mut buffers = self.store_buffers.borrow_mut();
144144
let access_type = buffers.access_type(range);

0 commit comments

Comments
 (0)