Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e087871
Make the GATS self outlives error take into GATs in the inputs
jackh726 Aug 10, 2022
40dcf89
suggest adding a missing semicolon before an item
TaKO8Ki Aug 15, 2022
ed27a4c
add the armv4t-none-eabi target
corwinkuiper Aug 16, 2022
f77a545
add target armv4t-none-eabi
corwinkuiper Aug 16, 2022
ba72729
Use separate infcx to solve obligations during negative coherence
compiler-errors Aug 20, 2022
12386da
bootstrap: Remove some unused fields from the tool_extended macro.
ehuss Aug 21, 2022
3b1b35b
Remove rustfmt from publish_toolstate
ehuss Aug 21, 2022
45e2fc3
Remove Steve from toolstate failure notices.
ehuss Aug 21, 2022
757913d
bootstrap: Don't allow rustfmt to fail on dist.
ehuss Aug 21, 2022
d7ee421
fix ICE with extra-const-ub-checks
RalfJung Aug 22, 2022
add04f9
tidy: remove crossbeam-utils
ehuss Aug 22, 2022
b562f95
Refactor part of codegen_call_terminator
eholk Aug 22, 2022
3d2b61c
Remove out-of-context comment in `mem::MaybeUninit` documentation
thinety Aug 22, 2022
e568cb4
Rollup merge of #100382 - jackh726:gat-self-outlives-input, r=compile…
matthiaskrgr Aug 23, 2022
54d0f50
Rollup merge of #100565 - TaKO8Ki:suggest-adding-missing-semicolon-be…
matthiaskrgr Aug 23, 2022
44aa866
Rollup merge of #100641 - corwinkuiper:add-armv4t-target, r=oli-obk
matthiaskrgr Aug 23, 2022
579dfa4
Rollup merge of #100789 - compiler-errors:issue-99662, r=spastorino
matthiaskrgr Aug 23, 2022
21d8f48
Rollup merge of #100832 - ehuss:bootstrap-cleanup, r=jyn514
matthiaskrgr Aug 23, 2022
f5fcac9
Rollup merge of #100861 - RalfJung:const-ice, r=oli-obk
matthiaskrgr Aug 23, 2022
8332f65
Rollup merge of #100862 - ehuss:tidy-crossbeam, r=Mark-Simulacrum
matthiaskrgr Aug 23, 2022
234e0f2
Rollup merge of #100887 - eholk:codegen_call_terminator-cleanup, r=fe…
matthiaskrgr Aug 23, 2022
683a08a
Rollup merge of #100893 - thinety:master, r=scottmcm
matthiaskrgr Aug 23, 2022
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
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/wfcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ fn check_gat_where_clauses(tcx: TyCtxt<'_>, associated_items: &[hir::TraitItemRe
tcx,
param_env,
item_hir_id,
sig.output(),
sig.inputs_and_output,
// We also assume that all of the function signature's parameter types
// are well formed.
&sig.inputs().iter().copied().collect(),
Expand Down
13 changes: 13 additions & 0 deletions src/test/ui/generic-associated-types/self-outlives-lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,17 @@ trait StaticReturnAndTakes<'a> {
fn bar<'b>(&self, arg: Self::Y<'b>);
}

// We require bounds when the GAT appears in the inputs
trait Input {
type Item<'a>;
//~^ missing required
fn takes_item<'a>(&'a self, item: Self::Item<'a>);
}

// We don't require bounds when the GAT appears in the where clauses
trait WhereClause {
type Item<'a>;
fn takes_item<'a>(&'a self) where Self::Item<'a>: ;
}

fn main() {}
13 changes: 12 additions & 1 deletion src/test/ui/generic-associated-types/self-outlives-lint.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,16 @@ LL | type Fut<'out>;
= note: this bound is currently required to ensure that impls have maximum flexibility
= note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information

error: aborting due to 15 previous errors
error: missing required bound on `Item`
--> $DIR/self-outlives-lint.rs:215:5
|
LL | type Item<'a>;
| ^^^^^^^^^^^^^-
| |
| help: add the required where clause: `where Self: 'a`
|
= note: this bound is currently required to ensure that impls have maximum flexibility
= note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information

error: aborting due to 16 previous errors