We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7f493 commit 4bb8346Copy full SHA for 4bb8346
src/librustc/hir/mod.rs
@@ -1566,6 +1566,9 @@ impl fmt::Debug for Expr {
1566
1567
/// Checks if the specified expression is a built-in range literal.
1568
/// (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`.
1572
pub fn is_range_literal(sm: &SourceMap, expr: &Expr) -> bool {
1573
// Returns whether the given path represents a (desugared) range,
1574
// either in std or core, i.e. has either a `::std::ops::Range` or
0 commit comments