We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ba014 commit 17ca7a0Copy full SHA for 17ca7a0
src/librustc_mir/transform/check_consts/validation.rs
@@ -253,6 +253,7 @@ impl Validator<'mir, 'tcx> {
253
let is_unleashable = O::IS_SUPPORTED_IN_MIRI;
254
255
if is_unleashable && self.tcx.sess.opts.debugging_opts.unleash_the_miri_inside_of_you {
256
+ // Use `def_span` to deduplicate all warnings for the same const.
257
self.tcx.sess.span_warn(self.tcx.def_span(self.def_id), "skipping const checks");
258
if let Some(feature) = O::feature_gate() {
259
self.tcx.sess.miri_unleashed_feature(feature);
0 commit comments