chown -R root:admin /
on my production vps :justatest: and now ssh just hangs what could i have broken? xd i still have a open ssh connection but if i loose that the server has to be nuked#[test]
attribute that does what you want#[test]
attribute that does what you want RenderExtraEditorDragBar
function to reduce duplicate code.
Fix height being changed by repeated clicking on the draggable element by also resetting s_Operation
when Clicked
is true
.
bind <key> callvote option <name of vote>
2023-05-29 17:45:54 I chatresp: Invalid arguments... Usage: vote r['yes'|'no']
2023-05-29 17:46:20 I chatresp: Invalid arguments... Usage: callvote s['kick'|'spectate'|'option'] s[id|option text] ?r[reason]
2023-05-29 17:45:54 I chatresp: Invalid arguments... Usage: vote r['yes'|'no']
2023-05-29 17:46:20 I chatresp: Invalid arguments... Usage: callvote s['kick'|'spectate'|'option'] s[id|option text] ?r[reason]
2023-05-29 17:50:33 I chat: *** '<~{Barsik}~>' called vote to change server option 'Scorelimit 100' (No reason given)
Block *make_Block(const OpBuilder &builder, Region *region)
{
return const_cast<OpBuilder &>(builder).createBlock(region);
}
i cant call createBlock without it herestrchr()
. It takes and returns a char *
but you can safely use it on a const char *
insteadmake_Block
? Why can't it pass a non-const reference? running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/include" "-I" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/crate" "-Wall" "-Wextra" "-std=c++17" "-I/opt/homebrew/opt/llvm@16/include" "-Wno-unused-parameter" "-o" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/a900a5298c52b4bf-bridge.rs.o" "-c" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/sources/mlircpp/src/bridge.rs.cc"
cargo:warning=/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/sources/mlircpp/src/bridge.rs.cc:483:36: error: cannot initialize a variable of type '::std::unique_ptr< ::OpBuilder> (*)(const ::MLIRContext &)' (aka 'unique_ptr<mlir::OpBuilder> (*)(const mlir::MLIRContext &)') with an lvalue of type 'std::unique_ptr<OpBuilder> (mlir::MLIRContext &)': type mismatch at 1st parameter ('const ::MLIRContext &' (aka 'const mlir::MLIRContext &') vs 'mlir::MLIRContext &')
cargo:warning= ::std::unique_ptr<::OpBuilder> (*make_OpBuilder$)(::MLIRContext const &) = ::make_OpBuilder;
cargo:warning= ^ ~~~~~~~~~~~~~~~~
cargo:warning=1 error generated.
exit status: 1
source:
std::unique_ptr<MLIRContext> make_MLIRContext();
std::unique_ptr<OpBuilder> make_OpBuilder(MLIRContext &);
std::unique_ptr<MLIRContext> make_MLIRContext()
{
mlir::DialectRegistry registry;
mlir::registerAllDialects(registry);
return std::make_unique<MLIRContext>(registry);
}
std::unique_ptr<OpBuilder> make_OpBuilder(MLIRContext &context)
{
return std::make_unique<OpBuilder>(&context);
}
std::unique_ptr<OpBuilder> make_OpBuilder(const MLIRContext &context)
{
return std::make_unique<OpBuilder>(const_cast<MLIRContext *>(&context));
}
`#[test]
fn myfunc() {
let c = make_MLIRContext();
let op = make_OpBuilder(&c);
}
error: cannot initialize a variable of type '::std::unique_ptr< ::OpBuilder> (*)(const ::MLIRContext &)' (aka 'unique_ptr<mlir::OpBuilder> (*)(const mlir::MLIRContext &)') with an lvalue of type 'std::unique_ptr<OpBuilder> (mlir::MLIRContext &)': type mismatch at 1st parameter ('const ::MLIRContext &' (aka 'const mlir::MLIRContext &') vs 'mlir::MLIRContext &')
/// Create a builder with the given context.
explicit OpBuilder(MLIRContext *ctx, Listener *listener = nullptr)
: Builder(ctx), listener(listener) {}
`::std::unique_ptr< ::OpBuilder> (*)(const ::MLIRContext &)
pub fn make_MLIRContext() -> ::cxx::UniquePtr<MLIRContext>
fn make_OpBuilder(context: &MLIRContext) -> UniquePtr<OpBuilder>;
error: cannot initialize a variable of type '::std::unique_ptr< ::OpBuilder> (*)(const ::MLIRContext &)' (aka 'unique_ptr<mlir::OpBuilder> (*)(const mlir::MLIRContext &)') with an lvalue of type 'std::unique_ptr<OpBuilder> (mlir::MLIRContext &)': type mismatch at 1st parameter ('const ::MLIRContext &' (aka 'const mlir::MLIRContext &') vs 'mlir::MLIRContext &')
::OpBuilder *cxxbridge1$make_OpBuilder(::MLIRContext const &context) noexcept {
::std::unique_ptr<::OpBuilder> (*make_OpBuilder$)(::MLIRContext const &) = ::make_OpBuilder;
return make_OpBuilder$(context).release();
}
`::MLIRContext *cxxbridge1$make_MLIRContext() noexcept {
::std::unique_ptr<::MLIRContext> (*make_MLIRContext$)() = ::make_MLIRContext;
return make_MLIRContext$().release();
}
::OpBuilder *cxxbridge1$make_OpBuilder(::MLIRContext const &context) noexcept {
::std::unique_ptr<::OpBuilder> (*make_OpBuilder$)(::MLIRContext const &) = ::make_OpBuilder;
return make_OpBuilder$(context).release();
}
` ::MLIRContext *cxxbridge1$make_MLIRContext() noexcept {
::std::unique_ptr<::MLIRContext> (*make_MLIRContext$)() = ::make_MLIRContext;
return make_MLIRContext$().release();
}
type MLIRContext
somewhere? error[cxxbridge]: needs a cxx::ExternType impl in order to be used as a non-pinned mutable reference in signature of `make_OpBuilder`
┌─ src/bridge.rs:12:9
│
12 │ type MLIRContext;
│ ^^^^^^^^^^^^^^^^ needs a cxx::ExternType impl in order to be used as a non-pinned mutable reference in signature of `make_OpBuilder`
error[cxxbridge]: mutable reference to C++ type requires a pin -- use Pin<&mut MLIRContext>
┌─ src/bridge.rs:24:36
│
24 │ fn make_OpBuilder(context: &mut MLIRContext) -> UniquePtr<OpBuilder>;
│ ^^^^^^^^^^^^^^^^ mutable reference to C++ type requires a pin -- use Pin<&mut MLIRContext>
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/include" "-I" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/crate" "-Wall" "-Wextra" "-std=c++17" "-I/opt/homebrew/opt/llvm@16/include" "-Wno-unused-parameter" "-o" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/a900a5298c52b4bf-bridge.rs.o" "-c" "/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/sources/mlircpp/src/bridge.rs.cc"
cargo:warning=/Users/edgar/Documents/mlircpp/target/debug/build/mlircpp-7a862e997e3d30d5/out/cxxbridge/sources/mlircpp/src/bridge.rs.cc:483:36: error: cannot initialize a variable of type '::std::unique_ptr< ::OpBuilder> (*)(const ::MLIRContext &)' (aka 'unique_ptr<mlir::OpBuilder> (*)(const mlir::MLIRContext &)') with an lvalue of type 'std::unique_ptr<OpBuilder> (mlir::MLIRContext &)': type mismatch at 1st parameter ('const ::MLIRContext &' (aka 'const mlir::MLIRContext &') vs 'mlir::MLIRContext &')
cargo:warning= ::std::unique_ptr<::OpBuilder> (*make_OpBuilder$)(::MLIRContext const &) = ::make_OpBuilder;
cargo:warning= ^ ~~~~~~~~~~~~~~~~
cargo:warning=1 error generated.
exit status: 1
source:
std::unique_ptr<MLIRContext> make_MLIRContext();
std::unique_ptr<OpBuilder> make_OpBuilder(MLIRContext &);
std::unique_ptr<MLIRContext> make_MLIRContext()
{
mlir::DialectRegistry registry;
mlir::registerAllDialects(registry);
return std::make_unique<MLIRContext>(registry);
}
std::unique_ptr<OpBuilder> make_OpBuilder(MLIRContext &context)
{
return std::make_unique<OpBuilder>(&context);
}
#[test]
fn myfunc() {
let mut c = make_MLIRContext();
let op = make_OpBuilder(c.pin_mut());
}
::OpBuilder *cxxbridge1$make_OpBuilder(::MLIRContext &context) noexcept {
::std::unique_ptr<::OpBuilder> (*make_OpBuilder$)(::MLIRContext &) = ::make_OpBuilder;
return make_OpBuilder$(context).release();
}
std::unique_ptr
on the cxx side to the UniquePtr
on the rust side*mut CURL
SDL_FlashWindow
. The SDL version schema changes after version 2.0.22 to 2.24.0 etc. (minor version is used instead of patchlevel) which was causing the condition that checks for minimum version 2.0.16 to not work correctly with newer SDL versions.
Closes #6687.
PhantomData<MLIRContext>
next to it?pub struct Operation<'c> {
raw: MlirOperation,
_context: PhantomData<&'c Context>,
}
the c apigit config http.version HTTP/1.1
and now it worked! Could this have any side effects though?git config http.version HTTP/1.1
and now it worked! Could this have any side effects though? enum TEST {
ONE,
TWO
};
turns into
enum TEST { // automatically put test in front of constant names
TEST_ONE,
TEST_TWO
};
(edited)