about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohannes Hostert <jhostert@ethz.ch>2025-08-19 14:34:28 +0200
committerJohannes Hostert <jhostert@ethz.ch>2025-08-19 14:34:28 +0200
commitb4876bf3e2fdfa118742f2c0ace93cdcddb2a6a6 (patch)
tree2a6f056782d65035783b8176a7240144ff255cb9
parent3248d8658b1ec308ed7bf826889b5de921b26181 (diff)
downloadrust-b4876bf3e2fdfa118742f2c0ace93cdcddb2a6a6.tar.gz
rust-b4876bf3e2fdfa118742f2c0ace93cdcddb2a6a6.zip
link to TB doc in unsafe-code-guidelines
-rw-r--r--src/tools/miri/src/diagnostics.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/miri/src/diagnostics.rs b/src/tools/miri/src/diagnostics.rs
index 9ecbd31c5b9..b5ca9601547 100644
--- a/src/tools/miri/src/diagnostics.rs
+++ b/src/tools/miri/src/diagnostics.rs
@@ -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}"));