-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Correctly note item kind in NonConstFunctionCall error message
#134701
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
Conversation
|
Some changes occurred to the CTFE machinery cc @rust-lang/wg-const-eval This PR modifies cc @jieyouxu |
d566ebf to
92f93f6
Compare
|
make sense to me, r=me if you want (unless you want to wait for fmease of course) |
|
@bors r=Urgau,fmease rollup |
Rollup of 5 pull requests Successful merges: - rust-lang#134638 (Fix effect predicates from item bounds in old solver) - rust-lang#134662 (Fix safety docs for `dyn Any + Send {+ Sync}`) - rust-lang#134689 (core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets) - rust-lang#134699 (Belay new reviews for workingjubilee) - rust-lang#134701 (Correctly note item kind in `NonConstFunctionCall` error message) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#134701 - compiler-errors:non-const-def-descr, r=Urgau,fmease Correctly note item kind in `NonConstFunctionCall` error message Don't just call everything a "`fn`". This is more consistent with the error message we give for conditionally-const items, which do note the item's def kind. r? fmease, this is a prerequisite for making those `~const PartialEq` error messages better. Re-roll if you're busy or don't want to review this.
Don't just call everything a "
fn". This is more consistent with the error message we give for conditionally-const items, which do note the item's def kind.r? fmease, this is a prerequisite for making those
~const PartialEqerror messages better. Re-roll if you're busy or don't want to review this.