1 error: use `Session::split_debuginfo` instead of this field
2 --> $DIR/bad_opt_access.rs:14:13
4 LL | let _ = sess.opts.cg.split_debuginfo;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/bad_opt_access.rs:8:9
10 LL | #![deny(rustc::bad_opt_access)]
11 | ^^^^^^^^^^^^^^^^^^^^^
13 error: use `Session::crate_types` instead of this field
14 --> $DIR/bad_opt_access.rs:17:13
16 LL | let _ = sess.opts.crate_types;
17 | ^^^^^^^^^^^^^^^^^^^^^
19 error: aborting due to 2 previous errors