File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ pub enum DepNode<D: Clone + Debug> {
42
42
// Represents the HIR node with the given node-id
43
43
Hir ( D ) ,
44
44
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.
46
47
HirBody ( D ) ,
47
48
48
49
// Represents the metadata for a given HIR node, typically found
Original file line number Diff line number Diff line change 17
17
18
18
#![ feature( rustc_attrs) ]
19
19
20
+ #[ rustc_clean( label="Hir" , cfg="rpass2" ) ]
20
21
#[ rustc_clean( label="HirBody" , cfg="rpass2" ) ]
21
22
fn line_same ( ) {
22
23
let _ = line ! ( ) ;
23
24
}
24
25
26
+ #[ rustc_clean( label="Hir" , cfg="rpass2" ) ]
25
27
#[ rustc_clean( label="HirBody" , cfg="rpass2" ) ]
26
28
fn col_same ( ) {
27
29
let _ = column ! ( ) ;
28
30
}
29
31
32
+ #[ rustc_clean( label="Hir" , cfg="rpass2" ) ]
30
33
#[ rustc_clean( label="HirBody" , cfg="rpass2" ) ]
31
34
fn file_same ( ) {
32
35
let _ = file ! ( ) ;
@@ -38,6 +41,7 @@ fn line_different() {
38
41
}
39
42
40
43
#[ cfg( rpass2) ]
44
+ #[ rustc_clean( label="Hir" , cfg="rpass2" ) ]
41
45
#[ rustc_dirty( label="HirBody" , cfg="rpass2" ) ]
42
46
fn line_different ( ) {
43
47
let _ = line ! ( ) ;
@@ -49,6 +53,7 @@ fn col_different() {
49
53
}
50
54
51
55
#[ cfg( rpass2) ]
56
+ #[ rustc_clean( label="Hir" , cfg="rpass2" ) ]
52
57
#[ rustc_dirty( label="HirBody" , cfg="rpass2" ) ]
53
58
fn col_different ( ) {
54
59
let _ = column ! ( ) ;
You can’t perform that action at this time.
0 commit comments