Merge pull request #1103 from Manishearth/doc-eta

redundant closures don't allocate
This commit is contained in:
Martin Carton 2016-07-16 14:55:14 +02:00 committed by GitHub
commit fc2c6cbb08
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ pub struct EtaPass;
/// function can be called directly. `unsafe` functions or calls where types get adjusted are
/// ignored.
///
/// **Why is this bad?** Needlessly creating a closure just costs heap space and adds code for no
/// benefit.
/// **Why is this bad?** Needlessly creating a closure adds code for no
/// benefit and gives the optimizer more work.
///
/// **Known problems:** None
///