Skip to content

Commit db4cc3b

Browse files
committed
is_range_literal: leave FIXME
1 parent 80a83ea commit db4cc3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc/hir/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,9 @@ impl fmt::Debug for Expr {
15981598

15991599
/// Checks if the specified expression is a built-in range literal.
16001600
/// (See: `LoweringContext::lower_expr()`).
1601+
///
1602+
/// FIXME(#60607): This function is a hack. If and when we have `QPath::Lang(...)`,
1603+
/// we can use that instead as simpler, more reliable mechanism, as opposed to using `SourceMap`.
16011604
pub fn is_range_literal(sm: &SourceMap, expr: &Expr) -> bool {
16021605
// Returns whether the given path represents a (desugared) range,
16031606
// either in std or core, i.e. has either a `::std::ops::Range` or

0 commit comments

Comments
 (0)