about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-04-18 15:48:32 -0400
committerNiko Matsakis <niko@alum.mit.edu>2017-04-19 07:20:36 -0400
commit93e10977d8b0ccd2cdc41f30e187e6ebecd3240b (patch)
treeac2091f50d318a0222853c8392c2d97fe80ee449 /src/librustc_driver
parentaa6c2b1cb73edad3ca1e8068151dd7254a3ebce1 (diff)
downloadrust-93e10977d8b0ccd2cdc41f30e187e6ebecd3240b.tar.gz
rust-93e10977d8b0ccd2cdc41f30e187e6ebecd3240b.zip
propagate other obligations that were left out
cc #32730 -- I left exactly one instance where I wasn't sure of the
right behavior.
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/test.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index 44e291a44c7..7447fba3038 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -376,7 +376,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
     pub fn check_sub(&self, t1: Ty<'tcx>, t2: Ty<'tcx>) {
         match self.sub(t1, t2) {
             Ok(InferOk { obligations, .. }) => {
-                // FIXME(#32730) once obligations are being propagated, assert the right thing.
+                // None of these tests should require nested obligations:
                 assert!(obligations.is_empty());
             }
             Err(ref e) => {
@@ -400,7 +400,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
     pub fn check_lub(&self, t1: Ty<'tcx>, t2: Ty<'tcx>, t_lub: Ty<'tcx>) {
         match self.lub(t1, t2) {
             Ok(InferOk { obligations, value: t }) => {
-                // FIXME(#32730) once obligations are being propagated, assert the right thing.
+                // None of these tests should require nested obligations:
                 assert!(obligations.is_empty());
 
                 self.assert_eq(t, t_lub);
@@ -415,7 +415,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
         match self.glb(t1, t2) {
             Err(e) => panic!("unexpected error computing LUB: {:?}", e),
             Ok(InferOk { obligations, value: t }) => {
-                // FIXME(#32730) once obligations are being propagated, assert the right thing.
+                // None of these tests should require nested obligations:
                 assert!(obligations.is_empty());
 
                 self.assert_eq(t, t_glb);