mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Remove extra # from url
This commit is contained in:
parent
5d3d3479d7
commit
9676e18868
@ -3155,7 +3155,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
|||||||
} else {
|
} else {
|
||||||
// FIXME: we may suggest array::repeat instead
|
// FIXME: we may suggest array::repeat instead
|
||||||
err.help("consider using `core::array::from_fn` to initialize the array");
|
err.help("consider using `core::array::from_fn` to initialize the array");
|
||||||
err.help("see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information");
|
err.help("see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information");
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.tcx.sess.is_nightly_build()
|
if self.tcx.sess.is_nightly_build()
|
||||||
|
@ -6,7 +6,7 @@ LL | let headers = [Header{value: &[]}; 128];
|
|||||||
|
|
|
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Header<'_>` with `#[derive(Copy)]`
|
help: consider annotating `Header<'_>` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
@ -21,7 +21,7 @@ LL | let headers = [Header{value: &[0]}; 128];
|
|||||||
|
|
|
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Header<'_>` with `#[derive(Copy)]`
|
help: consider annotating `Header<'_>` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
|
@ -6,7 +6,7 @@ LL | [x; { N }]
|
|||||||
|
|
|
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider restricting type parameter `T`
|
help: consider restricting type parameter `T`
|
||||||
|
|
|
|
||||||
LL | fn g<T: std::marker::Copy, const N: usize>(x: T) -> [T; N] {
|
LL | fn g<T: std::marker::Copy, const N: usize>(x: T) -> [T; N] {
|
||||||
|
@ -6,7 +6,7 @@ LL | [x; N]
|
|||||||
|
|
|
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider restricting type parameter `T`
|
help: consider restricting type parameter `T`
|
||||||
|
|
|
|
||||||
LL | fn g<T: std::marker::Copy, const N: usize>(x: T) -> [T; N] {
|
LL | fn g<T: std::marker::Copy, const N: usize>(x: T) -> [T; N] {
|
||||||
|
@ -7,7 +7,7 @@ LL | let arr: [Option<Bar>; 2] = [x; 2];
|
|||||||
= note: required for `Option<Bar>` to implement `Copy`
|
= note: required for `Option<Bar>` to implement `Copy`
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Bar` with `#[derive(Copy)]`
|
help: consider annotating `Bar` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
@ -23,7 +23,7 @@ LL | let arr: [Option<Bar>; 2] = [x; 2];
|
|||||||
= note: required for `Option<Bar>` to implement `Copy`
|
= note: required for `Option<Bar>` to implement `Copy`
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Bar` with `#[derive(Copy)]`
|
help: consider annotating `Bar` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
|
@ -7,7 +7,7 @@ LL | let arr: [Option<Bar>; 2] = [x; 2];
|
|||||||
= note: required for `Option<Bar>` to implement `Copy`
|
= note: required for `Option<Bar>` to implement `Copy`
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Bar` with `#[derive(Copy)]`
|
help: consider annotating `Bar` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
@ -23,7 +23,7 @@ LL | let arr: [Option<Bar>; 2] = [x; 2];
|
|||||||
= note: required for `Option<Bar>` to implement `Copy`
|
= note: required for `Option<Bar>` to implement `Copy`
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Bar` with `#[derive(Copy)]`
|
help: consider annotating `Bar` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
|
@ -6,7 +6,7 @@ LL | let _ = [ a; 5 ];
|
|||||||
|
|
|
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
help: consider annotating `Foo` with `#[derive(Copy)]`
|
help: consider annotating `Foo` with `#[derive(Copy)]`
|
||||||
|
|
|
|
||||||
LL + #[derive(Copy)]
|
LL + #[derive(Copy)]
|
||||||
|
@ -6,7 +6,7 @@ LL | let string_arr = [foo(); 64];
|
|||||||
|
|
|
|
||||||
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
||||||
= help: consider using `core::array::from_fn` to initialize the array
|
= help: consider using `core::array::from_fn` to initialize the array
|
||||||
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html# for more information
|
= help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information
|
||||||
|
|
||||||
error: aborting due to 1 previous error
|
error: aborting due to 1 previous error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user