diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-02-24 02:11:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-24 02:11:38 -0500 |
| commit | 42014b44b3d91e6567bb666f02c37ba537af00d0 (patch) | |
| tree | 71422875dbbaf032eb376a6f23924f3832fe53a9 /compiler/rustc_codegen_llvm/src/intrinsic.rs | |
| parent | c9411ea78ec0a424a0a8f39d7454987ee4bed509 (diff) | |
| parent | 7a2db88a569ca125516f3ac5e546952f1df0c0fa (diff) | |
| download | rust-42014b44b3d91e6567bb666f02c37ba537af00d0.tar.gz rust-42014b44b3d91e6567bb666f02c37ba537af00d0.zip | |
Rollup merge of #137505 - tgross35:builtins-cannot-call-error, r=compiler-errors
Add a span to `CompilerBuiltinsCannotCall`
Currently, this error emit a diagnostic with no context like:
error: `compiler_builtins` cannot call functions through upstream monomorphizations; encountered invalid call from `<math::libm::support::hex_float::Hexf<i32> as core::fmt::LowerHex>::fmt` to `core::fmt::num::<impl core::fmt::LowerHex for i32>::fmt`
With this change, it at least usually points to the problematic function:
error: `compiler_builtins` cannot call functions through upstream monomorphizations; encountered invalid call from `<math::libm::support::hex_float::Hexf<i32> as core::fmt::LowerHex>::fmt` to `core::fmt::num::<impl core::fmt::LowerHex for i32>::fmt`
--> src/../libm/src/math/support/hex_float.rs:270:5
|
270 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/intrinsic.rs')
0 files changed, 0 insertions, 0 deletions
