File tree 2 files changed +2
-2
lines changed
compiler/rustc_session/src
tests/ui-fulldeps/internal-lints
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ top_level_options!(
130
130
pub struct Options {
131
131
/// The crate config requested for the session, which may be combined
132
132
/// 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" ) ]
134
134
crate_types: Vec <CrateType > [ TRACKED ] ,
135
135
optimize: OptLevel [ TRACKED ] ,
136
136
/// 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) {
15
15
//~^ ERROR use `Session::split_debuginfo` instead of this field
16
16
17
17
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
19
19
20
20
let _ = sess. opts . crate_name ;
21
21
// okay!
You can’t perform that action at this time.
0 commit comments