File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
branches/snap-stage3/src/librustc/middle Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 566b470e138e929e8a93d613372db1ba177c494f
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: c630d961667e9a1f35ea2c55c2558d8c9705ca44
4
+ refs/heads/snap-stage3: 0cffa32c21b08cec443dd2d0388e39cf381b6bfc
5
5
refs/heads/try: 80b45ddbd351f0a4a939c3a3c4e20b4defec4b35
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -790,6 +790,13 @@ pub enum sty {
790
790
ty_int( ast:: IntTy ) ,
791
791
ty_uint( ast:: UintTy ) ,
792
792
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.`
793
800
ty_enum( DefId , Substs ) ,
794
801
ty_box( t ) ,
795
802
ty_uniq( t ) ,
You can’t perform that action at this time.
0 commit comments