racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
447 stars 94 forks source link

Requires that provide #%app macros are considered unused #438

Closed jackfirth closed 3 years ago

jackfirth commented 3 years ago

The "remove unused requires" tool breaks programs like this:

#lang racket

(require fancy-app)

(map (+ _ 1) (list 1 2 3))

I would like for the tool to not remove modules that provide #%app macros. Modules providing other kinds of implicitly-inserted macros like #%datum probably have the same issue, but #%app macros are by far the most common occurrence of this problem for me.