-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #64368 - Centril:rollup-4s8ko6f, r=Centril
Rollup of 6 pull requests Successful merges: - #64060 (Improve hygiene of `alloc::format!`) - #64072 (Replace file_stem by file_name in rustdoc markdown) - #64085 (Tweak unsatisfied HRTB errors) - #64129 (vxWorks: set DEFAULT_MIN_STACK_SIZE to 256K and use min_stack to pass initial stack size to rtpSpawn) - #64188 (rustc: Allow the cdylib crate type with wasm32-wasi) - #64349 (documentation for AtomicPtr CAS operations) Failed merges: r? @ghost
- Loading branch information
Showing
19 changed files
with
162 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
error: implementation of `Foo` is not general enough | ||
--> $DIR/auto-trait-regions.rs:30:5 | ||
| | ||
LL | auto trait Foo {} | ||
| ----------------- trait `Foo` defined here | ||
... | ||
LL | assert_foo(gen); | ||
| ^^^^^^^^^^ | ||
| ^^^^^^^^^^ implementation of `Foo` is not general enough | ||
| | ||
= note: `Foo` would have to be implemented for the type `&'0 OnlyFooIfStaticRef`, for any lifetime `'0` | ||
= note: but `Foo` is actually implemented for the type `&'1 OnlyFooIfStaticRef`, for some specific lifetime `'1` | ||
= note: `Foo` would have to be implemented for the type `&'0 OnlyFooIfStaticRef`, for any lifetime `'0`... | ||
= note: ...but `Foo` is actually implemented for the type `&'1 OnlyFooIfStaticRef`, for some specific lifetime `'1` | ||
|
||
error: implementation of `Foo` is not general enough | ||
--> $DIR/auto-trait-regions.rs:48:5 | ||
| | ||
LL | auto trait Foo {} | ||
| ----------------- trait `Foo` defined here | ||
... | ||
LL | assert_foo(gen); | ||
| ^^^^^^^^^^ | ||
| ^^^^^^^^^^ implementation of `Foo` is not general enough | ||
| | ||
= note: `Foo` would have to be implemented for the type `A<'0, '1>`, for any two lifetimes `'0` and `'1` | ||
= note: but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2` | ||
= note: `Foo` would have to be implemented for the type `A<'0, '1>`, for any two lifetimes `'0` and `'1`... | ||
= note: ...but `Foo` is actually implemented for the type `A<'_, '2>`, for some specific lifetime `'2` | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fn main() { | ||
test::<FooS>(&mut 42); //~ ERROR implementation of `Foo` is not general enough | ||
} | ||
|
||
trait Foo<'a> {} | ||
|
||
struct FooS<'a> { | ||
data: &'a mut u32, | ||
} | ||
|
||
impl<'a, 'b: 'a> Foo<'b> for FooS<'a> {} | ||
|
||
fn test<'a, F>(data: &'a mut u32) where F: for<'b> Foo<'b> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
error: implementation of `Foo` is not general enough | ||
--> $DIR/due-to-where-clause.rs:2:5 | ||
| | ||
LL | test::<FooS>(&mut 42); | ||
| ^^^^^^^^^^^^ doesn't satisfy where-clause | ||
... | ||
LL | trait Foo<'a> {} | ||
| ---------------- trait `Foo` defined here | ||
... | ||
LL | fn test<'a, F>(data: &'a mut u32) where F: for<'b> Foo<'b> {} | ||
| ------------------------------------------------------------- due to a where-clause on `test`... | ||
| | ||
= note: ...`FooS<'_>` must implement `Foo<'0>`, for any lifetime `'0`... | ||
= note: ...but `FooS<'_>` actually implements `Foo<'1>`, for some specific lifetime `'1` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
error: implementation of `Deserialize` is not general enough | ||
--> $DIR/hrtb-cache-issue-54302.rs:19:5 | ||
| | ||
LL | trait Deserialize<'de> {} | ||
| ------------------------- trait `Deserialize` defined here | ||
... | ||
LL | assert_deserialize_owned::<&'static str>(); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Deserialize` is not general enough | ||
| | ||
= note: `&'static str` must implement `Deserialize<'0>`, for any lifetime `'0` | ||
= note: but `&str` actually implements `Deserialize<'1>`, for some specific lifetime `'1` | ||
= note: `&'static str` must implement `Deserialize<'0>`, for any lifetime `'0`... | ||
= note: ...but `&str` actually implements `Deserialize<'1>`, for some specific lifetime `'1` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
error: implementation of `Stream` is not general enough | ||
--> $DIR/issue-30786.rs:108:22 | ||
| | ||
LL | let map = source.map(|x: &_| x); | ||
| ^^^ | ||
LL | / pub trait Stream { | ||
LL | | type Item; | ||
LL | | fn next(self) -> Option<Self::Item>; | ||
LL | | } | ||
| |_- trait `Stream` defined here | ||
... | ||
LL | let map = source.map(|x: &_| x); | ||
| ^^^ implementation of `Stream` is not general enough | ||
| | ||
= note: `Stream` would have to be implemented for the type `&'0 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for any lifetime `'0` | ||
= note: but `Stream` is actually implemented for the type `&'1 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for some specific lifetime `'1` | ||
= note: `Stream` would have to be implemented for the type `&'0 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for any lifetime `'0`... | ||
= note: ...but `Stream` is actually implemented for the type `&'1 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for some specific lifetime `'1` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.