mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Report all errors other than those about insufficient type information
This commit is contained in:
@@ -80,8 +80,10 @@ fn new(
|
||||
fn const_eval(&self, cid: GlobalId<'tcx>, span: Span) -> Option<Const<'tcx>> {
|
||||
let value = match self.tcx.const_eval(self.param_env.and(cid)) {
|
||||
Ok(val) => val,
|
||||
// FIXME: report some errors
|
||||
Err(_) => return None,
|
||||
Err(err) => {
|
||||
err.report(self.tcx, span, "const prop");
|
||||
return None;
|
||||
},
|
||||
};
|
||||
let val = match value.val {
|
||||
ConstVal::Value(v) => v,
|
||||
|
||||
Reference in New Issue
Block a user