rust/tests/ui-fulldeps/internal-lints/bad_opt_access.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
564 B
Plaintext
Raw Normal View History

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