-
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
Fix missing diagnostic span for impl Trait
with const generics, and add various tests for min_const_generics
and const_generics
#77439
Conversation
impl Trait
with const generics, and add various tests for min_const_generics
impl Trait
with const generics, and add various tests for min_const_generics
and const_generics
I've also tweaked a diagnostic for consistency. |
r=me after reblessing |
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.
lgtm,
I would prefer to merge the identical tests for const_generics
and min_const_generics
and instead use revisions here, as we otherwise probably end up with duplicates once const_generics
is stable.
src/test/ui/const-generics/min_const_generics/const-argument-if-length.rs
Outdated
Show resolved
Hide resolved
78ea2e3
to
3631d29
Compare
src/test/ui/const-generics/min_const_generics/const-argument-if-length.rs
Outdated
Show resolved
Hide resolved
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 after the last nit
src/test/ui/const-generics/min_const_generics/impl-trait-with-const-arguments.rs
Outdated
Show resolved
Hide resolved
@bors r=lcnr,estebank |
📌 Commit 6647eee has been approved by |
Rollup of 11 pull requests Successful merges: - rust-lang#75853 (Use more intra-doc-links in `core::fmt`) - rust-lang#75928 (Remove trait_selection error message in specific case) - rust-lang#76329 (Add check for doc alias attribute at crate level) - rust-lang#77219 (core::global_allocator docs link to std::alloc::GlobalAlloc) - rust-lang#77395 (BTreeMap: admit the existence of leaf edges in comments) - rust-lang#77407 (Improve build-manifest to work with the improved promote-release) - rust-lang#77426 (Include scope id in SocketAddrV6::Display) - rust-lang#77439 (Fix missing diagnostic span for `impl Trait` with const generics, and add various tests for `min_const_generics` and `const_generics`) - rust-lang#77471 (BTreeMap: refactoring around edges, missed spots) - rust-lang#77512 (Allow `Abort` terminators in all const-contexts) - rust-lang#77514 (Replace some once(x).chain(once(y)) with [x, y] IntoIter) Failed merges: r? `@ghost`
…rrors Add some more regression tests for rust-lang#67945 Closes rust-lang#67945, added two tests from rust-lang#67945 (comment), other snippets were already added in rust-lang#71952 and rust-lang#77439 r? `@compiler-errors`
Closes #61410.
Adds
min_const_generics
tests for:&'static [_]
causes ICE #73727Adds
const_generics
tests for:(I only added separate
min_const_generics
andconst_generics
tests if they were handled differently by the two features.)We need to figure out how to deduplicate when
const_generics
is stabilised, but we can discuss that later. For now, we should be checking neither feature breaks, so require regression tests for both. I've given them identical names when I've added both, which should make it easier to spot them later.r? @lcnr