8000 Rollup of 10 pull requests by JohnTitor · Pull Request #65702 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 10 pull requests #65702

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

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
88b5e94
Make <*const/mut T>::offset_from `const fn`
oli-obk Aug 20, 2019
4a51801
Use dedicated method for getting the type size
oli-obk Oct 18, 2019
94a6d4b
Adjust const eval code to reflect `offset_from` docs
oli-obk Oct 18, 2019
1c9d889
Review nit
oli-obk Oct 18, 2019
3956c48
Ignore a test on musl because its ui output differs
oli-obk Oct 18, 2019
bf83ecf
Update ui output
oli-obk Oct 19, 2019
1e2b711
fix WASI sleep impl
newpavlov Oct 20, 2019
c290293
Derive `Rustc{En,De}codable` for `TokenStream`.
nnethercote Oct 15, 2019
8774484
Add option to disable keyboard shortcuts in docs
GuillaumeGomez Oct 21, 2019
3f1af90
Code cleanups following up on #65576.
sunfishcode Oct 22, 2019
40f92b3
refactor maybe_append
yjhmelody Oct 22, 2019
a239c8d
Add test for issue-41366
JohnTitor Oct 22, 2019
dd0f98b
Add test for issue-51431
JohnTitor Oct 22, 2019
93fab98
Add test for issue-52437
JohnTitor Oct 22, 2019
768965a 8000
bring back some Debug instances for Miri
RalfJung Oct 22, 2019
fc5b485
add comments
RalfJung Oct 22, 2019
7a85c43
Add test for issue-63496
JohnTitor Oct 22, 2019
74db3e8
rustc_metadata: use a table for super_predicates.
eddyb Oct 18, 2019
66a0253
self-profiling: Remove module names from some event-ids in codegen ba…
michaelwoerister Oct 22, 2019
7a80a11
rustc_metadata: use a table for fn_sig.
eddyb Oct 18, 2019
371cc39
rustc_metadata: use a table for impl_trait_ref.
eddyb Oct 18, 2019
16397a9
Rollup merge of #63810 - oli-obk:const_offset_from, r=RalfJung,nikic
JohnTitor Oct 22, 2019
1d2e145
Rollup merge of #65583 - eddyb:more-query-like-cross-crate-tables, r=…
JohnTitor Oct 22, 2019
294269c
Rollup merge of #65617 - newpavlov:patch-2, r=alexcrichton
JohnTitor Oct 22, 2019
304ce88
Rollup merge of #65641 - nnethercote:derive-TokenStream-Encodable-Dec…
JohnTitor Oct 22, 2019
21af776
Rollup merge of #65656 - GuillaumeGomez:option-disable-shortcut, r=Dy…
JohnTitor Oct 22, 2019
d53ba64
Rollup merge of #65681 - sunfishcode:followup, r=Centril
JohnTitor Oct 22, 2019
00e963d
Rollup merge of #65686 - yjhmelody:yjhmelody-patch-1, r=Centril
JohnTitor Oct 22, 2019
d703346
Rollup merge of #65688 - JohnTitor:add-some-tests, r=Dylan-DPC
JohnTitor Oct 22, 2019
2fb3e40
Rollup merge of #65689 - RalfJung:miri-debug, r=Centril
JohnTitor Oct 22, 2019
d63e1a8
Rollup merge of #65695 - michaelwoerister:fix-self-profiling-work-ite…
JohnTitor Oct 22, 2019
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 test for issue-41366
  • Loading branch information
JohnTitor committed Oct 22, 2019
commit a239c8dfb29c20f29fc3b30959f654d41fb0dd7f
13 changes: 13 additions & 0 deletions src/test/ui/closures/issue-41366.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
trait T<'x> {
type V;
}

impl<'g> T<'g> for u32 {
type V = u16;
}

fn main() {
(&|_|()) as &dyn for<'x> Fn(<u32 as T<'x>>::V);
//~^ ERROR: type mismatch in closure arguments
//~| ERROR: type mismatch resolving
}
22 changes: 22 additions & 0 deletions src/test/ui/closures/issue-41366.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
error[E0631]: type mismatch in closure arguments
--> $DIR/issue-41366.rs:10:5
|
LL | (&|_|()) as &dyn for<'x> Fn(<u32 as T<'x>>::V);
| ^^-----^
| | |
| | found signature of `fn(_) -> _`
| expected signature of `for<'x> fn(<u32 as T<'x>>::V) -> _`
|
= note: required for the cast to the object type `dyn for<'x> std::ops::Fn(<u32 as T<'x>>::V)`

error[E0271]: type mismatch resolving `for<'x> <[closure@$DIR/issue-41366.rs:10:7: 10:12] as std::ops::FnOnce<(<u32 as T<'x>>::V,)>>::Output == ()`
--> $DIR/issue-41366.rs:10:5
|
LL | (&|_|()) as &dyn for<'x> Fn(<u32 as T<'x>>::V);
| ^^^^^^^^ expected bound lifetime parameter 'x, found concrete lifetime
|
= note: required for the cast to the object type `dyn for<'x> std::ops::Fn(<u32 as T<'x>>::V)`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0271`.
0