File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
crates/ruff_db/src/diagnostic/render Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ impl std::fmt::Display for Diff<'_> {
190190 f,
191191 "{note}: {msg}" ,
192192 note = fmt_styled( "note" , self . stylesheet. warning) ,
193- msg = fmt_styled( "This is an unsafe fix" , self . stylesheet. emphasis)
193+ msg = fmt_styled(
194+ "This is an unsafe fix and may remove comments or change runtime behavior" ,
195+ self . stylesheet. emphasis
196+ )
194197 ) ?;
195198 }
196199 Applicability :: DisplayOnly => {
@@ -200,7 +203,10 @@ impl std::fmt::Display for Diff<'_> {
200203 f,
201204 "{note}: {msg}" ,
202205 note = fmt_styled( "note" , self . stylesheet. error) ,
203- msg = fmt_styled( "This is a display-only fix" , self . stylesheet. emphasis)
206+ msg = fmt_styled(
207+ "This is a display-only fix and is likely to be incorrect" ,
208+ self . stylesheet. emphasis
209+ )
204210 ) ?;
205211 }
206212 }
You can’t perform that action at this time.
0 commit comments