Fix endless range include
#36460

aldhsu wants to merge aldhsu:fix-endless-range-include into rails:master

We do not currently have an analysis of these two commits