Auto merge of #117825 - fee1-dead-contrib:corefx, r=petrochenkov
Reenable effects in libcore With #116670, #117531, and #117171, I think we would be comfortable with re-enabling the effects feature for more testing in libcore. r? `@oli-obk` cc `@fmease` cc #110395
This commit is contained in:
commit
e6dade96f4
@ -219,6 +219,7 @@
|
|||||||
#![feature(doc_cfg)]
|
#![feature(doc_cfg)]
|
||||||
#![feature(doc_cfg_hide)]
|
#![feature(doc_cfg_hide)]
|
||||||
#![feature(doc_notable_trait)]
|
#![feature(doc_notable_trait)]
|
||||||
|
#![feature(effects)]
|
||||||
#![feature(exhaustive_patterns)]
|
#![feature(exhaustive_patterns)]
|
||||||
#![feature(extern_types)]
|
#![feature(extern_types)]
|
||||||
#![feature(fundamental)]
|
#![feature(fundamental)]
|
||||||
|
@ -3,9 +3,13 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
i8::checked_sub::<true>(42, 43);
|
i8::checked_sub::<true>(42, 43);
|
||||||
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
|
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
|
i8::checked_sub::<false>(42, 43);
|
||||||
|
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
}
|
}
|
||||||
|
|
||||||
const FOO: () = {
|
const FOO: () = {
|
||||||
i8::checked_sub::<false>(42, 43);
|
i8::checked_sub::<false>(42, 43);
|
||||||
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
|
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
|
i8::checked_sub::<true>(42, 43);
|
||||||
|
//~^ ERROR: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,19 @@
|
|||||||
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
--> $DIR/effect_param.rs:9:9
|
--> $DIR/effect_param.rs:11:9
|
||||||
|
|
|
|
||||||
LL | i8::checked_sub::<false>(42, 43);
|
LL | i8::checked_sub::<false>(42, 43);
|
||||||
| ^^^^^^^^^^^--------- help: remove these generics
|
| ^^^^^^^^^^^--------- help: remove these generics
|
||||||
| |
|
| |
|
||||||
| expected 0 generic arguments
|
| expected 0 generic arguments
|
||||||
|
|
||||||
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
|
--> $DIR/effect_param.rs:13:9
|
||||||
|
|
|
||||||
|
LL | i8::checked_sub::<true>(42, 43);
|
||||||
|
| ^^^^^^^^^^^-------- help: remove these generics
|
||||||
|
| |
|
||||||
|
| expected 0 generic arguments
|
||||||
|
|
||||||
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
--> $DIR/effect_param.rs:4:9
|
--> $DIR/effect_param.rs:4:9
|
||||||
|
|
|
|
||||||
@ -14,6 +22,14 @@ LL | i8::checked_sub::<true>(42, 43);
|
|||||||
| |
|
| |
|
||||||
| expected 0 generic arguments
|
| expected 0 generic arguments
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
||||||
|
--> $DIR/effect_param.rs:6:9
|
||||||
|
|
|
||||||
|
LL | i8::checked_sub::<false>(42, 43);
|
||||||
|
| ^^^^^^^^^^^--------- help: remove these generics
|
||||||
|
| |
|
||||||
|
| expected 0 generic arguments
|
||||||
|
|
||||||
|
error: aborting due to 4 previous errors
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0107`.
|
For more information about this error, try `rustc --explain E0107`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user