This repository was archived by the owner on May 23, 2024. It is now read-only.
File tree 6 files changed +67
-0
lines changed
6 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ #![ unstable( feature = "humans" , issue = "none" ) ]
2
+ #![ feature( staged_api) ]
3
+ struct Foo ;
4
+ impl Foo {
5
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
6
+ const fn gated ( ) -> u32 {
7
+ 42
8
+ }
9
+ }
10
+
11
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ yield || for _ in 0 { }
3
+ }
Original file line number Diff line number Diff line change
1
+ trait CollectionFamily {
2
+ type Member < T > ;
3
+ }
4
+
5
+ fn floatify ( ) {
6
+ Family as CollectionFamily
7
+ }
8
+
9
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ #![ feature( impl_trait_in_bindings) ]
2
+
3
+ struct Bug {
4
+ V1 : [ ( ) ; {
5
+ let f: impl core:: future:: Future < Output = u8 > = async { 1 } ;
6
+ 1
7
+ } ] ,
8
+ }
9
+
10
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ #![ feature( type_alias_impl_trait) ]
2
+ #![ feature( impl_trait_in_bindings) ]
3
+
4
+ type F = impl core:: future:: Future < Output = u8 > ;
5
+
6
+ struct Bug {
7
+ V1 : [ ( ) ; {
8
+ fn concrete_use ( ) -> F {
9
+ async { }
10
+ }
11
+ let f: F = async { 1 } ;
12
+ 1
13
+ } ] ,
14
+ }
15
+
16
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ rustc --crate-type=lib -Z mir-opt-level=1 -Z new-llvm-pass-manager=yes -Z unsound-mir-opts=yes -Z verify-llvm-ir=yes -Z validate-mir=yes -Z polonius=yes -Z polymorphize=yes -C debuginfo=2 -C opt-level=1 - << EOF
4
+ #![feature(no_core, lang_items)]
5
+ #![no_core]
6
+
7
+ #[lang = "sized"]
8
+ trait Sized {}
9
+
10
+ #[lang = "copy"]
11
+ trait Copy {}
12
+
13
+ #[no_mangle]
14
+ fn test() {
15
+ &1;
16
+ }
17
+
18
+ EOF
You can’t perform that action at this time.
0 commit comments