Skip to content

Commit 4b58ae0

Browse files
Mark lazy_type_alias as incomplete
1 parent 4c96822 commit 4b58ae0

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

compiler/rustc_feature/src/active.rs

+1-1
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

+1
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

+1
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

+1
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,
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)