about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-11-19 03:00:46 +0000
committerbors <bors@rust-lang.org>2021-11-19 03:00:46 +0000
commitce3f3a5ffa7452131cde06c003cc2eaa7c729bfb (patch)
tree6c0492edfde76c9496cf09fcc6500f0c0f59fdda /compiler/rustc_interface/src/tests.rs
parent548c1088eff51fd92ad94d56b8c5b2d48b7088f0 (diff)
parent6ad626fb5c79bbaafcf533780e30b03d73737c57 (diff)
downloadrust-ce3f3a5ffa7452131cde06c003cc2eaa7c729bfb.tar.gz
rust-ce3f3a5ffa7452131cde06c003cc2eaa7c729bfb.zip
Auto merge of #90329 - nbdd0121:typeck, r=nagisa
Try all stable method candidates first before trying unstable ones

Currently we try methods in this order in each step:
* Stable by value
* Unstable by value
* Stable autoref
* Unstable autoref
* ...

This PR changes it to first try pick methods without any unstable candidates, and if none is found, try again to pick unstable ones.

Fix #90320
CC #88971, hopefully would allow us to rename the "unstable_*" methods for integer impls back.

`@rustbot` label T-compiler T-libs-api
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 6b5c79a2d5d..ab12c936710 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -752,6 +752,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(panic_abort_tests, true);
     tracked!(panic_in_drop, PanicStrategy::Abort);
     tracked!(partially_uninit_const_threshold, Some(123));
+    tracked!(pick_stable_methods_before_any_unstable, false);
     tracked!(plt, Some(true));
     tracked!(polonius, true);
     tracked!(precise_enum_drop_elaboration, false);