Fix typo bug in DepGraph::try_mark_green().
This commit is contained in:
parent
6599946272
commit
3884cc8df4
@ -600,7 +600,7 @@ impl DepGraph {
|
||||
DepKind::Hir |
|
||||
DepKind::HirBody |
|
||||
DepKind::CrateMetadata => {
|
||||
if dep_node.extract_def_id(tcx).is_none() {
|
||||
if dep_dep_node.extract_def_id(tcx).is_none() {
|
||||
// If the node does not exist anymore, we
|
||||
// just fail to mark green.
|
||||
return None
|
||||
|
17
src/test/incremental/change_name_of_static_in_fn.rs
Normal file
17
src/test/incremental/change_name_of_static_in_fn.rs
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
// revisions:rpass1 rpass2 rpass3
|
||||
|
||||
// See issue #57692.
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
fn main() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
static map: u64 = 0;
|
||||
}
|
||||
#[cfg(not(rpass1))]
|
||||
{
|
||||
static MAP: u64 = 0;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user