File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1615,8 +1615,15 @@ pub fn build_session_options_and_crate_config(matches: &getopts::Matches)
1615
1615
"target-features" => PrintRequest :: TargetFeatures ,
1616
1616
"relocation-models" => PrintRequest :: RelocationModels ,
1617
1617
"code-models" => PrintRequest :: CodeModels ,
1618
- "target-spec-json" if nightly_options:: is_unstable_enabled ( matches)
1619
- => PrintRequest :: TargetSpec ,
1618
+ "target-spec-json" => {
1619
+ if nightly_options:: is_unstable_enabled ( matches) {
1620
+ PrintRequest :: TargetSpec
1621
+ } else {
1622
+ early_error ( error_format,
1623
+ & format ! ( "the `-Z unstable-options` flag must also be passed to \
1624
+ enable the target-spec-json print option") ) ;
1625
+ }
1626
+ } ,
1620
1627
req => {
1621
1628
early_error ( error_format, & format ! ( "unknown print request `{}`" , req) )
1622
1629
}
You can’t perform that action at this time.
0 commit comments