File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,13 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
130
130
config. parse_sess_created = Some ( Box :: new ( move |parse_sess| {
131
131
track_clippy_args ( parse_sess, & clippy_args_var) ;
132
132
track_files ( parse_sess) ;
133
+
134
+ // Trigger a rebuild if CLIPPY_CONF_DIR changes. The value must be a valid string so
135
+ // changes between dirs that are invalid UTF-8 will not trigger rebuilds
136
+ parse_sess. env_depinfo . get_mut ( ) . insert ( (
137
+ Symbol :: intern ( "CLIPPY_CONF_DIR" ) ,
138
+ env:: var ( "CLIPPY_CONF_DIR" ) . ok ( ) . map ( |dir| Symbol :: intern ( & dir) ) ,
139
+ ) ) ;
133
140
} ) ) ;
134
141
config. register_lints = Some ( Box :: new ( move |sess, lint_store| {
135
142
// technically we're ~guaranteed that this is none but might as well call anything that
You can’t perform that action at this time.
0 commit comments