Skip to content

Incorrect description of environment variables in rustc man pages #59504

Description

@mulkieran

Here it is:

ENVIRONMENT
       Some of these affect the output of the compiler,  while  others  affect
       programs which link to the standard library.

       RUST_TEST_THREADS
              The  test  framework  Rust  provides executes tests in parallel.
              This variable sets the maximum number of threads used  for  this
              purpose.  This  setting  is  overridden  by  the  --test-threads
              option.

       RUST_TEST_NOCAPTURE
              If set to a value other than "0", a synonym for the  --nocapture
              flag.

       RUST_MIN_STACK
              Sets the minimum stack size for new threads.

       RUST_BACKTRACE
              If  set  to  a value different than "0", produces a backtrace in
              the output of a program which panics.

I believe that the line here is incorrect

"Some of these affect the output of the compiler, while others affect
programs which link to the standard library."

since I believe none of these variables affect the output of the compiler.

Why is this a problem? Well, the logical reader might say to themselves:
" "Some" means at least 1. It makes very little sense for the top three to affect the output of the compiler. Therefore it must be the bottom one, RUST_BACKTRACE, which affects the output of the compiler."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions