diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2024-01-11 15:41:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-11 15:41:46 +0900 |
| commit | 6794dc9a5fa86be24fa4a1c1464167f3e390d916 (patch) | |
| tree | 18e65b313749bf6e0cacfcfa8758fdc37137452d /tests/codegen/integer-overflow.rs | |
| parent | 3a6bf351a39b35a662022c151621b932b4ae0bc8 (diff) | |
| parent | da26317a8a69fed3f7b96457c643121e75954933 (diff) | |
| download | rust-6794dc9a5fa86be24fa4a1c1464167f3e390d916.tar.gz rust-6794dc9a5fa86be24fa4a1c1464167f3e390d916.zip | |
Rollup merge of #116343 - Nilstrieb:maybe-dont-mention-all-the-weird-lang-items-just-saying, r=bjorn3
Stop mentioning internal lang items in no_std binary errors 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. I don't _love_ the new messages yet, but they're decent I think. They can probably be improved, please suggest improvements.
Diffstat (limited to 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions
