diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-06-13 15:48:40 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-06-13 15:48:40 +0900 |
| commit | 77d6176e69de8bcdc15a12402ce7245f06ca2329 (patch) | |
| tree | 0f5bc75e1ef4e5e214bdb5ff3a427eef331df792 /compiler/rustc_const_eval/src/transform | |
| parent | c570ab5a0bc2d5a553d0eeaa9923a1c05c84e64e (diff) | |
| download | rust-77d6176e69de8bcdc15a12402ce7245f06ca2329.tar.gz rust-77d6176e69de8bcdc15a12402ce7245f06ca2329.zip | |
remove unnecessary `to_string` and `String::new`
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( |
