about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-02 16:04:35 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-02 16:47:11 +1100
commit57397de2c91bfdb6b57b83fe96d8721c12f55c98 (patch)
tree16784c90bd3160b08a1046e196b3313969503f98
parent5f4177a786500d06733d6fba71c33e15191c8cf4 (diff)
downloadrust-57397de2c91bfdb6b57b83fe96d8721c12f55c98.tar.gz
rust-57397de2c91bfdb6b57b83fe96d8721c12f55c98.zip
Fix a comment.
Compiling any part of the compiler will almost certainly require
Nightly.
-rw-r--r--compiler/rustc_log/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs
index e7b80c64184..3e43bcb3b8f 100644
--- a/compiler/rustc_log/src/lib.rs
+++ b/compiler/rustc_log/src/lib.rs
@@ -23,10 +23,10 @@
 //! }
 //! ```
 //!
-//! Now `LOG=debug cargo run` will run your minimal main.rs and show
+//! Now `LOG=debug cargo +nightly run` will run your minimal main.rs and show
 //! rustc's debug logging. In a workflow like this, one might also add
 //! `std::env::set_var("LOG", "debug")` to the top of main so that `cargo
-//! run` by itself is sufficient to get logs.
+//! +nightly run` by itself is sufficient to get logs.
 //!
 //! The reason rustc_log is a tiny separate crate, as opposed to exposing the
 //! same things in rustc_driver only, is to enable the above workflow. If you