Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fc52b47
va_args implementation for AAPCS.
JamieCunliffe Jun 30, 2020
31c7aae
Stabilize control-flow-guard codegen option
ajpaverd Jul 14, 2020
cfa3a33
compiletest: Rewrite extract_lldb_version function
tesuji Jul 11, 2020
d778f32
compiletest: Rewrite extract_gdb_version function
tesuji Jul 11, 2020
07d56cb
Fix panic as passing wrong format to `extract_gdb_version`
tesuji Jul 11, 2020
79d5cbb
Use Option::as_deref
tesuji Jul 11, 2020
75caee0
Extract closure to function
tesuji Jul 11, 2020
5aa33b1
Use subslice pattern
tesuji Jul 11, 2020
5e5d816
Add missing : after min-gdb-version
tesuji Jul 18, 2020
2bcefa8
Add missing : after *llvm-version
tesuji Jul 19, 2020
99e3a3c
Extract extract_version_range
tesuji Jul 19, 2020
60fac34
Rewrite extract_llvm_version
tesuji Jul 19, 2020
1314d31
Rewrite extract_version_range
tesuji Jul 19, 2020
4fb260b
Guard against non-monomorphized type_id intrinsic call
nbdd0121 Jul 4, 2020
0ced817
Detect when `'static` obligation might come from an `impl`
estebank Jun 27, 2020
bc528eb
Increase accuracy of lifetime bound on trait object impl suggestion
estebank Jun 28, 2020
3f5c7f2
Add more context to diagnostic
estebank Jun 29, 2020
8f74971
Further tweak wording of E0759 and introduce E0767
estebank Jun 29, 2020
b795cf1
Use `ty::Instance::resolve` to identify `'static` bound source
estebank Jul 1, 2020
0c5891b
Partially account for case where used method is from trait
estebank Jul 1, 2020
4344265
Handle fully-qualified paths and add test cases
estebank Jul 1, 2020
cf52d5f
Use forge links for prioritization procedure
spastorino Jul 20, 2020
7f3e2c0
refactor and reword intra-doc link errors
euclio Jul 19, 2020
4c69d4b
Add the aarch64-apple-darwin target
shepmaster Jul 11, 2020
804241e
Update dependencies that have knowledge about aarch64-apple-darwin
shepmaster Jul 11, 2020
b3340b5
Expand test to cover type_name and monomorphic use
nbdd0121 Jul 21, 2020
8b58eb9
Remove the assert on alignment check.
JamieCunliffe Jul 21, 2020
3eed7da
Update books
ehuss Jul 21, 2020
7b05fb5
Change error code number
estebank Jul 20, 2020
96225b1
Fix tooltip position if the documentation starts with a code block
GuillaumeGomez Jul 22, 2020
fc5b8c3
Rollup merge of #73655 - JamieCunliffe:jamie_va-args-c, r=nikic
Manishearth Jul 22, 2020
763d019
Rollup merge of #73783 - estebank:impl-dyn-trait-static-lifetime, r=n…
Manishearth Jul 22, 2020
ae9c9b0
Rollup merge of #73893 - ajpaverd:cfguard-stabilize, r=nikomatsakis
Manishearth Jul 22, 2020
7408505
Rollup merge of #74237 - lzutao:compiletest, r=Mark-Simulacrum
Manishearth Jul 22, 2020
4f2f63e
Rollup merge of #74528 - euclio:intra-link-errors, r=jyn514
Manishearth Jul 22, 2020
e46546d
Rollup merge of #74538 - nbdd0121:issue-73976, r=lcnr
Manishearth Jul 22, 2020
d996947
Rollup merge of #74541 - shepmaster:aarch64-apple-darwin-target, r=na…
Manishearth Jul 22, 2020
4bb817b
Rollup merge of #74570 - spastorino:fix-prioritization-procedures-lin…
Manishearth Jul 22, 2020
846d539
Rollup merge of #74589 - ehuss:update-books, r=ehuss
Manishearth Jul 22, 2020
1ae7830
Rollup merge of #74635 - GuillaumeGomez:fix-tooltip-pos, r=Manishearth
Manishearth Jul 22, 2020
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
Use subslice pattern
  • Loading branch information
tesuji committed Jul 19, 2020
commit 5aa33b11fc88d0f81c7b2dc586db1439fcf2b664
12 changes: 6 additions & 6 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ impl EarlyProps {
.take(3) // 3 or more = invalid, so take at most 3.
.collect::<Vec<Option<u32>>>();

match range_components.len() {
1 => {
let v = range_components[0].unwrap();
match *range_components {
[v] => {
let v = v.unwrap();
(v, v)
}
2 => {
let v_min = range_components[0].unwrap();
let v_max = range_components[1].expect(ERROR_MESSAGE);
[min, max] => {
let v_min = min.unwrap();
let v_max = max.expect(ERROR_MESSAGE);
(v_min, v_max)
}
_ => panic!(ERROR_MESSAGE),
Expand Down