about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-10-28 13:36:21 +0800
committerGitHub <noreply@github.com>2024-10-28 13:36:21 +0800
commit3e3feac7c3c6e3561b7a452e3764810f2edd1c33 (patch)
treed32cd798914781828c1dcb4e31f023fc80fe716e /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentf14637b02513113d430c9afeb8e3452473b06dea (diff)
parent7f54b9ecefc38a8a3fde9a98b253eeb6f775b25a (diff)
downloadrust-3e3feac7c3c6e3561b7a452e3764810f2edd1c33.tar.gz
rust-3e3feac7c3c6e3561b7a452e3764810f2edd1c33.zip
Rollup merge of #132243 - compiler-errors:no-span, r=jieyouxu
Remove `ObligationCause::span()` method

I think it's an incredibly confusing footgun to expose both `obligation_cause.span` and `obligation_cause.span()`. Especially because `ObligationCause::span()` (the method) seems to just be hacking around a single quirk in the way we set up obligation causes for match arms.

First commit removes the need for that hack, with only one diagnostic span changing (but IMO not really getting worse -- I'd argue that it was already confusing).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions