Skip to content

Commit

Permalink
Address remaining review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
flodiebold committed Nov 29, 2016
1 parent d5a501d commit 725cffb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/dep_graph/dep_node.rs
Expand Up @@ -42,7 +42,8 @@ pub enum DepNode<D: Clone + Debug> {
// Represents the HIR node with the given node-id
Hir(D),

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

// Represents the metadata for a given HIR node, typically found
Expand Down
5 changes: 5 additions & 0 deletions src/test/incremental/source_loc_macros.rs
Expand Up @@ -17,16 +17,19 @@

#![feature(rustc_attrs)]

#[rustc_clean(label="Hir", cfg="rpass2")]
#[rustc_clean(label="HirBody", cfg="rpass2")]
fn line_same() {
let _ = line!();
}

#[rustc_clean(label="Hir", cfg="rpass2")]
#[rustc_clean(label="HirBody", cfg="rpass2")]
fn col_same() {
let _ = column!();
}

#[rustc_clean(label="Hir", cfg="rpass2")]
#[rustc_clean(label="HirBody", cfg="rpass2")]
fn file_same() {
let _ = file!();
Expand All @@ -38,6 +41,7 @@ fn line_different() {
}

#[cfg(rpass2)]
#[rustc_clean(label="Hir", cfg="rpass2")]
#[rustc_dirty(label="HirBody", cfg="rpass2")]
fn line_different() {
let _ = line!();
Expand All @@ -49,6 +53,7 @@ fn col_different() {
}

#[cfg(rpass2)]
#[rustc_clean(label="Hir", cfg="rpass2")]
#[rustc_dirty(label="HirBody", cfg="rpass2")]
fn col_different() {
let _ = column!();
Expand Down

0 comments on commit 725cffb

Please sign in to comment.