File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/rustc_session/src
tests/ui-fulldeps/internal-lints Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ top_level_options!(
130130 pub struct Options {
131131 /// The crate config requested for the session, which may be combined
132132 /// with additional crate configurations during the compile process.
133- #[ rustc_lint_opt_deny_field_access( "use `Session ::crate_types` instead of this field" ) ]
133+ #[ rustc_lint_opt_deny_field_access( "use `TyCtxt ::crate_types` instead of this field" ) ]
134134 crate_types: Vec <CrateType > [ TRACKED ] ,
135135 optimize: OptLevel [ TRACKED ] ,
136136 /// Include the `debug_assertions` flag in dependency tracking, since it
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub fn access_bad_option(sess: Session) {
1515 //~^ ERROR use `Session::split_debuginfo` instead of this field
1616
1717 let _ = sess. opts . crate_types ;
18- //~^ ERROR use `Session ::crate_types` instead of this field
18+ //~^ ERROR use `TyCtxt ::crate_types` instead of this field
1919
2020 let _ = sess. opts . crate_name ;
2121 // okay!
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ note: the lint level is defined here
1010LL | #![deny(rustc::bad_opt_access)]
1111 | ^^^^^^^^^^^^^^^^^^^^^
1212
13- error: use `Session ::crate_types` instead of this field
13+ error: use `TyCtxt ::crate_types` instead of this field
1414 --> $DIR/bad_opt_access.rs:17:13
1515 |
1616LL | let _ = sess.opts.crate_types;
You can’t perform that action at this time.
0 commit comments