summaryrefslogtreecommitdiffstats
path: root/tests/ui-fulldeps/internal-lints/bad_opt_access.stderr
blob: e4145bff8bee97ffc71043e6dfb612ace156dd15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: use `Session::split_debuginfo` instead of this field
  --> $DIR/bad_opt_access.rs:14:13
   |
LL |     let _ = sess.opts.cg.split_debuginfo;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/bad_opt_access.rs:8:9
   |
LL | #![deny(rustc::bad_opt_access)]
   |         ^^^^^^^^^^^^^^^^^^^^^

error: use `Session::crate_types` instead of this field
  --> $DIR/bad_opt_access.rs:17:13
   |
LL |     let _ = sess.opts.crate_types;
   |             ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors