diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-22 20:55:27 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-23 13:11:15 +0100 |
| commit | 4bb83468a202c7402de529199dd363db5f307f33 (patch) | |
| tree | 363d2f4520c3d28c6d3c1f564a4db3458b598dfc | |
| parent | dd7f49301eaf1b9783ee695a7ac43af69a0f4768 (diff) | |
| download | rust-4bb83468a202c7402de529199dd363db5f307f33.tar.gz rust-4bb83468a202c7402de529199dd363db5f307f33.zip | |
is_range_literal: leave FIXME
| -rw-r--r-- | src/librustc/hir/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index b4c51cca4d2..915b0afc48f 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -1566,6 +1566,9 @@ impl fmt::Debug for Expr { /// Checks if the specified expression is a built-in range literal. /// (See: `LoweringContext::lower_expr()`). +/// +/// FIXME(#60607): This function is a hack. If and when we have `QPath::Lang(...)`, +/// we can use that instead as simpler, more reliable mechanism, as opposed to using `SourceMap`. pub fn is_range_literal(sm: &SourceMap, expr: &Expr) -> bool { // Returns whether the given path represents a (desugared) range, // either in std or core, i.e. has either a `::std::ops::Range` or |
