@@ -1366,7 +1366,7 @@ impl Default for Options {
1366
1366
real_rust_source_base_dir : None ,
1367
1367
edition : DEFAULT_EDITION ,
1368
1368
json_artifact_notifications : false ,
1369
- json_section_timings : false ,
1369
+ json_timings : false ,
1370
1370
json_unused_externs : JsonUnusedExterns :: No ,
1371
1371
json_future_incompat : false ,
1372
1372
pretty : None ,
@@ -1883,7 +1883,7 @@ pub struct JsonConfig {
1883
1883
json_artifact_notifications : bool ,
1884
1884
/// Output start and end timestamps of several high-level compilation sections
1885
1885
/// (frontend, backend, linker).
1886
- json_section_timings : bool ,
1886
+ json_timings : bool ,
1887
1887
pub json_unused_externs : JsonUnusedExterns ,
1888
1888
json_future_incompat : bool ,
1889
1889
}
@@ -1925,7 +1925,7 @@ pub fn parse_json(early_dcx: &EarlyDiagCtxt, matches: &getopts::Matches) -> Json
1925
1925
let mut json_artifact_notifications = false ;
1926
1926
let mut json_unused_externs = JsonUnusedExterns :: No ;
1927
1927
let mut json_future_incompat = false ;
1928
- let mut json_section_timings = false ;
1928
+ let mut json_timings = false ;
1929
1929
for option in matches. opt_strs ( "json" ) {
1930
1930
// For now conservatively forbid `--color` with `--json` since `--json`
1931
1931
// won't actually be emitting any colors and anything colorized is
@@ -1942,7 +1942,7 @@ pub fn parse_json(early_dcx: &EarlyDiagCtxt, matches: &getopts::Matches) -> Json
1942
1942
}
1943
1943
"diagnostic-rendered-ansi" => json_color = ColorConfig :: Always ,
1944
1944
"artifacts" => json_artifact_notifications = true ,
1945
- "timings" => json_section_timings = true ,
1945
+ "timings" => json_timings = true ,
1946
1946
"unused-externs" => json_unused_externs = JsonUnusedExterns :: Loud ,
1947
1947
"unused-externs-silent" => json_unused_externs = JsonUnusedExterns :: Silent ,
1948
1948
"future-incompat" => json_future_incompat = true ,
@@ -1955,7 +1955,7 @@ pub fn parse_json(early_dcx: &EarlyDiagCtxt, matches: &getopts::Matches) -> Json
1955
1955
json_rendered,
1956
1956
json_color,
1957
1957
json_artifact_notifications,
1958
- json_section_timings ,
1958
+ json_timings ,
1959
1959
json_unused_externs,
1960
1960
json_future_incompat,
1961
1961
}
@@ -2483,7 +2483,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
2483
2483
json_rendered,
2484
2484
json_color,
2485
2485
json_artifact_notifications,
2486
- json_section_timings ,
2486
+ json_timings ,
2487
2487
json_unused_externs,
2488
2488
json_future_incompat,
2489
2489
} = parse_json ( early_dcx, matches) ;
@@ -2505,7 +2505,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
2505
2505
let mut unstable_opts = UnstableOptions :: build ( early_dcx, matches, & mut target_modifiers) ;
2506
2506
let ( lint_opts, describe_lints, lint_cap) = get_cmd_lint_options ( early_dcx, matches) ;
2507
2507
2508
- if !unstable_opts. unstable_options && json_section_timings {
2508
+ if !unstable_opts. unstable_options && json_timings {
2509
2509
early_dcx. early_fatal ( "--json=timings is unstable and requires using `-Zunstable-options`" ) ;
2510
2510
}
2511
2511
@@ -2786,7 +2786,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
2786
2786
real_rust_source_base_dir,
2787
2787
edition,
2788
2788
json_artifact_notifications,
2789
- json_section_timings ,
2789
+ json_timings ,
2790
2790
json_unused_externs,
2791
2791
json_future_incompat,
2792
2792
pretty,
0 commit comments