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

Rollup of 7 pull requests #108620

Merged
merged 22 commits into from
Mar 1, 2023
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4de9c6d
rustdoc: search by macro when query ends with `!`
notriddle Feb 16, 2023
d963318
Correct eslint warning
notriddle Feb 17, 2023
07cf219
Update how-to-read-rustdoc.md
notriddle Feb 22, 2023
317be61
make --open work on all books
pietroalbini Feb 23, 2023
96e6fb6
Update search eBNF with `!` moved
notriddle Feb 25, 2023
379b18b
Use checked_add in VecDeque::append for ZSTs to avoid overflow
pommicket Feb 25, 2023
12f959b
Add test for VecDeque::append ZST capacity overflow
pommicket Feb 25, 2023
0758c05
recover from for-else and while-else
y21 Feb 23, 2023
9642346
Add regression test for #107280
JohnTitor Mar 1, 2023
50d35c1
Add regression test for #105821
JohnTitor Mar 1, 2023
5295de1
Add opt_rpitit_info query
spastorino Feb 28, 2023
e74f50e
Add unstable option new_rpitit to be used for new RPITIT lowering system
spastorino Feb 28, 2023
be72bec
Fix typo in docs
spastorino Feb 28, 2023
811a1ca
Make associated_item_def_ids for traits use an unstable option to als…
spastorino Feb 28, 2023
73e2fe0
Properly implement should_encode_fn_impl_trait_in_trait using new uns…
spastorino Feb 28, 2023
f03e534
Rollup merge of #108143 - notriddle:notriddle/filter-exclamation-macr…
Dylan-DPC Mar 1, 2023
38461f8
Rollup merge of #108394 - ferrocene:pa-open, r=ozkanonur
Dylan-DPC Mar 1, 2023
27fa7b5
Rollup merge of #108427 - y21:for-else-diagnostic, r=compiler-errors
Dylan-DPC Mar 1, 2023
093a53f
Rollup merge of #108462 - pommicket:fix-vecdeque-zst-overflow, r=Amanieu
Dylan-DPC Mar 1, 2023
9d132f7
Rollup merge of #108568 - spastorino:new-rpitit-flag, r=compiler-errors
Dylan-DPC Mar 1, 2023
0ed76b4
Rollup merge of #108604 - JohnTitor:issue-107280, r=compiler-errors
Dylan-DPC Mar 1, 2023
02e4eef
Rollup merge of #108605 - JohnTitor:issue-105821, r=compiler-errors
Dylan-DPC Mar 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add regression test for #105821
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor committed Mar 1, 2023
commit 50d35c174071301b95e9358d8e69c90561caa217
23 changes: 23 additions & 0 deletions tests/ui/const-generics/issues/issue-105821.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// check-pass

#![allow(incomplete_features)]
#![feature(adt_const_params, const_ptr_read, generic_const_exprs)]
#![allow(dead_code)]

const fn catone<const M: usize>(_a: &[u8; M]) -> [u8; M + 1]
where
[(); M + 1]:,
{
unimplemented!()
}

struct Catter<const A: &'static [u8]>;
impl<const A: &'static [u8]> Catter<A>
where
[(); A.len() + 1]:,
{
const ZEROS: &'static [u8; A.len()] = &[0_u8; A.len()];
const R: &'static [u8] = &catone(Self::ZEROS);
}

fn main() {}