about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_passes/rvalue_promotion.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_passes/rvalue_promotion.rs b/src/librustc_passes/rvalue_promotion.rs
index 013bc07d8e9..bda351eed40 100644
--- a/src/librustc_passes/rvalue_promotion.rs
+++ b/src/librustc_passes/rvalue_promotion.rs
@@ -291,7 +291,7 @@ fn check_expr<'a, 'tcx>(v: &mut CheckCrateVisitor<'a, 'tcx>, e: &hir::Expr, node
 
                 // References to a static that are themselves within a static
                 // are inherently promotable with the exception
-                //  of "#[thread_loca]" statics, which may not
+                //  of "#[thread_local]" statics, which may not
                 // outlive the current function
                 Def::Static(did, _) => {