tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Colin :emacs: :arch: :rust: (fosskers@fosstodon.org)'s status on Friday, 16-Dec-2022 09:50:28 CET Colin :emacs: :arch: :rust: Colin :emacs: :arch: :rust:
    • Ekaitz Zárraga 👹

    @ekaitz_zarraga I'd love such a feature.

    Currently the compiler warns about unused functions and arguments (i.e. dead code), but it doesn't warn about unused imports.

    In conversation Friday, 16-Dec-2022 09:50:28 CET from fosstodon.org permalink
    • Luis Felipe (luis_felipe@mastodon.online)'s status on Saturday, 17-Dec-2022 17:16:49 CET Luis Felipe Luis Felipe
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga Yes, please 🙂

      I've been wanting this since forever.

      In conversation Saturday, 17-Dec-2022 17:16:49 CET permalink
    • Luis Felipe (luis_felipe@mastodon.online)'s status on Sunday, 18-Dec-2022 01:48:47 CET Luis Felipe Luis Felipe
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga I have no idea 😅

      In conversation Sunday, 18-Dec-2022 01:48:47 CET permalink
    • Colin :emacs: :arch: :rust: (fosskers@fosstodon.org)'s status on Monday, 19-Dec-2022 13:35:11 CET Colin :emacs: :arch: :rust: Colin :emacs: :arch: :rust:
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga Well, the compiler is already doing some sort of check for all the symbols in the file to see what's being used and what isn't (in the case of `unused-variable` and `unused-toplevel`). So adding the new warning would be a matter of determining all the symbols brought in by each import, comparing that against the symbols used in the code, and then warning about any import whose symbol list had no matches in the current file.

      But don't forget about shadowing!

      In conversation Monday, 19-Dec-2022 13:35:11 CET permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.