add tracking issue, fix rebase
This commit is contained in:
parent
7804644863
commit
1dd00e60b9
5 changed files with 5 additions and 5 deletions
|
@ -544,7 +544,7 @@ declare_lint! {
|
|||
Warn,
|
||||
"detects a generic constant is used in a type without a emitting a warning",
|
||||
@future_incompatible = FutureIncompatibleInfo {
|
||||
reference: "TODO",
|
||||
reference: "issue #76200 <https://github.com/rust-lang/rust/issues/76200>",
|
||||
edition: None,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
|
|||
if let Some(local_def_id) = def.did.as_local() {
|
||||
infcx.tcx.struct_span_lint_hir(
|
||||
lint::builtin::CONST_EVALUATABLE_UNCHECKED,
|
||||
infcx.tcx.hir().as_local_hir_id(local_def_id),
|
||||
infcx.tcx.hir().local_def_id_to_hir_id(local_def_id),
|
||||
span,
|
||||
|err| {
|
||||
err.build("cannot use constants which depend on generic parameters in types")
|
|
@ -6,7 +6,7 @@ LL | let _ = [0; foo::<T>()];
|
|||
|
|
||||
= note: `#[warn(const_evaluatable_unchecked)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see TODO
|
||||
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | Some(T) = core::mem::size_of::<*mut T>(),
|
|||
|
|
||||
= note: `#[warn(const_evaluatable_unchecked)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see TODO
|
||||
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | impl<T> X<T, [u8; L::<T>::S]> {}
|
|||
|
|
||||
= note: `#[warn(const_evaluatable_unchecked)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see TODO
|
||||
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue