about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2021-01-31 15:41:17 -0800
committerCamelid <camelidcamel@gmail.com>2021-01-31 15:41:17 -0800
commit8b52cdc942ef590fd4576a5d9b2934c764f25c7b (patch)
tree73066c43bbed7874feba6e2d8d0637f964101ce0 /compiler
parent496836acf74502ed5ae0e20b6e6bc720d7b72ae6 (diff)
downloadrust-8b52cdc942ef590fd4576a5d9b2934c764f25c7b.tar.gz
rust-8b52cdc942ef590fd4576a5d9b2934c764f25c7b.zip
Update outdated comment
The highest-priority item is the *first* in the list, not the last.
See [this code][1] for more.

[this code]: https://github.com/rust-lang/rust/blob/0e63af5da3400ace48a0345117980473fd21ad73/compiler/rustc_mir_build/src/build/matches/mod.rs#L1334-L1335
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_mir_build/src/build/matches/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_build/src/build/matches/mod.rs b/compiler/rustc_mir_build/src/build/matches/mod.rs
index 6b04c53ec07..90fcee075b5 100644
--- a/compiler/rustc_mir_build/src/build/matches/mod.rs
+++ b/compiler/rustc_mir_build/src/build/matches/mod.rs
@@ -1226,9 +1226,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
     /// this point, the input candidates have been fully simplified,
     /// and so we know that all remaining match-pairs require some
     /// sort of test. To decide what test to perform, we take the highest
-    /// priority candidate (last one in the list) and extract the
-    /// first match-pair from the list. From this we decide what kind
-    /// of test is needed using [`Builder::test`], defined in the
+    /// priority candidate (the first one in the list, as of January 2021)
+    /// and extract the first match-pair from the list. From this we decide
+    /// what kind of test is needed using [`Builder::test`], defined in the
     /// [`test` module](mod@test).
     ///
     /// *Note:* taking the first match pair is somewhat arbitrary, and