Skip to content

Commit 7f7a1cb

Browse files
committed
Auto merge of #77229 - tmiasko:liveness, r=lcnr
Small improvements in liveness pass * Remove redundant debug logging (`add_variable` already contains logging). * Remove redundant fields for a number of live nodes and variables. * Delay conversion from a symbol to a string until linting. * Inline contents of specials struct. * Remove unnecessary local variable exit_ln. * Use newtype_index for Variable and LiveNode. * Access live nodes directly through self.lnks[ln]. No functional changes intended (except those related to the logging).
2 parents 4529af9 + d68aa22 commit 7f7a1cb

File tree

4 files changed

+91
-121
lines changed

4 files changed

+91
-121
lines changed

Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -3891,6 +3891,7 @@ dependencies = [
38913891
"rustc_hir",
38923892
"rustc_index",
38933893
"rustc_middle",
3894+
"rustc_serialize",
38943895
"rustc_session",
38953896
"rustc_span",
38963897
"rustc_target",

compiler/rustc_passes/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ rustc_index = { path = "../rustc_index" }
1515
rustc_session = { path = "../rustc_session" }
1616
rustc_target = { path = "../rustc_target" }
1717
rustc_ast = { path = "../rustc_ast" }
18+
rustc_serialize = { path = "../rustc_serialize" }
1819
rustc_span = { path = "../rustc_span" }
1920
rustc_trait_selection = { path = "../rustc_trait_selection" }

compiler/rustc_passes/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
//! This API is completely unstable and subject to change.
66
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
8+
#![feature(const_fn)]
9+
#![feature(const_panic)]
810
#![feature(in_band_lifetimes)]
911
#![feature(nll)]
1012
#![feature(or_patterns)]

0 commit comments

Comments
 (0)