Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d4926b1

Browse files
Rollup merge of #114222 - compiler-errors:lazy-type-alias-is-incomplete, r=oli-obk
Mark `lazy_type_alias` as incomplete This feature is very not complete: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+label%3AF-lazy_type_alias r? types
2 parents b889598 + 4b58ae0 commit d4926b1

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

‎compiler/rustc_feature/src/active.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ declare_features! (
449449
// Allows setting the threshold for the `large_assignments` lint.
450450
(active, large_assignments, "1.52.0", Some(83518), None),
451451
/// Allow to have type alias types for inter-crate use.
452-
(active, lazy_type_alias, "1.72.0", Some(112792), None),
452+
(incomplete, lazy_type_alias, "1.72.0", Some(112792), None),
453453
/// Allows `if/while p && let q = r && ...` chains.
454454
(active, let_chains, "1.37.0", Some(53667), None),
455455
/// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.

‎tests/rustdoc/alias-reexport.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![crate_name = "foo"]
55
#![feature(lazy_type_alias)]
6+
#![allow(incomplete_features)]
67

78
extern crate alias_reexport2;
89

‎tests/rustdoc/alias-reexport2.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#![crate_name = "foo"]
55
#![feature(lazy_type_alias)]
6+
#![allow(incomplete_features)]
67

78
extern crate alias_reexport;
89

‎tests/ui/type-alias/lazy-type-alias-enum-variant.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// check-pass
33

44
#![feature(lazy_type_alias)]
5+
//~^ WARN the feature `lazy_type_alias` is incomplete and may not be safe to use
56

67
enum Enum {
78
Unit,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `lazy_type_alias` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/lazy-type-alias-enum-variant.rs:4:12
3+
|
4+
LL | #![feature(lazy_type_alias)]
5+
| ^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information
8+
= note: `#[warn(incomplete_features)]` on by default
9+
10+
warning: 1 warning emitted
11+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /