1
Fork 0

add tracking issue, fix rebase

This commit is contained in:
Bastian Kauschke 2020-09-01 16:17:41 +02:00
parent 7804644863
commit 1dd00e60b9
5 changed files with 5 additions and 5 deletions

View file

@ -544,7 +544,7 @@ declare_lint! {
Warn, Warn,
"detects a generic constant is used in a type without a emitting a warning", "detects a generic constant is used in a type without a emitting a warning",
@future_incompatible = FutureIncompatibleInfo { @future_incompatible = FutureIncompatibleInfo {
reference: "TODO", reference: "issue #76200 <https://github.com/rust-lang/rust/issues/76200>",
edition: None, edition: None,
}; };
} }

View file

@ -18,7 +18,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
if let Some(local_def_id) = def.did.as_local() { if let Some(local_def_id) = def.did.as_local() {
infcx.tcx.struct_span_lint_hir( infcx.tcx.struct_span_lint_hir(
lint::builtin::CONST_EVALUATABLE_UNCHECKED, 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, span,
|err| { |err| {
err.build("cannot use constants which depend on generic parameters in types") err.build("cannot use constants which depend on generic parameters in types")

View file

@ -6,7 +6,7 @@ LL | let _ = [0; foo::<T>()];
| |
= note: `#[warn(const_evaluatable_unchecked)]` on by default = 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! = 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 warning: 1 warning emitted

View file

@ -6,7 +6,7 @@ LL | Some(T) = core::mem::size_of::<*mut T>(),
| |
= note: `#[warn(const_evaluatable_unchecked)]` on by default = 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! = 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 warning: 1 warning emitted

View file

@ -6,7 +6,7 @@ LL | impl<T> X<T, [u8; L::<T>::S]> {}
| |
= note: `#[warn(const_evaluatable_unchecked)]` on by default = 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! = 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 warning: 1 warning emitted