about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-21 15:12:50 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-22 16:03:48 +1000
commit220f3ab825d135c82243fc83ebf6286d94cdab96 (patch)
tree23f5f5decbbc359b2f7fd64323c3eada0429360e /compiler/rustc_span/src
parent2c61c0085964a6e11c3ba51951abd71a7ff9066c (diff)
downloadrust-220f3ab825d135c82243fc83ebf6286d94cdab96.tar.gz
rust-220f3ab825d135c82243fc83ebf6286d94cdab96.zip
Add a useful comment.
For something that wasn't obvious to me.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index f83bacdcebe..62209e3795f 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -33,6 +33,9 @@
 #![feature(rustdoc_internals)]
 // tidy-alphabetical-end
 
+// The code produced by the `Encodable`/`Decodable` derive macros refer to
+// `rustc_span::Span{Encoder,Decoder}`. That's fine outside this crate, but doesn't work inside
+// this crate without this line making `rustc_span` available.
 extern crate self as rustc_span;
 
 #[macro_use]