summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2021-01-28 09:24:55 +0100
committerest31 <MTest31@outlook.com>2021-01-29 07:59:19 +0100
commitd8b5745d4646e7cb84e8bd6491556658d0578e8b (patch)
tree935a72bbc4c12beacd1df4cdc2da9303013cde84 /compiler/rustc_interface
parent14aa12fcc2ebee6edfd6092a51122a6a6ba78d4d (diff)
downloadrust-d8b5745d4646e7cb84e8bd6491556658d0578e8b.tar.gz
rust-d8b5745d4646e7cb84e8bd6491556658d0578e8b.zip
Treat nightlies for a version as complete
This commit makes cfg(version) treat the nightlies
for version 1.n.0 as 1.n.0, even though that nightly
version might not have all stabilizations and features
of the released 1.n.0. This is done for greater
convenience for people who want to test a newly
stabilized feature on nightly.

For users who wish to pin nightlies, this commit adds
a -Z assume-incomplete-release option that they can
enable if there are any issues due to this change.
Diffstat (limited to 'compiler/rustc_interface')
-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 55d521a9b5f..762a8da632e 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -538,6 +538,7 @@ fn test_debugging_options_tracking_hash() {
     // This list is in alphabetical order.
     tracked!(allow_features, Some(vec![String::from("lang_items")]));
     tracked!(always_encode_mir, true);
+    tracked!(assume_incomplete_release, true);
     tracked!(asm_comments, true);
     tracked!(binary_dep_depinfo, true);
     tracked!(chalk, true);