rust/src/test
bors 6af388b250 Auto merge of #68847 - ecstatic-morse:const-impl, r=oli-obk
Allow trait methods to be called on concrete types in a const context

This partially implements [RFC 2632](https://github.com/rust-lang/rfcs/pull/2632) by const-checking methods inside an `impl const` block and allowing those methods to be called on concrete types. Calling trait methods on type parameters in a const context is not yet allowed. Implementing this will require much more work. Since we are only concerned with methods on concrete types, we are able to take advantage of the machinery in `Instance::resolve`, which is doing most of the work.

This also propagates `#[rustc_const_unstable]` from parent items to child items, making that attribute behave like `#[stable]` and `#[unstable]` do. This allows trait methods to be marked as unstably const.

cc #67792 #57563
cc @rust-lang/wg-const-eval
r? @oli-obk
2020-02-20 08:41:17 +00:00
..
assembly
auxiliary Auto merge of #68452 - msizanoen1:riscv-abi, r=nagisa,eddyb 2020-02-08 18:10:48 +00:00
codegen Add support for new pass manager 2020-02-12 15:34:16 +01:00
codegen-units Make drop-glue take advantage of -Zshare-generics. 2020-01-23 13:15:15 +01:00
compile-fail Diagnostics should not end with a full stop 2020-01-12 15:37:50 +00:00
debuginfo Ignore GDB versions with broken str printing. 2020-02-16 17:49:45 -07:00
incremental Add #[rustc_args_required_const] to simd_shuffle tests 2020-02-18 23:36:09 -08:00
mir-opt suspend -> yield 2020-02-16 13:08:36 +01:00
pretty parser: unify item list parsing. 2020-02-13 15:16:29 +01:00
run-fail Add a resume type parameter to Generator 2020-02-02 13:20:57 +01:00
run-make Auto merge of #67878 - Others:opt-3, r=Mark-Simulacrum 2020-01-31 00:03:55 +00:00
run-make-fulldeps Rollup merge of #69146 - matthewjasper:literal-qualif, r=eddyb 2020-02-18 22:16:23 +01:00
run-pass-valgrind
rustdoc Record proc macro harness order for use during metadata deserialization 2020-02-15 15:48:36 -05:00
rustdoc-js Add tests for struct variant field in search 2020-02-02 19:18:31 +01:00
rustdoc-js-std
rustdoc-ui --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
rustfix
ui Auto merge of #68847 - ecstatic-morse:const-impl, r=oli-obk 2020-02-20 08:41:17 +00:00
ui-fulldeps Rename FunctionRetTy to FnRetTy 2020-02-17 11:24:29 +09:00
COMPILER_TESTS.md