Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design meeting: Non-local errors (aka post-monomorphization errors) #195

Closed
tmandry opened this issue Feb 7, 2023 · 2 comments
Closed
Labels
meeting-proposal Proposal for a lang team design meeting meeting-scheduled Lang team design meeting that has a scheduled date T-lang

Comments

@tmandry
Copy link
Member

tmandry commented Feb 7, 2023

Summary

A non-local error is a compile-time error that appears in code only in some cases, contingent on external factors not controlled by the code itself. Examples:

  • Static assertions about the value of a const generic, or the size of a generic type
  • Errors that only appear when certain APIs are used from main, or flags like -C link-dead-code are passed
  • Errors that appear in cargo build, but not cargo check

The lang team needs to decide its stance on these errors, their tradeoffs, and in particular, how they relate to the discussion to stabilize inline_const.

Background reading

Non-local errors in Rust

About this issue

This issue corresponds to a lang-team design meeting proposal. It corresponds to a possible topic of discussion that may be scheduled for deeper discussion during one of our design meetings.

@tmandry tmandry added meeting-proposal Proposal for a lang team design meeting T-lang labels Feb 7, 2023
@tmandry
Copy link
Member Author

tmandry commented Feb 14, 2023

This meeting has been scheduled for Feb 22. Calendar

@nikomatsakis nikomatsakis added the meeting-scheduled Lang team design meeting that has a scheduled date label Feb 21, 2023
@tmandry tmandry changed the title Design meeting: Post-monomorphization errors Design meeting: Non-local errors Feb 22, 2023
@tmandry tmandry changed the title Design meeting: Non-local errors Design meeting: Non-local errors (aka post-monomorphization errors) Feb 22, 2023
@tmandry
Copy link
Member Author

tmandry commented Feb 28, 2023

Meeting notes: Non-local errors in Rust. There is a summary of the discussion at the bottom.

Summary of consensus on the question of stabilizing inline_const specifically is in rust-lang/rust#104087 (comment). It's possible the outcomes of the resulting investigations/discussion may trigger one or more follow-up meetings, but those will need new issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting-proposal Proposal for a lang team design meeting meeting-scheduled Lang team design meeting that has a scheduled date T-lang
Projects
Development

No branches or pull requests

2 participants