about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2021-03-04 14:48:17 +0000
committerOli Scherer <github35764891676564198441@oli-obk.de>2021-03-04 15:45:31 +0000
commit67a61b9a013531bd0b03c8ddf1fd8922d4b7d252 (patch)
treec410feb0fa187da236ca6a5ca3ff0ae34620262c
parent63af264d6280286d8808a43346f3cf494488c1c1 (diff)
downloadrust-67a61b9a013531bd0b03c8ddf1fd8922d4b7d252.tar.gz
rust-67a61b9a013531bd0b03c8ddf1fd8922d4b7d252.zip
Typo
-rw-r--r--compiler/rustc_middle/src/ty/instance.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/instance.rs b/compiler/rustc_middle/src/ty/instance.rs
index de012a69574..23cedfd499e 100644
--- a/compiler/rustc_middle/src/ty/instance.rs
+++ b/compiler/rustc_middle/src/ty/instance.rs
@@ -499,7 +499,7 @@ impl<'tcx> Instance<'tcx> {
     }
 
     /// Returns a new `Instance` where generic parameters in `instance.substs` are replaced by
-    /// identify parameters if they are determined to be unused in `instance.def`.
+    /// identity parameters if they are determined to be unused in `instance.def`.
     pub fn polymorphize(self, tcx: TyCtxt<'tcx>) -> Self {
         debug!("polymorphize: running polymorphization analysis");
         if !tcx.sess.opts.debugging_opts.polymorphize {