-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make it clearer that edition functions are >=
, not ==
#113765
Conversation
This seems way more reasonable to me. |
Nils is /afk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with doc copy pasta fixed
compiler/rustc_span/src/lib.rs
Outdated
} | ||
|
||
/// Are we allowed to use features from the Rust 2018 edition? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Are we allowed to use features from the Rust 2018 edition? | |
/// Are we allowed to use features from the Rust 2021 edition? |
compiler/rustc_span/src/lib.rs
Outdated
} | ||
|
||
/// Are we allowed to use features from the Rust 2018 edition? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Are we allowed to use features from the Rust 2018 edition? | |
/// Are we allowed to use features from the Rust 2024 edition? |
163d253
to
846cc63
Compare
@bors r=oli-obk rollup (naming only) |
Rollup of 7 pull requests Successful merges: - rust-lang#113444 (add tests for alias bound preference) - rust-lang#113716 (Add the `no-builtins` attribute to functions when `no_builtins` is applied at the crate level.) - rust-lang#113754 (Simplify native_libs query) - rust-lang#113765 (Make it clearer that edition functions are `>=`, not `==`) - rust-lang#113774 (Improve error message when closing bracket interpreted as formatting fill character) - rust-lang#113785 (Fix invalid display of inlined re-export when both local and foreign items are inlined) - rust-lang#113803 (Fix inline_const with interpolated block) r? `@ghost` `@rustbot` modify labels: rollup
r? @Nilstrieb
We could also perhaps derive
Ord
onEdition
and use comparison operators.