fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 2 --> $DIR/repr-transparent-non-exhaustive.rs:37:22 3 | 4LL | pub struct T5(Sized, Private); 5 | ^^^^^^^ 6 | 7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 8 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 9 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. 10note: the lint level is defined here 11 --> $DIR/repr-transparent-non-exhaustive.rs:1:9 12 | 13LL | #![deny(repr_transparent_external_private_fields)] 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 16error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 17 --> $DIR/repr-transparent-non-exhaustive.rs:42:22 18 | 19LL | pub struct T6(Sized, NonExhaustive); 20 | ^^^^^^^^^^^^^ 21 | 22 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 23 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 24 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 25 26error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 27 --> $DIR/repr-transparent-non-exhaustive.rs:47:22 28 | 29LL | pub struct T7(Sized, NonExhaustiveEnum); 30 | ^^^^^^^^^^^^^^^^^ 31 | 32 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 33 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 34 = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 35 36error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 37 --> $DIR/repr-transparent-non-exhaustive.rs:52:22 38 | 39LL | pub struct T8(Sized, NonExhaustiveVariant); 40 | ^^^^^^^^^^^^^^^^^^^^ 41 | 42 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 43 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 44 = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 45 46error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 47 --> $DIR/repr-transparent-non-exhaustive.rs:57:22 48 | 49LL | pub struct T9(Sized, InternalIndirection<Private>); 50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 51 | 52 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 53 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 54 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. 55 56error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 57 --> $DIR/repr-transparent-non-exhaustive.rs:62:23 58 | 59LL | pub struct T10(Sized, InternalIndirection<NonExhaustive>); 60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 61 | 62 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 63 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 64 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 65 66error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 67 --> $DIR/repr-transparent-non-exhaustive.rs:67:23 68 | 69LL | pub struct T11(Sized, InternalIndirection<NonExhaustiveEnum>); 70 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 71 | 72 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 73 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 74 = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 75 76error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 77 --> $DIR/repr-transparent-non-exhaustive.rs:72:23 78 | 79LL | pub struct T12(Sized, InternalIndirection<NonExhaustiveVariant>); 80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 81 | 82 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 83 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 84 = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 85 86error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 87 --> $DIR/repr-transparent-non-exhaustive.rs:77:23 88 | 89LL | pub struct T13(Sized, ExternalIndirection<Private>); 90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 91 | 92 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 93 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 94 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. 95 96error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 97 --> $DIR/repr-transparent-non-exhaustive.rs:82:23 98 | 99LL | pub struct T14(Sized, ExternalIndirection<NonExhaustive>); 100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 101 | 102 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 103 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 104 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 105 106error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 107 --> $DIR/repr-transparent-non-exhaustive.rs:87:23 108 | 109LL | pub struct T15(Sized, ExternalIndirection<NonExhaustiveEnum>); 110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 111 | 112 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 113 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 114 = note: this enum contains `NonExhaustiveEnum`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 115 116error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 117 --> $DIR/repr-transparent-non-exhaustive.rs:92:23 118 | 119LL | pub struct T16(Sized, ExternalIndirection<NonExhaustiveVariant>); 120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 121 | 122 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 123 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 124 = note: this enum contains `NonExhaustiveVariant`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 125 126error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 127 --> $DIR/repr-transparent-non-exhaustive.rs:97:16 128 | 129LL | pub struct T17(NonExhaustive, Sized); 130 | ^^^^^^^^^^^^^ 131 | 132 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 133 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 134 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 135 136error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 137 --> $DIR/repr-transparent-non-exhaustive.rs:102:31 138 | 139LL | pub struct T18(NonExhaustive, NonExhaustive); 140 | ^^^^^^^^^^^^^ 141 | 142 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 143 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 144 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 145 146error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 147 --> $DIR/repr-transparent-non-exhaustive.rs:107:31 148 | 149LL | pub struct T19(NonExhaustive, Private); 150 | ^^^^^^^ 151 | 152 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 153 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 154 = note: this struct contains `Private`, which contains private fields, and makes it not a breaking change to become non-zero-sized in the future. 155 156error: zero-sized fields in `repr(transparent)` cannot contain external non-exhaustive types 157 --> $DIR/repr-transparent-non-exhaustive.rs:112:32 158 | 159LL | pub struct T19Flipped(Private, NonExhaustive); 160 | ^^^^^^^^^^^^^ 161 | 162 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 163 = note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586> 164 = note: this struct contains `NonExhaustive`, which is marked with `#[non_exhaustive]`, and makes it not a breaking change to become non-zero-sized in the future. 165 166error: aborting due to 16 previous errors 167