-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librustc: Require lifetimes within the types of values with destructors
to have strictly greater lifetime than the values themselves. Additionally, remove `#[unsafe_destructor]` in favor of these new restrictions. This broke a fair amount of code that had to do with `RefCell`s. We will probably need to do some work to improve the resulting ergonomics. Most code that broke looked like: match foo.bar.borrow().baz { ... } use_foo(&mut foo); Change this code to: { let bar = foo.bar.borrow(); match bar.baz { ... } } use_foo(&mut foo); This fixes an important memory safety hole relating to destructors, represented by issue #8861. [breaking-change]
- Loading branch information
Showing
42 changed files
with
1,160 additions
and
645 deletions.
There are no files selected for viewing
Submodule jemalloc
updated
15 files
+1 −2 | bin/pprof | |
+0 −3 | config.sub | |
+2 −2 | configure | |
+23 −29 | include/jemalloc/internal/arena.h | |
+2 −2 | include/jemalloc/internal/jemalloc_internal.h.in | |
+0 −1 | include/jemalloc/internal/private_symbols.txt | |
+29 −28 | include/jemalloc/internal/prof.h | |
+17 −17 | include/jemalloc/internal/tcache.h | |
+3 −11 | include/jemalloc/internal/util.h | |
+6 −6 | include/jemalloc/internal/valgrind.h | |
+14 −14 | src/arena.c | |
+3 −3 | src/huge.c | |
+125 −129 | src/jemalloc.c | |
+34 −78 | src/prof.c | |
+2 −2 | src/quarantine.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.