rust/compiler/rustc_session/src
Dylan DPC d5b86d5ee9
Rollup merge of #101690 - kadiwa4:avoid_iterator_last, r=oli-obk
Avoid `Iterator::last`

Adapters like `Filter` and `Map` use the default implementation of `Iterator::last` which is not short-circuiting (and so does `core::str::Split`). The predicate function will be run for every single item of the underlying iterator. I hope that removing those calls to `last` results in slight performance improvements.
2022-09-13 16:51:31 +05:30
..
config unix_sigpipe: Inline compiler sigpipe constants in std 2022-08-31 18:20:49 +02:00
cgu_reuse_tracker.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
code_stats.rs avoid some Symbol to String conversions 2022-07-17 04:09:20 +09:00
config.rs translations(rustc_session): remove lint allow rule to the methods marked with rustc_lint_diagnostic 2022-09-08 08:30:57 +02:00
cstore.rs change rlib format to discern native dependencies 2022-09-12 16:45:03 +03:00
errors.rs translations(rustc_session): migrates two diagnostics in session.rs 2022-09-08 12:22:51 +02:00
filesearch.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
lib.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
options.rs Auto merge of #100101 - BelovDV:issue-99429, r=petrochenkov 2022-09-13 04:00:24 +00:00
output.rs Use a let-chain in _session::output (nfc) 2022-03-24 22:38:32 -07:00
parse.rs UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
search_paths.rs incr. comp.: Don't export impl_stable_hash_via_hash!() and warn about using it. 2022-04-19 10:43:20 +02:00
session.rs Avoid Iterator::last 2022-09-11 17:23:00 +02:00
utils.rs Lib kind -l link-arg: 2022-07-26 13:55:27 +03:00