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 6a8fcdc commit bc41973Copy full SHA for bc41973
compiler/rustc_const_eval/src/interpret/validity.rs
@@ -38,16 +38,14 @@ macro_rules! throw_validation_failure {
38
msg.push_str(", but expected ");
39
write!(&mut msg, $($expected_fmt)*).unwrap();
40
)?
41
- let path = rustc_middle::ty::print::with_no_trimmed_paths!({
42
- let where_ = &$where;
43
- if !where_.is_empty() {
44
- let mut path = String::new();
45
- write_path(&mut path, where_);
46
- Some(path)
47
- } else {
48
- None
49
- }
50
- });
+ let where_ = &$where;
+ let path = if !where_.is_empty() {
+ let mut path = String::new();
+ write_path(&mut path, where_);
+ Some(path)
+ } else {
+ None
+ };
51
throw_ub!(ValidationFailure { path, msg })
52
}};
53
}
0 commit comments