We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb3aa33 commit b5f0c82Copy full SHA for b5f0c82
compiler/rustc_middle/src/thir.rs
@@ -49,6 +49,9 @@ macro_rules! thir_with_elements {
49
}
50
)*
51
52
+ // Note: Making `Thir` implement `Clone` is useful for external tools that need access to
53
+ // THIR bodies even after the `Steal` query result has been stolen.
54
+ // One such tool is https://github.com/rust-corpus/qrates/.
55
/// A container for a THIR body.
56
///
57
/// This can be indexed directly by any THIR index (e.g. [`ExprId`]).
0 commit comments