Skip to content

Commit 9084b3e

Browse files
link to TB doc in unsafe-code-guidelines
1 parent 12e9735 commit 9084b3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diagnostics.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ pub fn report_error<'tcx>(
282282
},
283283
TreeBorrowsUb { title: _, details, history } => {
284284
let mut helps = vec![
285-
note!("this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental")
285+
note!("this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental"),
286+
note!("see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/tree-borrows.md for further information"),
286287
];
287288
for m in details {
288289
helps.push(note!("{m}"));

0 commit comments

Comments
 (0)