Uh oh!
There was an error while loading. Please reload this page.
Remove managed pointers from tutorial - #13328
Conversation
…Code examples in relevant sections were similarly altered.
It's surprising that `RefCell::get()` is implicitly doing a clone on a value. This patch removes it and replaces all users with either `.borrow()` when we can autoderef, or `.borrow().clone()` when we cannot.
This fixesrust-lang#13238. It avoids an infinite loop when compiling the tests with `-g`. Without this change, the debuginfo on `black_box` prevents the method from being inlined, which allows llvm to convert `silent_recurse` into a tail-call. This then loops forever instead of consuming all the stack like it is supposed to. This patch forces inlining `black_box`, which triggers the right error.
librustdoc: instead of skipping ignored tests, pass them to libtest so it can report them as such. If a test is marked as `notrust`, however, it will not show up in the final report.
ckendell
commented
Apr 4, 2014
I'm not sure if this pull request is well formatted. Only the last two commits above are directly relevant. The rest showed up when I rebased with mozilla/rust:master. If it's not correctly, please do leave a message if it's obvious what I did wrong and I will promptly fix the pull request. |
thestinger
commented
Apr 4, 2014
Yeah, something is wrong here. It looks like you merged master at some point rather than rebasing. You can do |
Add proc-macro dependency to rustc crates
Fixes#13287
Complete work started in #13298
Removed all reference to and sample code using managed boxes/pointers.