rust/compiler/rustc_codegen_ssa/src
Jacob Pratt 42014b44b3
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 {
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
2025-02-24 02:11:38 -05:00
..
back Rollup merge of #136637 - Pyr0de:binary-format, r=Noratrieb 2025-02-23 14:30:26 -05:00
debuginfo Move hashes from rustc_data_structure to rustc_hashes so they can be shared with rust-analyzer 2025-02-16 16:18:30 -05:00
mir Rollup merge of #137505 - tgross35:builtins-cannot-call-error, r=compiler-errors 2025-02-24 02:11:38 -05:00
traits Auto merge of #137271 - nikic:gep-nuw-2, r=scottmcm 2025-02-24 03:06:16 +00:00
assert_module_sources.rs Change collect_and_partition_mono_items tuple return type to a struct 2025-01-27 09:38:12 +00:00
base.rs Rollup merge of #136608 - kulst:ptx_target_features, r=bjorn3 2025-02-20 14:58:17 -08:00
codegen_attrs.rs Rollup merge of #136439 - yotamofek:pr/codegen-ssa-no-indexing, r=Noratrieb 2025-02-23 14:30:24 -05:00
common.rs Test fixing raw-dylib 2024-09-24 10:10:31 -07:00
errors.rs Add a span to CompilerBuiltinsCannotCall 2025-02-24 03:33:16 +00:00
lib.rs Persist target features used for codegen beyond tcx 2025-02-16 21:57:03 +01:00
meth.rs More assertions, tests, and miri coverage 2025-01-30 17:44:28 +00:00
mono_item.rs Make a fake body to store typeck results for global_asm 2025-02-22 00:12:07 +00:00
size_of_val.rs Set both nuw and nsw in slice size calculation 2025-02-13 21:26:48 -08:00
target_features.rs add dedicated type for ABI target feature constraints 2025-01-05 10:46:30 +01:00