link to TB doc in unsafe-code-guidelines

This commit is contained in:
Johannes Hostert 2025-08-19 14:34:28 +02:00
parent 3248d8658b
commit b4876bf3e2
No known key found for this signature in database
GPG key ID: 0BA6032B5A38D049

View file

@ -282,7 +282,8 @@ pub fn report_error<'tcx>(
},
TreeBorrowsUb { title: _, details, history } => {
let mut helps = vec![
note!("this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental")
note!("this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental"),
note!("see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/tree-borrows.md for further information"),
];
for m in details {
helps.push(note!("{m}"));