Remove Copy
and Clone
impls for LocalInternedString
.
They aren't used.
This commit is contained in:
parent
3532863a96
commit
0879f63074
1 changed files with 3 additions and 3 deletions
|
@ -1106,8 +1106,8 @@ fn with_interner<T, F: FnOnce(&mut Interner) -> T>(f: F) -> T {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An alternative to `Symbol` and `InternedString`, useful when the chars
|
/// An alternative to `Symbol` and `InternedString`, useful when the chars
|
||||||
/// within the symbol need to be accessed. It is best used for temporary
|
/// within the symbol need to be accessed. It deliberately has limited
|
||||||
/// values.
|
/// functionality and should only be used for temporary values.
|
||||||
///
|
///
|
||||||
/// Because the interner outlives any thread which uses this type, we can
|
/// Because the interner outlives any thread which uses this type, we can
|
||||||
/// safely treat `string` which points to interner data, as an immortal string,
|
/// 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 {
|
||||||
// FIXME: ensure that the interner outlives any thread which uses
|
// FIXME: ensure that the interner outlives any thread which uses
|
||||||
// `LocalInternedString`, by creating a new thread right after constructing the
|
// `LocalInternedString`, by creating a new thread right after constructing the
|
||||||
// interner.
|
// interner.
|
||||||
#[derive(Clone, Copy, Eq, PartialOrd, Ord)]
|
#[derive(Eq, PartialOrd, Ord)]
|
||||||
pub struct LocalInternedString {
|
pub struct LocalInternedString {
|
||||||
string: &'static str,
|
string: &'static str,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue