-
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 #70617 - Centril:rollup-063ycso, r=Centril
Rollup of 9 pull requests Successful merges: - #69784 (Optimize strip_prefix and strip_suffix with str patterns) - #70548 (Add long error code for error E0226) - #70555 (resolve, `try_resolve_as_non_binding`: use `delay_span_bug` due to parser recovery) - #70561 (remove obsolete comment) - #70562 (infer array len from pattern) - #70585 (std: Fix over-aligned allocations on wasm32-wasi) - #70587 (Add `Rust` to the code snippet) - #70588 (Fix incorrect documentation for `str::{split_at, split_at_mut}`) - #70613 (more clippy fixes) Failed merges: r? @ghost
- Loading branch information
Showing
39 changed files
with
470 additions
and
196 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
More than one explicit lifetime bound was used on a trait object. | ||
|
||
Example of erroneous code: | ||
|
||
```compile_fail,E0226 | ||
trait Foo {} | ||
type T<'a, 'b> = dyn Foo + 'a + 'b; // error: Trait object `arg` has two | ||
// lifetime bound, 'a and 'b. | ||
``` | ||
|
||
Here `T` is a trait object with two explicit lifetime bounds, 'a and 'b. | ||
|
||
Only a single explicit lifetime bound is permitted on trait objects. | ||
To fix this error, consider removing one of the lifetime bounds: | ||
|
||
``` | ||
trait Foo {} | ||
type T<'a> = dyn Foo + 'a; | ||
``` |
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
Oops, something went wrong.