about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/messages.ftl
AgeCommit message (Collapse)AuthorLines
2025-08-06Add support for shortening `Instance` and use itEsteban Küber-4/+5
Replace ad-hoc type path shortening logic for recursive mono instantiation errors to use `tcx.short_string()` instead.
2025-06-14Remove all support for wasm's legacy ABIbjorn3-7/+0
2025-05-09Remove mono item collection strategy override from -Zprint-mono-itemsTomasz Miąsko-3/+0
Previously `-Zprint-mono-items` would override the mono item collection strategy. When debugging one doesn't want to change the behaviour, so this was counter productive. Additionally, the produced behaviour was artificial and might never arise without using the option in the first place (`-Zprint-mono-items=eager` without `-Clink-dead-code`). Finally, the option was incorrectly marked as `UNTRACKED`. Resolve those issues, by turning `-Zprint-mono-items` into a boolean flag that prints results of mono item collection without changing the behaviour of mono item collection. For codegen-units test incorporate `-Zprint-mono-items` flag directly into compiletest tool. Test changes are mechanical. `-Zprint-mono-items=lazy` was removed without additional changes, and `-Zprint-mono-items=eager` was turned into `-Clink-dead-code`. Linking dead code disables internalization, so tests have been updated accordingly.
2025-04-01Make missing optimized MIR error more informativeOli Scherer-1/+1
2025-03-25add FCW to warn about wasm ABI transitionRalf Jung-0/+7
2025-02-20vectorcall ABI: error if sse2 is not availableRalf Jung-0/+14
2025-02-20mono-time abi_check: unify error paths for call and definition sitesRalf Jung-13/+21
also move the existing tests to a more sensible location
2025-02-15abi_unsupported_vector_types: say which type is the problemRalf Jung-4/+4
2024-12-06Remove polymorphizationBen Kimock-2/+0
2024-11-12ABI checks: add support for tier2 archesLuca Versari-2/+9
See #131800 for the data collection behind this change. Also adds a test that exercise the "empty list of features" path.
2024-11-01Emit warning when calling/declaring functions with unavailable vectors.Luca Versari-0/+9
On some architectures, vector types may have a different ABI depending on whether the relevant target features are enabled. (The ABI when the feature is disabled is often not specified, but LLVM implements some de-facto ABI.) As discussed in rust-lang/lang-team#235, this turns out to very easily lead to unsound code. This commit makes it a post-monomorphization future-incompat warning to declare or call functions using those vector types in a context in which the corresponding target features are disabled, if using an ABI for which the difference is relevant. This ensures that these functions are always called with a consistent ABI. See the [nomination comment](https://github.com/rust-lang/rust/pull/127731#issuecomment-2288558187) for more discussion. Part of #116558
2024-10-25Revert "Emit error when calling/declaring functions with unavailable vectors."Rémy Rakic-9/+0
This reverts commit 5af56cac38fa48e4228e5e123d060e85eb1acbf7.
2024-10-25Emit error when calling/declaring functions with unavailable vectors.Luca Versari-0/+9
On some architectures, vector types may have a different ABI when relevant target features are enabled. As discussed in https://github.com/rust-lang/lang-team/issues/235, this turns out to very easily lead to unsound code. This commit makes it an error to declare or call functions using those vector types in a context in which the corresponding target features are disabled, if using an ABI for which the difference is relevant.
2024-07-02Re-implement a type-size based limitMichael Goulet-5/+0
2024-01-10Stop mentioning internal lang items in no_std binary errorsNilstrieb-0/+3
When writing a no_std binary, you'll be greeted with nonsensical errors mentioning lang items like eh_personality and start. That's pretty bad because it makes you think that you need to define them somewhere! But oh no, now you're getting the `internal_features` lint telling you that you shouldn't use them! But you need a no_std binary! What now? No problem! Writing a no_std binary is super easy. Just use panic=abort and supply your own platform specific entrypoint symbol (like `main`) and you're good to go. Would be nice if the compiler told you that, right? This makes it so that it does do that.
2023-10-18Remove `UnknownPartitionStrategy` error.Nicholas Nethercote-2/+0
This became unused in #112053, when `-Zcgu-partitioning-strategy` was removed.
2023-09-20Cleanup unused messages in ftl filesyukang-2/+0
2023-08-30Emit error instead of ICE when optimized MIR is missingMartin Nordholts-0/+4
Closes 51388.
2023-05-25Ensure Fluent messages are in alphabetical orderclubby789-17/+17
2023-03-11Simplify message pathsest31-0/+32
This makes it easier to open the messages file while developing on features. The commit was the result of automatted changes: for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done