#![feature(decl_macro)]
#![feature(dyn_trait)]
#![feature(fs_read_write)]
- #![feature(i128_type)]
- #![feature(inclusive_range_syntax)]
- #![feature(inclusive_range)]
+ #![cfg_attr(stage0, feature(i128_type))]
+ #![cfg_attr(stage0, feature(inclusive_range_syntax))]
#![feature(macro_vis_matcher)]
- #![feature(match_default_bindings)]
- #![feature(never_type)]
+ #![cfg_attr(stage0, feature(match_default_bindings))]
+ #![feature(exhaustive_patterns)]
#![feature(range_contains)]
#![feature(rustc_diagnostic_macros)]
- #![feature(placement_in_syntax)]
- #![feature(collection_placement)]
#![feature(nonzero)]
- #![feature(underscore_lifetimes)]
+ #![cfg_attr(stage0, feature(underscore_lifetimes))]
+ #![cfg_attr(stage0, feature(never_type))]
+ #![feature(inclusive_range_fields)]
+#![feature(crate_visibility_modifier)]
extern crate arena;
#[macro_use]
self.cancel_if_wrong_origin(err, o)
}
++<<<<<<< HEAD
+ fn cannot_assign(&self, span: Span, desc: &str, o: Origin, is_reference:bool)
+ -> DiagnosticBuilder
++=======
+ fn cannot_assign(self, span: Span, desc: &str, o: Origin) -> DiagnosticBuilder<'cx>
++>>>>>>> 56714acc5eb0687ed9a7566fdebe5528657fc5b3
{
+ let msg = if is_reference {
+ "through"
+ } else {
+ "to"
+ };
+
let err = struct_span_err!(self, span, E0594,
- "cannot assign to {}{OGN}",
- desc, OGN=o);
+ "cannot assign {} {}{OGN}",
+ msg, desc, OGN=o);
self.cancel_if_wrong_origin(err, o)
}
- fn cannot_assign_static(&self, span: Span, desc: &str, o: Origin)
- -> DiagnosticBuilder
+ fn cannot_assign_static(self, span: Span, desc: &str, o: Origin)
+ -> DiagnosticBuilder<'cx>
{
- self.cannot_assign(span, &format!("immutable static item `{}`", desc), o)
+ self.cannot_assign(span, &format!("immutable static item `{}`", desc), o, false)
}
- fn cannot_move_out_of(&self, move_from_span: Span, move_from_desc: &str, o: Origin)
- -> DiagnosticBuilder
+ fn cannot_move_out_of(self, move_from_span: Span, move_from_desc: &str, o: Origin)
+ -> DiagnosticBuilder<'cx>
{
let mut err = struct_span_err!(self, move_from_span, E0507,
"cannot move out of {}{OGN}",