diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2018-02-10 14:53:08 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2018-02-18 16:29:25 -0500 |
| commit | 0bfbe24fd950be2b28c630e9891bf24214a3d342 (patch) | |
| tree | 3c763d44b671ca35fd3b341bc210834d406faef4 | |
| parent | 1531fbe9becc9b5d84a9360fb75440efc41b7db7 (diff) | |
| download | rust-0bfbe24fd950be2b28c630e9891bf24214a3d342.tar.gz rust-0bfbe24fd950be2b28c630e9891bf24214a3d342.zip | |
More formatting fixes
| -rw-r--r-- | src/librustc/infer/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc/infer/mod.rs b/src/librustc/infer/mod.rs index 2a620ecdfff..7a386c144b7 100644 --- a/src/librustc/infer/mod.rs +++ b/src/librustc/infer/mod.rs @@ -1562,7 +1562,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> { } /// Clears the selection, evaluation, and projection cachesThis is useful when - /// repeatedly attemping to select an Obligation while chagning only + /// repeatedly attemping to select an Obligation while changing only /// its ParamEnv, since FulfillmentContext doesn't use 'probe' pub fn clear_caches(&self) { self.selection_cache.clear(); diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index da9c372e58b..ff6d14f0457 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -3868,7 +3868,6 @@ pub fn path_to_def_local(tcx: &TyCtxt, path: &[&str]) -> Option<DefId> { } } } - } pub fn path_to_def(tcx: &TyCtxt, path: &[&str]) -> Option<DefId> { @@ -3991,7 +3990,7 @@ impl From<TyParamBound> for SimpleBound { .collect()), t.generic_params, mod_) - }, + } _ => panic!("Unexpected bound {:?}", bound), } } |
