Giter Site home page Giter Site logo

Comments (1)

ian-h-chamberlain avatar ian-h-chamberlain commented on September 24, 2024 1

I tried out the fix implemented in 0ff1e50 and while it prevents the error message in this issue, I think the completions are still partially incorrect:

$ rustc -Z 
-Z(default:                                                                (`split`))
-Zall  (options: none, all, default, generic-activity, query-provider, query-cache-…)
-Zallow-features=  (only allow the listed language features to be enabled in code (…)
-Zalways-encode-mir=  (encode MIR of all functions into the crate metadata (default…)
-Zasm-comments=  (generate comments into the assembly (may change behavior) (defaul…)
-Zassert-incr-state=  (assert that the incremental cache is in given state: either …)
-Zassume-incomplete-release=  (make cfg(version) treat the current version as incom…)
-Zbinary-dep-depinfo=  (include artifacts (sysroot, crate dependencies) used during…)
-Zbox-noalias=                         (emit noalias metadata for box (default: yes))
-Zbranch-protection=  (set options for branch target identification and pointer aut…)
-Zby                                                                     (the linker)
-Zcf-protection=                    (instrument control-flow architecture protection)
…and 216 more rows

I think this is due to the help having multiple lines in certain cases, mainly if there are multiple choices for the right-hand-side of an option, e.g.

    -Z                              split-dwarf-kind=val -- split dwarf variant (only if -Csplit-debuginfo is enabled and on relevant platform)
        (default: `split`)

        `split`: sections which do not require relocation are written into a DWARF object (`.dwo`)
                 file which is ignored by the linker
        `single`: sections which do not require relocation are written into object file but ignored
                  by the linker

I'm not sure if it makes sense to include the extra lines in the description, since it would probably get cut off anyway, so maybe just filtering out any lines not containing -Z would be sufficient.

Not sure if this is worth a new issue or this should be reopened?

from fish-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.