mirror of https://github.com/rust-lang/rust.git
Merge pull request #1103 from Manishearth/doc-eta
redundant closures don't allocate
This commit is contained in:
commit
fc2c6cbb08
|
@ -11,8 +11,8 @@ pub struct EtaPass;
|
||||||
/// function can be called directly. `unsafe` functions or calls where types get adjusted are
|
/// function can be called directly. `unsafe` functions or calls where types get adjusted are
|
||||||
/// ignored.
|
/// ignored.
|
||||||
///
|
///
|
||||||
/// **Why is this bad?** Needlessly creating a closure just costs heap space and adds code for no
|
/// **Why is this bad?** Needlessly creating a closure adds code for no
|
||||||
/// benefit.
|
/// benefit and gives the optimizer more work.
|
||||||
///
|
///
|
||||||
/// **Known problems:** None
|
/// **Known problems:** None
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue