File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,9 @@ impl Session {
202
202
pub fn show_span ( & self ) -> bool {
203
203
self . debugging_opt ( config:: SHOW_SPAN )
204
204
}
205
+ pub fn unstable_options ( & self ) -> bool {
206
+ self . debugging_opt ( config:: UNSTABLE_OPTIONS )
207
+ }
205
208
pub fn sysroot < ' a > ( & ' a self ) -> & ' a Path {
206
209
match self . opts . maybe_sysroot {
207
210
Some ( ref sysroot) => sysroot,
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ fn run_compiler(args: &[String]) {
143
143
pretty:: parse_pretty ( & sess, a. as_slice ( ) , false )
144
144
} ) ;
145
145
let pretty = if pretty. is_none ( ) &&
146
- sess. debugging_opt ( config :: UNSTABLE_OPTIONS ) {
146
+ sess. unstable_options ( ) {
147
147
matches. opt_str ( "xpretty" ) . map ( |a| {
148
148
// extended with unstable pretty-print variants
149
149
pretty:: parse_pretty ( & sess, a. as_slice ( ) , true )
You can’t perform that action at this time.
0 commit comments