rust/compiler
Tomasz Miąsko 01510612ee NRVO: Allow occurrences of the return place in var debug info
The non-use occurrence of the return place in var debug info does not
currently inhibit NRVO optimization, but it will fail assertion in
`visit_place` when optimization is performed.

Relax assertion check to allow the return place in var debug info.

This case might be impossible to hit in optimization pipelines as of
now, but can be encountered in customized mir-opt-level=2 pipeline with
copy propagation disabled. For example in:

```
pub fn b(s: String) -> String {
    a(s)
}

#[inline]
pub fn a(s: String) -> String {
    let x = s;
    let y = x;
    y
}
```
2020-09-04 02:33:37 +02:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #76170 - matklad:notrivia, r=petrochenkov 2020-09-02 03:19:38 +00:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty Auto merge of #76170 - matklad:notrivia, r=petrochenkov 2020-09-02 03:19:38 +00:00
rustc_attr
rustc_builtin_macros Improve recovery on malformed format call 2020-09-02 13:18:19 +02:00
rustc_codegen_llvm
rustc_codegen_ssa Rollup merge of #76167 - mati865:mingw-self-contained-heuristic, r=petrochenkov 2020-09-03 02:22:06 +02:00
rustc_data_structures Auto merge of #76233 - cuviper:unhasher, r=Mark-Simulacrum 2020-09-02 22:16:22 +00:00
rustc_driver driver: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00
rustc_error_codes Rollup merge of #76143 - jyn514:duplicate-builtin-macros, r=petrochenkov 2020-09-01 18:24:35 -07:00
rustc_errors
rustc_expand Auto merge of #76170 - matklad:notrivia, r=petrochenkov 2020-09-02 03:19:38 +00:00
rustc_feature driver: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir hir: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer
rustc_interface Auto merge of #76216 - marmeladema:use-once-cell-from-std, r=matklad 2020-09-02 06:46:21 +00:00
rustc_lexer lexer: Tiny improvement to shebang detection 2020-09-02 00:40:19 +03:00
rustc_lint
rustc_macros
rustc_metadata
rustc_middle Avoid rehashing Fingerprint as a map key 2020-09-01 18:27:02 -07:00
rustc_mir NRVO: Allow occurrences of the return place in var debug info 2020-09-04 02:33:37 +02:00
rustc_mir_build
rustc_parse Auto merge of #76160 - scileo:format-recovery, r=petrochenkov 2020-09-02 19:29:27 +00:00
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_system
rustc_resolve Rollup merge of #76143 - jyn514:duplicate-builtin-macros, r=petrochenkov 2020-09-01 18:24:35 -07:00
rustc_save_analysis
rustc_serialize
rustc_session Rollup merge of #76158 - mati865:self-contained-option, r=petrochenkov 2020-09-01 18:24:36 -07:00
rustc_span
rustc_symbol_mangling
rustc_target
rustc_trait_selection
rustc_traits
rustc_ty
rustc_typeck