Skip to content

Commit 8a201bd

Browse files
committed
---
yaml --- r: 129445 b: refs/heads/snap-stage3 c: 0cffa32 h: refs/heads/master i: 129443: 71748c3 v: v3
1 parent b3bfd9e commit 8a201bd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 566b470e138e929e8a93d613372db1ba177c494f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c630d961667e9a1f35ea2c55c2558d8c9705ca44
4+
refs/heads/snap-stage3: 0cffa32c21b08cec443dd2d0388e39cf381b6bfc
55
refs/heads/try: 80b45ddbd351f0a4a939c3a3c4e20b4defec4b35
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,13 @@ pub enum sty {
790790
ty_int(ast::IntTy),
791791
ty_uint(ast::UintTy),
792792
ty_float(ast::FloatTy),
793+
/// Substs here, possibly against intuition, *may* contain `ty_param`s.
794+
/// That is, even after substitution it is possible that there are type
795+
/// variables. This happens when the `ty_enum` corresponds to an enum
796+
/// definition and not a concerete use of it. To get the correct `ty_enum`
797+
/// from the tcx, use the `NodeId` from the `ast::Ty` and look it up in
798+
/// the `ast_ty_to_ty_cache`. This is probably true for `ty_struct` as
799+
/// well.`
793800
ty_enum(DefId, Substs),
794801
ty_box(t),
795802
ty_uniq(t),

0 commit comments

Comments
 (0)