Skip to content

Commit a9bac8f

Browse files
committed
---
yaml --- r: 146510 b: refs/heads/try2 c: bc3e842 h: refs/heads/master v: v3
1 parent 4c6d0f6 commit a9bac8f

File tree

5 files changed

+10
-17
lines changed

5 files changed

+10
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 195f1d77bd6bdd8988d5cbd107cb0c4cfa4694cc
8+
refs/heads/try2: bc3e84250868dff44ce0ea0919d9db8549dddf32
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,7 @@ pub fn check_item(ccx: @mut CrateCtxt, it: @ast::item) {
583583
ast::item_fn(ref decl, _, _, _, ref body) => {
584584
let fn_tpt = ty::lookup_item_type(ccx.tcx, ast_util::local_def(it.id));
585585

586-
// FIXME -- this won't fly for the case where people reference
587-
// a lifetime from within a type parameter. That's actually fairly
588-
// tricky.
586+
// FIXME(#5121) -- won't work for lifetimes that appear in type bounds
589587
let param_env = ty::construct_parameter_environment(
590588
ccx.tcx,
591589
None,

branches/try2/src/librustc/middle/typeck/check/regionmanip.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,9 @@ pub fn relate_nested_regions(
9494
relate_op: &'self fn(ty::Region, ty::Region),
9595
}
9696

97-
// FIXME we should define more precisely when a
98-
// region is considered "nested" and take variance into account.
99-
//
100-
// I can't decide whether skipping closure parameter types and
101-
// so on is necessary or not. What is the difference, after all,
102-
// between `&'a |&'b T|` and `&'a Fn<&'b T>`? And yet in the
103-
// latter case I'm inclined to think we should probably track
104-
// the relationship (but then again maybe we should just skip
105-
// all such cases until it "proves necessary")
97+
// FIXME(#10151) -- Define more precisely when a region is
98+
// considered "nested". Consider taking variance into account as
99+
// well.
106100

107101
impl<'self> TypeFolder for RegionRelator<'self> {
108102
fn tcx(&self) -> ty::ctxt {

branches/try2/src/librustc/middle/typeck/collect.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ pub fn ensure_trait_methods(ccx: &CrateCtxt,
359359
let num_trait_type_params = trait_generics.type_param_defs.len();
360360
ty::Method::new(
361361
*m_ident,
362-
// FIXME -- what about lifetime parameters here?
362+
// FIXME(#5121) -- distinguish early vs late lifetime params
363363
ty_generics(this, m_generics, num_trait_type_params),
364364
transformed_self_ty,
365365
fty,
@@ -486,7 +486,7 @@ fn convert_methods(ccx: &CrateCtxt,
486486
let num_rcvr_type_params = rcvr_generics.ty_params.len();
487487
ty::Method::new(
488488
m.ident,
489-
// FIXME region param
489+
// FIXME(#5121) -- distinguish early vs late lifetime params
490490
ty_generics(ccx, &m.generics, num_rcvr_type_params),
491491
transformed_self_ty,
492492
fty,
@@ -683,7 +683,8 @@ pub fn instantiate_trait_ref(ccx: &CrateCtxt,
683683
* trait. Fails if the type is a type other than an trait type.
684684
*/
685685

686-
let rscope = ExplicitRscope; // FIXME
686+
// FIXME(#5121) -- distinguish early vs late lifetime params
687+
let rscope = ExplicitRscope;
687688

688689
match lookup_def_tcx(ccx.tcx, ast_trait_ref.path.span, ast_trait_ref.ref_id) {
689690
ast::DefTrait(trait_did) => {

branches/try2/src/libsyntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ pub fn print_meta_item(s: @ps, item: &ast::MetaItem) {
19051905
pub fn print_view_path(s: @ps, vp: &ast::view_path) {
19061906
match vp.node {
19071907
ast::view_path_simple(ident, ref path, _) => {
1908-
// FIXME can't compare identifiers directly here
1908+
// FIXME(#6993) can't compare identifiers directly here
19091909
if path.segments.last().identifier.name != ident.name {
19101910
print_ident(s, ident);
19111911
space(s.s);

0 commit comments

Comments
 (0)