about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-22 18:08:21 +0200
committerGitHub <noreply@github.com>2019-05-22 18:08:21 +0200
commit9abc9361fa78374c748c0188008cc71f1c25708f (patch)
tree8d55c264cc57f5cefaefdaa2c2ab6162dff297af /src/test/ui/thinlto
parentfba5ed355a30ae7176309bbbe8ff403943fc72bc (diff)
parente641fb47c472e767074a773c6a88cbc9873e63e0 (diff)
downloadrust-9abc9361fa78374c748c0188008cc71f1c25708f.tar.gz
rust-9abc9361fa78374c748c0188008cc71f1c25708f.zip
Rollup merge of #61029 - blkerby:minimum_spanning_tree, r=alexcrichton
Simplify RefCell minimum_spanning_tree example

This simplifies the implementation of the `minimum_spanning_tree` example of `RefCell` in the `cell` module-level docs, avoiding an unnecessary recursive call. This also eliminates the need for a block to contain the scope of the borrow in this example. But since that use of a block served an important didactic purpose, we make up for this by instead introducing a block in the initial, simpler example of `RefCell`, where the point will hopefully be conveyed to the reader more easily.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions