]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_interface/src/interface.rs
Rollup merge of #92519 - ChrisDenton:command-maybe-verbatim, r=dtolnay
[rust.git] / compiler / rustc_interface / src / interface.rs
index 2083526232423474f263231fe78dfbf9c8cd1cb2..e7563933c88ac97a19480dab3aca8b9b875f4624 100644 (file)
@@ -8,7 +8,7 @@
 use rustc_data_structures::sync::Lrc;
 use rustc_data_structures::OnDrop;
 use rustc_errors::registry::Registry;
-use rustc_errors::{ErrorReported, Handler};
+use rustc_errors::{ErrorGuaranteed, Handler};
 use rustc_lint::LintStore;
 use rustc_middle::ty;
 use rustc_parse::maybe_new_parser_from_source_str;
@@ -23,7 +23,7 @@
 use std::path::PathBuf;
 use std::result;
 
-pub type Result<T> = result::Result<T, ErrorReported>;
+pub type Result<T> = result::Result<T, ErrorGuaranteed>;
 
 /// Represents a compiler session.
 ///
@@ -207,6 +207,9 @@ macro_rules! error {
                                             "`values()` first argument must be a simple identifer"
                                         );
                                     }
+                                } else if args.is_empty() {
+                                    cfg.well_known_values = true;
+                                    continue 'specs;
                                 }
                             }
                         }