Tidy fixes

This commit is contained in:
Brian Anderson
2012-06-27 22:03:12 -07:00
parent 1ff6f9b876
commit 6f57c61ed0
2 changed files with 3 additions and 3 deletions

View File

@@ -710,7 +710,7 @@ unsafe fn local_set<T>(task: *rust_task, key: local_data_key<T>, -data: @T) {
// Key already had a value set, old_data_ptr, whose reference we
// need to drop. After that, overwriting its slot will be safe.
// (The heap-allocated finaliser will be freed in the overwrite.)
// FIXME(2734): just transmuting old_data_ptr to @T doesn't work,
// FIXME(#2734): just transmuting old_data_ptr to @T doesn't work,
// similarly to the sample there (but more our/unsafety's fault?).
old_finaliser(old_data_ptr);
(*map).set_elt(index, new_entry);