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 8 pull requests #90165

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4333091
Update E0637 description to mention `&` w/o an explicit lifetime name
JohnTitor Oct 15, 2021
d2470e7
rustc_ast: Turn `MutVisitor::token_visiting_enabled` into a constant
petrochenkov Oct 17, 2021
7581bae
Fix const qualification when executed after promotion
tmiasko Oct 19, 2021
21d02bf
Add a regression test for issue-83479
JohnTitor Oct 20, 2021
396a4f4
Increase `ROOT_ENTRY_LIMIT` to 1331
JohnTitor Oct 20, 2021
6469fba
Trait objects
BoxyUwU Oct 20, 2021
a81e489
Return pos impl trait
BoxyUwU Oct 20, 2021
83a1834
Wfness
BoxyUwU Oct 20, 2021
8f23779
Inference
BoxyUwU Oct 20, 2021
7a8bd2d
add fixme
BoxyUwU Oct 20, 2021
c75d8cb
Ordering
BoxyUwU Oct 20, 2021
e7a9e82
*dust dust*
BoxyUwU Oct 20, 2021
74c6636
Verify that only NeedsNonConstDrop expects promoteds
tmiasko Oct 21, 2021
ab44e46
Add test for issue #78561
samlich Oct 20, 2021
d50832b
triagebot: Treat `I-*nominated` like `I-nominated`
joshtriplett Oct 21, 2021
04c1ec5
Clarify undefined behaviour for binary heap, btree and hashset
Wilfred Jul 28, 2021
a1cf430
Rollup merge of #87537 - Wilfred:improve-min-heap-docs, r=Mark-Simula…
matthiaskrgr Oct 22, 2021
42e4846
Rollup merge of #89922 - JohnTitor:update-e0637, r=jackh726
matthiaskrgr Oct 22, 2021
fd1a3c9
Rollup merge of #89991 - petrochenkov:visitok2, r=jackh726
matthiaskrgr Oct 22, 2021
089f754
Rollup merge of #90069 - tmiasko:promoted-const-qualif, r=oli-obk
matthiaskrgr Oct 22, 2021
1b1fa74
Rollup merge of #90078 - JohnTitor:test-83479, r=Mark-Simulacrum
matthiaskrgr Oct 22, 2021
4998ce1
Rollup merge of #90114 - BoxyUwU:cg_defaults_tests, r=lcnr
matthiaskrgr Oct 22, 2021
f80d02b
Rollup merge of #90115 - samlich:test-issue-78561, r=oli-obk
matthiaskrgr Oct 22, 2021
d3b9a1a
Rollup merge of #90129 - joshtriplett:triagebot-nominated, r=Mark-Sim…
matthiaskrgr Oct 22, 2021
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 a regression test for issue-83479
  • Loading branch information
JohnTitor committed Oct 20, 2021
commit 21d02bf132e58a1ea04f0804140faed329494f26
16 changes: 16 additions & 0 deletions src/test/ui/query-system/issue-83479.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#![feature(type_alias_impl_trait)]

type PairCoupledTypes: Trait<
//~^ ERROR: bounds on `type`s in this context have no effect
//~| ERROR: cannot find trait `Trait` in this scope
[u32; {
static FOO: usize; //~ ERROR: free static item without body
}],
> = impl Trait<
//~^ ERROR: cannot find trait `Trait` in this scope
[u32; {
static FOO: usize; //~ ERROR: free static item without body
}],
>;

fn main() {}
44 changes: 44 additions & 0 deletions src/test/ui/query-system/issue-83479.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
error: bounds on `type`s in this context have no effect
--> $DIR/issue-83479.rs:3:24
|
LL | type PairCoupledTypes: Trait<
| ________________________^
LL | |
LL | |
LL | | [u32; {
LL | | static FOO: usize;
LL | | }],
LL | | > = impl Trait<
| |_^

error: free static item without body
--> $DIR/issue-83479.rs:7:9
|
LL | static FOO: usize;
| ^^^^^^^^^^^^^^^^^-
| |
| help: provide a definition for the static: `= <expr>;`

error: free static item without body
--> $DIR/issue-83479.rs:12:9
|
LL | static FOO: usize;
| ^^^^^^^^^^^^^^^^^-
| |
| help: provide a definition for the static: `= <expr>;`

error[E0405]: cannot find trait `Trait` in this scope
--> $DIR/issue-83479.rs:3:24
|
LL | type PairCoupledTypes: Trait<
| ^^^^^ not found in this scope

error[E0405]: cannot find trait `Trait` in this scope
--> $DIR/issue-83479.rs:9:10
|
LL | > = impl Trait<
| ^^^^^ not found in this scope

error: aborting due to 5 previous errors

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