diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-11 16:51:19 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-11 16:51:19 +0900 |
| commit | 018155c3a218b819b70d1dc57b08fe3bc7b2ec3c (patch) | |
| tree | 2ebe8ab227bd73c12a0445f6706a7179f75e904e /compiler/rustc_const_eval/src | |
| parent | 12d11e9a35ccb380388c0568ed1d8735d89f51c3 (diff) | |
| download | rust-018155c3a218b819b70d1dc57b08fe3bc7b2ec3c.tar.gz rust-018155c3a218b819b70d1dc57b08fe3bc7b2ec3c.zip | |
rename a method
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs index 631a646b2bc..1d083b0bf82 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs @@ -299,7 +299,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> { err.note(&format!("attempting to deref into `{}`", deref_target_ty)); // Check first whether the source is accessible (issue #87060) - if tcx.sess.source_map().is_accessible_span(deref_target) { + if tcx.sess.source_map().is_span_accessible(deref_target) { err.span_note(deref_target, "deref defined here"); } |
