Skip to content

Commit 0879f63

Browse files
committed
Remove Copy and Clone impls for LocalInternedString.
They aren't used.
1 parent 3532863 commit 0879f63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libsyntax_pos/symbol.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,8 @@ fn with_interner<T, F: FnOnce(&mut Interner) -> T>(f: F) -> T {
11061106
}
11071107

11081108
/// An alternative to `Symbol` and `InternedString`, useful when the chars
1109-
/// within the symbol need to be accessed. It is best used for temporary
1110-
/// values.
1109+
/// within the symbol need to be accessed. It deliberately has limited
1110+
/// functionality and should only be used for temporary values.
11111111
///
11121112
/// Because the interner outlives any thread which uses this type, we can
11131113
/// safely treat `string` which points to interner data, as an immortal string,
@@ -1116,7 +1116,7 @@ fn with_interner<T, F: FnOnce(&mut Interner) -> T>(f: F) -> T {
11161116
// FIXME: ensure that the interner outlives any thread which uses
11171117
// `LocalInternedString`, by creating a new thread right after constructing the
11181118
// interner.
1119-
#[derive(Clone, Copy, Eq, PartialOrd, Ord)]
1119+
#[derive(Eq, PartialOrd, Ord)]
11201120
pub struct LocalInternedString {
11211121
string: &'static str,
11221122
}

0 commit comments

Comments
 (0)