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