Skip to content

Commit 725cffb

Browse files
committed
Address remaining review comments
1 parent d5a501d commit 725cffb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/librustc/dep_graph/dep_node.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ pub enum DepNode<D: Clone + Debug> {
4242
// Represents the HIR node with the given node-id
4343
Hir(D),
4444

45-
// Represents the body of a function or method
45+
// Represents the body of a function or method. The def-id is that of the
46+
// function/method.
4647
HirBody(D),
4748

4849
// Represents the metadata for a given HIR node, typically found

src/test/incremental/source_loc_macros.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717

1818
#![feature(rustc_attrs)]
1919

20+
#[rustc_clean(label="Hir", cfg="rpass2")]
2021
#[rustc_clean(label="HirBody", cfg="rpass2")]
2122
fn line_same() {
2223
let _ = line!();
2324
}
2425

26+
#[rustc_clean(label="Hir", cfg="rpass2")]
2527
#[rustc_clean(label="HirBody", cfg="rpass2")]
2628
fn col_same() {
2729
let _ = column!();
2830
}
2931

32+
#[rustc_clean(label="Hir", cfg="rpass2")]
3033
#[rustc_clean(label="HirBody", cfg="rpass2")]
3134
fn file_same() {
3235
let _ = file!();
@@ -38,6 +41,7 @@ fn line_different() {
3841
}
3942

4043
#[cfg(rpass2)]
44+
#[rustc_clean(label="Hir", cfg="rpass2")]
4145
#[rustc_dirty(label="HirBody", cfg="rpass2")]
4246
fn line_different() {
4347
let _ = line!();
@@ -49,6 +53,7 @@ fn col_different() {
4953
}
5054

5155
#[cfg(rpass2)]
56+
#[rustc_clean(label="Hir", cfg="rpass2")]
5257
#[rustc_dirty(label="HirBody", cfg="rpass2")]
5358
fn col_different() {
5459
let _ = column!();

0 commit comments

Comments
 (0)