Skip to content

Commit

Permalink
More cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Feb 24, 2021
1 parent 064bbb8 commit 91734f1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions compiler/rustc_query_system/src/dep_graph/serialized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@ impl ColorAndOffset {
ColorAndOffset(AtomicU64::new(val))
}

#[allow(dead_code)]
fn new(color: DepNodeColor, range: Range<usize>) -> ColorAndOffset {
let start: u32 = range.start.try_into().unwrap();
let end: u32 = range.end.try_into().unwrap();
let val = (start as u64) << 32 | (end as u64);
debug_assert_eq!(val & TAG_MASK, 0);
let val = val | color.tag();
ColorAndOffset(AtomicU64::new(val))
}

fn set_lifted(&self, color: DepNodeColor, range: Range<usize>) {
let start: u32 = range.start.try_into().unwrap();
let end: u32 = range.end.try_into().unwrap();
Expand Down

0 comments on commit 91734f1

Please sign in to comment.