Lines Matching refs:error

5     error, ident, trivial, Api, Array, Enum, ExternFn, ExternType, Impl, Lang, Lifetimes,
77 pub(crate) fn error(&mut self, sp: impl ToTokens, msg: impl Display) {
78 self.errors.error(sp, msg);
91 cx.error(ident, msg);
102 cx.error(ptr, error::BOX_CXX_TYPE.msg);
110 cx.error(ptr, "unsupported target type of Box");
121 cx.error(ty, "Rust Vec containing C++ type is not supported yet");
136 cx.error(ty, "unsupported element type of Vec");
142 cx.error(ptr, "unique_ptr of a Rust type is not supported yet");
154 cx.error(ptr, "unsupported unique_ptr target type");
160 cx.error(ptr, "shared_ptr of a Rust type is not supported yet");
171 cx.error(ptr, "std::shared_ptr<std::vector> is not supported yet");
175 cx.error(ptr, "unsupported shared_ptr target type");
181 cx.error(ptr, "weak_ptr of a Rust type is not supported yet");
192 cx.error(ptr, "std::weak_ptr<std::vector> is not supported yet");
196 cx.error(ptr, "unsupported weak_ptr target type");
202 cx.error(
218 cx.error(ptr, "unsupported vector element type");
230 cx.error(
243 cx.error(ty, "C++ does not allow references to references");
249 cx.error(ty, "unsupported reference type");
256 cx.error(ty, "C++ does not allow pointer to reference as a type");
262 cx.error(ty, "unsupported pointer type");
282 cx.error(ty, msg);
290 cx.error(ty, "unsupported array element type");
296 cx.error(ty, "function pointer returning Result is not supported yet");
302 cx.error(
318 cx.error(span, "structs without any fields are not supported");
324 cx.error(ety, msg);
331 cx.error(derive, msg);
337 cx.error(
344 cx.error(field, msg);
355 cx.error(
364 cx.error(derive, msg);
385 cx.error(derive, msg);
391 cx.error(span, "extern type bounds are not implemented yet");
399 cx.error(ety, msg);
408 cx.error(span, "extern C++ function with lifetimes must be declared in `unsafe extern \"C++\"` block");
418 cx.error(span, message);
437 cx.error(span, msg);
439 cx.error(
447 cx.error(span, "unrecognized receiver type");
449 cx.error(
462 cx.error(
469 cx.error(
477 cx.error(arg, msg);
483 cx.error(ty, "returning a function pointer is not implemented yet");
487 cx.error(ty, msg);
501 cx.error(derive, msg);
512 cx.error(span, "negative impl is not supported yet");
532 cx.error(imp, "unsupported Self type of explicit impl");
592 cx.error(
608 cx.error(ident, "reserved name");
617 cx.error(lifetime, error::RESERVED_LIFETIME);