diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-17 01:51:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-17 01:51:35 +0200 |
| commit | 1d09a7b693323a3cd4d7d32f6102f58854830f72 (patch) | |
| tree | 683a2a81e8c9cf8ba343d25ecec4a6f893e58ec1 | |
| parent | 770b1f35de8c552e3737fab0708a9ab1c5eb69e7 (diff) | |
| parent | 9271f998d176c7e5adf35a39fd2d6642bc399858 (diff) | |
| download | rust-1d09a7b693323a3cd4d7d32f6102f58854830f72.tar.gz rust-1d09a7b693323a3cd4d7d32f6102f58854830f72.zip | |
Rollup merge of #72282 - jonas-schievink:issue-typo, r=Dylan-DPC
Fix issue number typo in note
| -rw-r--r-- | src/librustc_trait_selection/traits/error_reporting/suggestions.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-const_in_array_repeat_expressions.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_trait_selection/traits/error_reporting/suggestions.rs b/src/librustc_trait_selection/traits/error_reporting/suggestions.rs index 503daf56b49..c098e44fa06 100644 --- a/src/librustc_trait_selection/traits/error_reporting/suggestions.rs +++ b/src/librustc_trait_selection/traits/error_reporting/suggestions.rs @@ -1685,7 +1685,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { if suggest_const_in_array_repeat_expressions { err.note( "this array initializer can be evaluated at compile-time, see issue \ - #48147 <https://github.com/rust-lang/rust/issues/49147> \ + #49147 <https://github.com/rust-lang/rust/issues/49147> \ for more information", ); if tcx.sess.opts.unstable_features.is_nightly_build() { diff --git a/src/test/ui/feature-gates/feature-gate-const_in_array_repeat_expressions.stderr b/src/test/ui/feature-gates/feature-gate-const_in_array_repeat_expressions.stderr index 632afb24aa5..67721780682 100644 --- a/src/test/ui/feature-gates/feature-gate-const_in_array_repeat_expressions.stderr +++ b/src/test/ui/feature-gates/feature-gate-const_in_array_repeat_expressions.stderr @@ -7,7 +7,7 @@ LL | let arr: [Option<String>; 2] = [None::<String>; 2]; = help: the following implementations were found: <std::option::Option<T> as std::marker::Copy> = note: the `Copy` trait is required because the repeated element will be copied - = note: this array initializer can be evaluated at compile-time, see issue #48147 <https://github.com/rust-lang/rust/issues/49147> for more information + = note: this array initializer can be evaluated at compile-time, see issue #49147 <https://github.com/rust-lang/rust/issues/49147> for more information = help: add `#![feature(const_in_array_repeat_expressions)]` to the crate attributes to enable error[E0277]: the trait bound `std::option::Option<std::string::String>: std::marker::Copy` is not satisfied |
