diff options
| author | bors <bors@rust-lang.org> | 2022-06-13 19:36:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-13 19:36:41 +0000 |
| commit | ca122c7ebb3ab50149c9d3d24ddb59c252b32272 (patch) | |
| tree | b921955614c8c29e5c1bf05e60f58be7012c1806 /compiler/rustc_const_eval/src/transform | |
| parent | 083721a1a7365d3afe1521cd2661b2201aac0450 (diff) | |
| parent | af1f6144d8b742fe6dd5dea97cc41feee83f47e3 (diff) | |
| download | rust-ca122c7ebb3ab50149c9d3d24ddb59c252b32272.tar.gz rust-ca122c7ebb3ab50149c9d3d24ddb59c252b32272.zip | |
Auto merge of #98066 - matthiaskrgr:rollup-wb9gs92, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #97709 (Normalize consts' tys when relating with `adt_const_params`) - #97875 (Remove the `infer_static_outlives_requirements` feature) - #97960 (interpret: unify offset_from check with offset check) - #97999 (Make `type_changing_struct_update` no longer an incomplete feature) - #98043 (Remove unnecessary `to_string` and `String::new`) - #98044 ([issues:97981] del unrelated comment) - #98049 (Document an edge case of `str::split_once`) - #98050 (Add some more regression tests for #67945) - #98054 (Fix error message for `download-ci-llvm`) - #98057 (Update miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/check.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs index 4b98e19376d..b8a14e37a09 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs @@ -1035,7 +1035,7 @@ fn emit_unstable_in_stable_error(ccx: &ConstCx<'_, '_>, span: Span, gate: Symbol .span_suggestion( attr_span, "if it is not part of the public API, make this function unstably const", - concat!(r#"#[rustc_const_unstable(feature = "...", issue = "...")]"#, '\n').to_owned(), + concat!(r#"#[rustc_const_unstable(feature = "...", issue = "...")]"#, '\n'), Applicability::HasPlaceholders, ) .span_suggestion( |
