Skip to content

Commit 4bb8346

Browse files
committed
is_range_literal: leave FIXME
1 parent dd7f493 commit 4bb8346

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/librustc/hir/mod.rs

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

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

0 commit comments

Comments
 (0)