Skip to content

Fix missing diagnostic span for impl Trait with const generics, and add various tests for min_const_generics and const_generics - #77439

Merged
bors merged 7 commits into
rust-lang:masterfrom
varkor:min_const_generics-tests
Oct 5, 2020
Merged

Fix missing diagnostic span for impl Trait with const generics, and add various tests for min_const_generics and const_generics#77439
bors merged 7 commits into
rust-lang:masterfrom
varkor:min_const_generics-tests

Conversation

@varkor

@varkorvarkor commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 2, 2020
@varkorvarkor added the F-const_generics `#![feature(const_generics)]` label Oct 2, 2020
@varkorvarkor changed the title Fix missing diagnostic span for impl Trait with const generics, and add various tests for min_const_genericsFix missing diagnostic span for impl Trait with const generics, and add various tests for min_const_generics and const_genericsOct 2, 2020
@varkor

Copy link
Copy Markdown
ContributorAuthor

I've also tweaked a diagnostic for consistency.

@estebank

Copy link
Copy Markdown
Contributor

r=me after reblessing

lcnr
lcnr approved these changes Oct 2, 2020

@lcnrlcnr left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threadsrc/test/ui/const-generics/min_const_generics/const-argument-if-length.rs Outdated
@varkor
varkorforce-pushed the min_const_generics-tests branch from 78ea2e3 to 3631d29CompareOctober 3, 2020 16:00
lcnr
lcnr approved these changes Oct 3, 2020

@lcnrlcnr left a comment

Copy link
Copy Markdown
Contributor

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

@varkor

Copy link
Copy Markdown
ContributorAuthor

@bors r=lcnr,estebank

@bors

bors commented Oct 3, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 6647eee has been approved by lcnr,estebank

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 3, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 5, 2020
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`
@bors
bors merged commit e032bb7 into rust-lang:masterOct 5, 2020
@rustbotrustbot added this to the 1.49.0 milestone Oct 5, 2020
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 13, 2022
…rrors
Add some more regression tests for rust-lang#67945Closesrust-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`
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-const_generics`#![feature(const_generics)]`S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

impl Trait and explicit const arguments

6 participants

@varkor@estebank@bors@lcnr@rust-highfive@rustbot