@@ -110,7 +110,51 @@ LL | let _ = -(1f32.abs());
110110 | + +
111111
112112warning: unary minus has lower precedence than method call
113- --> $DIR/precedence.rs:51:13
113+ --> $DIR/precedence.rs:25:13
114+ |
115+ LL | let _ = -1f64.asin();
116+ | ^^^^^^^^^^^^
117+ |
118+ help: consider adding parentheses to clarify your intent
119+ |
120+ LL | let _ = -(1f64.asin());
121+ | + +
122+
123+ warning: unary minus has lower precedence than method call
124+ --> $DIR/precedence.rs:27:13
125+ |
126+ LL | let _ = -1f64.asinh();
127+ | ^^^^^^^^^^^^^
128+ |
129+ help: consider adding parentheses to clarify your intent
130+ |
131+ LL | let _ = -(1f64.asinh());
132+ | + +
133+
134+ warning: unary minus has lower precedence than method call
135+ --> $DIR/precedence.rs:29:13
136+ |
137+ LL | let _ = -1f64.tan();
138+ | ^^^^^^^^^^^
139+ |
140+ help: consider adding parentheses to clarify your intent
141+ |
142+ LL | let _ = -(1f64.tan());
143+ | + +
144+
145+ warning: unary minus has lower precedence than method call
146+ --> $DIR/precedence.rs:31:13
147+ |
148+ LL | let _ = -1f64.tanh();
149+ | ^^^^^^^^^^^^
150+ |
151+ help: consider adding parentheses to clarify your intent
152+ |
153+ LL | let _ = -(1f64.tanh());
154+ | + +
155+
156+ warning: unary minus has lower precedence than method call
157+ --> $DIR/precedence.rs:33:13
114158 |
115159LL | let _ = -1.0_f64.cos().cos();
116160 | ^^^^^^^^^^^^^^^^^^^^
@@ -121,7 +165,7 @@ LL | let _ = -(1.0_f64.cos().cos());
121165 | + +
122166
123167warning: unary minus has lower precedence than method call
124- --> $DIR/precedence.rs:53 :13
168+ --> $DIR/precedence.rs:35 :13
125169 |
126170LL | let _ = -1.0_f64.cos().sin();
127171 | ^^^^^^^^^^^^^^^^^^^^
@@ -132,7 +176,7 @@ LL | let _ = -(1.0_f64.cos().sin());
132176 | + +
133177
134178warning: unary minus has lower precedence than method call
135- --> $DIR/precedence.rs:55 :13
179+ --> $DIR/precedence.rs:37 :13
136180 |
137181LL | let _ = -1.0_f64.sin().cos();
138182 | ^^^^^^^^^^^^^^^^^^^^
@@ -142,5 +186,16 @@ help: consider adding parentheses to clarify your intent
142186LL | let _ = -(1.0_f64.sin().cos());
143187 | + +
144188
145- warning: 13 warnings emitted
189+ warning: unary minus has lower precedence than method call
190+ --> $DIR/precedence.rs:39:13
191+ |
192+ LL | let _ = -1f64.sin().sin();
193+ | ^^^^^^^^^^^^^^^^^
194+ |
195+ help: consider adding parentheses to clarify your intent
196+ |
197+ LL | let _ = -(1f64.sin().sin());
198+ | + +
199+
200+ warning: 18 warnings emitted
146201
0 commit comments