Skip to content

Commit 1dd00e6

Browse files
committed
add tracking issue, fix rebase
1 parent 7804644 commit 1dd00e6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

compiler/rustc_session/src/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ declare_lint! {
544544
Warn,
545545
"detects a generic constant is used in a type without a emitting a warning",
546546
@future_incompatible = FutureIncompatibleInfo {
547-
reference: "TODO",
547+
reference: "issue #76200 <https://github.com/rust-lang/rust/issues/76200>",
548548
edition: None,
549549
};
550550
}

src/librustc_trait_selection/traits/const_evaluatable.rs renamed to compiler/rustc_trait_selection/src/traits/const_evaluatable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
1818
if let Some(local_def_id) = def.did.as_local() {
1919
infcx.tcx.struct_span_lint_hir(
2020
lint::builtin::CONST_EVALUATABLE_UNCHECKED,
21-
infcx.tcx.hir().as_local_hir_id(local_def_id),
21+
infcx.tcx.hir().local_def_id_to_hir_id(local_def_id),
2222
span,
2323
|err| {
2424
err.build("cannot use constants which depend on generic parameters in types")

src/test/ui/const_evaluatable/function-call.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | let _ = [0; foo::<T>()];
66
|
77
= note: `#[warn(const_evaluatable_unchecked)]` on by default
88
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9-
= note: for more information, see TODO
9+
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
1010

1111
warning: 1 warning emitted
1212

src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | Some(T) = core::mem::size_of::<*mut T>(),
66
|
77
= note: `#[warn(const_evaluatable_unchecked)]` on by default
88
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9-
= note: for more information, see TODO
9+
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
1010

1111
warning: 1 warning emitted
1212

src/test/ui/lazy_normalization_consts/issue-73980.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | impl<T> X<T, [u8; L::<T>::S]> {}
66
|
77
= note: `#[warn(const_evaluatable_unchecked)]` on by default
88
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9-
= note: for more information, see TODO
9+
= note: for more information, see issue #76200 <https://github.com/rust-lang/rust/issues/76200>
1010

1111
warning: 1 warning emitted
1212

0 commit comments

Comments
 (0)