diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-07-18 17:12:46 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-07-18 17:12:46 -0700 |
| commit | 9089cf2ec9297a3b558d24352cde6a5206a08444 (patch) | |
| tree | 33c842d885e4be366c839f9030a23eb42cc57c54 /src/libsyntax/util | |
| parent | 93fa7a4b09d755e1dba3a71f56b3dc34d900776f (diff) | |
| download | rust-9089cf2ec9297a3b558d24352cde6a5206a08444.tar.gz rust-9089cf2ec9297a3b558d24352cde6a5206a08444.zip | |
librustc: Forbid `&` pointers (other than `&'static`) inside `@` boxes.
This makes custom borrowing implementations for custom smart pointers sound.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 3d2e0632a33..014186c9ff4 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -21,7 +21,7 @@ pub struct Interner<T> { } // when traits can extend traits, we should extend index<uint,T> to get [] -impl<T:Eq + IterBytes + Hash + Freeze + Clone> Interner<T> { +impl<T:Eq + IterBytes + Hash + Freeze + Clone + 'static> Interner<T> { pub fn new() -> Interner<T> { Interner { map: @mut HashMap::new(), |
