Skip to content

Commit e06b9bb

Browse files
Rollup merge of #154409 - scottmcm:change-try-tracking, r=TaKO8Ki
Update `try_blocks` to a new tracking issue number New tracking issue #154391 Closes #31436
2 parents 496246f + 4a31988 commit e06b9bb

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

compiler/rustc_feature/src/unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ declare_features! (
693693
/// Allows inconsistent bounds in where clauses.
694694
(unstable, trivial_bounds, "1.28.0", Some(48214)),
695695
/// Allows using `try {...}` expressions.
696-
(unstable, try_blocks, "1.29.0", Some(31436)),
696+
(unstable, try_blocks, "1.29.0", Some(154391)),
697697
/// Allows using `try bikeshed TargetType {...}` expressions.
698698
(unstable, try_blocks_heterogeneous, "1.94.0", Some(149488)),
699699
/// Allows `impl Trait` to be used inside type aliases (RFC 2515).

src/doc/unstable-book/src/language-features/try-blocks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# `try_blocks`
22

3-
The tracking issue for this feature is: [#31436]
3+
The tracking issue for this feature is: [#154391]
44

5-
[#31436]: https://github.com/rust-lang/rust/issues/31436
5+
[#154391]: https://github.com/rust-lang/rust/issues/154391
66

77
------------------------
88

@@ -14,14 +14,14 @@ block creates a new scope one can use the `?` operator in.
1414
1515
use std::num::ParseIntError;
1616
17-
let result: Result<i32, ParseIntError> = try {
17+
let result = try {
1818
"1".parse::<i32>()?
1919
+ "2".parse::<i32>()?
2020
+ "3".parse::<i32>()?
2121
};
2222
assert_eq!(result, Ok(6));
2323
24-
let result: Result<i32, ParseIntError> = try {
24+
let result = try {
2525
"1".parse::<i32>()?
2626
+ "foo".parse::<i32>()?
2727
+ "3".parse::<i32>()?

src/tools/rust-analyzer/crates/ide-db/src/generated/lints.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11576,9 +11576,9 @@ The tracking issue for this feature is: [#85731]
1157611576
label: "try_blocks",
1157711577
description: r##"# `try_blocks`
1157811578

11579-
The tracking issue for this feature is: [#31436]
11579+
The tracking issue for this feature is: [#154391]
1158011580

11581-
[#31436]: https://github.com/rust-lang/rust/issues/31436
11581+
[#154391]: https://github.com/rust-lang/rust/issues/154391
1158211582

1158311583
------------------------
1158411584

@@ -11590,14 +11590,14 @@ block creates a new scope one can use the `?` operator in.
1159011590

1159111591
use std::num::ParseIntError;
1159211592

11593-
let result: Result<i32, ParseIntError> = try {
11593+
let result = try {
1159411594
"1".parse::<i32>()?
1159511595
+ "2".parse::<i32>()?
1159611596
+ "3".parse::<i32>()?
1159711597
};
1159811598
assert_eq!(result, Ok(6));
1159911599

11600-
let result: Result<i32, ParseIntError> = try {
11600+
let result = try {
1160111601
"1".parse::<i32>()?
1160211602
+ "foo".parse::<i32>()?
1160311603
+ "3".parse::<i32>()?

tests/ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ Tests for the `#[doc(hidden)]` items.
14201420

14211421
## `tests/ui/try-block/`
14221422

1423-
`#![feature(try_blocks)]`. See [Tracking issue for `?` operator and `try` blocks (RFC 243, `question_mark` & `try_blocks` features)](https://github.com/rust-lang/rust/issues/31436).
1423+
`#![feature(try_blocks)]` & `#![feature(try_blocks_heterogeneous)]`. See [Tracking Issue for homogeneous `try_blocks`](https://github.com/rust-lang/rust/issues/154391) & [Experimental Tracking Issue for Heterogeneous Try Blocks](https://github.com/rust-lang/rust/issues/149488).
14241424

14251425
## `tests/ui/try-trait/`
14261426

tests/ui/feature-gates/feature-gate-try_blocks.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | | x
88
LL | | };
99
| |_____^
1010
|
11-
= note: see issue #31436 <https://github.com/rust-lang/rust/issues/31436> for more information
11+
= note: see issue #154391 <https://github.com/rust-lang/rust/issues/154391> for more information
1212
= help: add `#![feature(try_blocks)]` to the crate attributes to enable
1313
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1414

tests/ui/try-block/try-block-homogeneous-pre-expansion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: `try` blocks are unstable
44
LL | try {}
55
| ^^^^^^
66
|
7-
= note: see issue #31436 <https://github.com/rust-lang/rust/issues/31436> for more information
7+
= note: see issue #154391 <https://github.com/rust-lang/rust/issues/154391> for more information
88
= help: add `#![feature(try_blocks)]` to the crate attributes to enable
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010
= warning: unstable syntax can change at any point in the future, causing a hard error!

0 commit comments

Comments
 (0)