rust/compiler
bors 498dab0256 Auto merge of #76306 - tmiasko:nrvo-debuginfo, r=ecstatic-morse
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:

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

#[inline]
pub fn a(s: String) -> String {
    let x = s;
    let y = x;
    y
}
```
2020-09-13 00:33:04 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Fully integrate token collection for additional AST structs 2020-09-10 17:58:14 -04:00
rustc_ast_lowering Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
rustc_ast_passes update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00
rustc_ast_pretty Fully integrate token collection for additional AST structs 2020-09-10 17:58:14 -04:00
rustc_attr
rustc_builtin_macros Attach tokens to ast::Stmt 2020-09-10 17:33:06 -04:00
rustc_codegen_llvm Rollup merge of #74787 - petrochenkov:rustllvm, r=cuviper 2020-09-09 21:02:24 -07:00
rustc_codegen_ssa use push(char) instead of push_str(&str) to add single chars to strings 2020-09-10 13:58:41 +02:00
rustc_data_structures update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00
rustc_driver
rustc_error_codes
rustc_errors
rustc_expand Attach tokens to ast::Stmt 2020-09-10 17:33:06 -04:00
rustc_feature fix tidy, small cleanup 2020-09-10 09:48:02 +02:00
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer use push(char) instead of push_str(&str) to add single chars to strings 2020-09-10 13:58:41 +02:00
rustc_interface Attach tokens to ast::Stmt 2020-09-10 17:33:06 -04:00
rustc_lexer
rustc_lint
rustc_llvm
rustc_macros
rustc_metadata Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
rustc_middle Auto merge of #75573 - Aaron1011:feature/const-mutation-lint, r=oli-obk 2020-09-10 05:54:26 +00:00
rustc_mir Auto merge of #76306 - tmiasko:nrvo-debuginfo, r=ecstatic-morse 2020-09-13 00:33:04 +00:00
rustc_mir_build Auto merge of #75573 - Aaron1011:feature/const-mutation-lint, r=oli-obk 2020-09-10 05:54:26 +00:00
rustc_parse Attach tokens to ast::Stmt 2020-09-10 17:33:06 -04:00
rustc_parse_format
rustc_passes Auto merge of #73461 - calebzulawski:validate-attribute-placement, r=matthewjasper 2020-09-12 22:04:37 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_system update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00
rustc_resolve Auto merge of #76499 - guswynn:priv_des, r=petrochenkov 2020-09-11 20:01:31 +00:00
rustc_save_analysis use push(char) instead of push_str(&str) to add single chars to strings 2020-09-10 13:58:41 +02:00
rustc_serialize
rustc_session Auto merge of #76538 - fusion-engineering-forks:check-useless-unstable-trait-impl, r=lcnr 2020-09-12 18:01:33 +00:00
rustc_span implement const_evaluatable_checked feature MVP 2020-09-10 08:52:02 +02:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection fix tidy, small cleanup 2020-09-10 09:48:02 +02:00
rustc_traits
rustc_ty
rustc_typeck Auto merge of #73461 - calebzulawski:validate-attribute-placement, r=matthewjasper 2020-09-12 22:04:37 +00:00